| | |
| | | <artifactId>iailab-common-monitor</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- <!– 三方云服务相关 –>--> |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>com.xingyuv</groupId>--> |
| | | <!-- <artifactId>spring-boot-starter-justauth</artifactId> <!– 社交登陆(例如说,个人微信、企业微信等等) –>--> |
| | | <!-- </dependency>--> |
| | | |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>com.aliyun</groupId>--> |
| | | <!-- <artifactId>aliyun-java-sdk-core</artifactId> <!– 短信(阿里云) –>--> |
| | | <!-- </dependency>--> |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>com.aliyun</groupId>--> |
| | | <!-- <artifactId>aliyun-java-sdk-dysmsapi</artifactId> <!– 短信(阿里云) –>--> |
| | | <!-- </dependency>--> |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>com.tencentcloudapi</groupId>--> |
| | | <!-- <artifactId>tencentcloud-sdk-java-sms</artifactId> <!– 短信(腾讯云) –>--> |
| | | <!-- </dependency>--> |
| | | |
| | | <dependency> |
| | | <groupId>com.xingyuv</groupId> |
| | | <artifactId>spring-boot-starter-captcha-plus</artifactId> <!-- 验证码,一般用于登录使用 --> |
| | |
| | | <!-- 设置构建的 jar 包名 --> |
| | | <finalName>${project.artifactId}</finalName> |
| | | <plugins> |
| | | <!-- 步骤1:在prepare-package阶段加密YAML文件 --> |
| | | <!-- <plugin>--> |
| | | <!-- <groupId>org.apache.maven.plugins</groupId>--> |
| | | <!-- <artifactId>maven-antrun-plugin</artifactId>--> |
| | | <!-- <version>3.0.0</version>--> |
| | | <!-- <executions>--> |
| | | <!-- <execution>--> |
| | | <!-- <id>encrypt-yaml-files</id>--> |
| | | <!-- <phase>prepare-package</phase>--> |
| | | <!-- <goals>--> |
| | | <!-- <goal>run</goal>--> |
| | | <!-- </goals>--> |
| | | <!-- <configuration>--> |
| | | <!-- <target>--> |
| | | <!-- <!– 对target/classes下的所有YAML文件进行Base64编码(实际使用应替换为加密算法) –>--> |
| | | <!-- <echo message="Encrypting YAML files..." />--> |
| | | <!-- <apply executable="base64" dest="${project.build.outputDirectory}" verbose="true">--> |
| | | <!-- <fileset dir="${project.build.outputDirectory}" includes="**/*.yml, **/*.yaml"/>--> |
| | | <!-- <mapper type="glob" from="*" to="*" />--> |
| | | <!-- <srcfile/>--> |
| | | <!-- </apply>--> |
| | | <!-- <!– 实际项目中应使用Java/Groovy脚本实现加密 –>--> |
| | | <!-- </target>--> |
| | | <!-- </configuration>--> |
| | | <!-- </execution>--> |
| | | <!-- </executions>--> |
| | | <!-- </plugin>--> |
| | | <!-- <!– 步骤2:使用ProGuard混淆代码 –>--> |
| | | <!-- <plugin>--> |
| | | <!-- <groupId>com.github.wvengen</groupId>--> |
| | | <!-- <artifactId>proguard-maven-plugin</artifactId>--> |
| | |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <!-- |
| | | class-winter插件 |
| | | 注:自Maven3.0.3起, 绑定到同一phase的Maven插件将按照pom.xml中声明的顺序执行 |
| | | 注:此插件最好放置在同一phase的最后执行。 |
| | | 注:此插件不具备打包功能,需要在此插件前有打包插件进行项目打包,否则加密不会生效。 |
| | | --> |
| | | <plugin> |
| | | <groupId>com.idea-aedi</groupId> |
| | | <artifactId>class-winter-maven-plugin</artifactId> |
| | | <version>2.9.6</version> |
| | | <!-- 相关配置 --> |
| | | <configuration> |
| | | <!-- <finalName></finalName>--> |
| | | <includePrefix>com.iailab</includePrefix> |
| | | <originJarOrWar>${project.build.directory}/${project.build.finalName}.jar</originJarOrWar> |
| | | <excludePrefix> |
| | | com.iailab.module.system.SystemServerApplication, |
| | | org.springframework, |
| | | org.apache, |
| | | javax, |
| | | java, |
| | | com.alibaba, |
| | | io.swagger, |
| | | cn.hutool, |
| | | org.yaml.snakeyaml |
| | | </excludePrefix> |
| | | <!-- <includeXmlPrefix></includeXmlPrefix>--> |
| | | <!-- <excludeXmlPrefix></excludeXmlPrefix>--> |
| | | <!-- <toCleanXmlChildElementName></toCleanXmlChildElementName>--> |
| | | <password>123123123</password> |
| | | <!-- <includeLibs></includeLibs>--> |
| | | <!-- <alreadyProtectedRootDir></alreadyProtectedRootDir>--> |
| | | <!-- <alreadyProtectedLibs></alreadyProtectedLibs>--> |
| | | <supportFile>${project.basedir}/dependency/</supportFile> |
| | | <!-- <jvmArgCheck></jvmArgCheck>--> |
| | | <!-- <tips></tips>--> |
| | | <!-- <debug></debug>--> |
| | | </configuration> |
| | | <executions> |
| | | <execution> |
| | | <phase>package</phase> |
| | | <goals> |
| | | <goal>class-winter</goal> |
| | | </goals> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | |
| | | <!-- <plugin>--> |
| | | <!-- <groupId>org.apache.maven.plugins</groupId>--> |
| | | <!-- <artifactId>maven-shade-plugin</artifactId>--> |
| | | <!-- <version>3.2.4</version>--> |
| | | <!-- <executions>--> |
| | | <!-- <execution>--> |
| | | <!-- <phase>package</phase>--> |
| | | <!-- <goals>--> |
| | | <!-- <goal>shade</goal>--> |
| | | <!-- </goals>--> |
| | | <!-- <configuration>--> |
| | | <!-- <transformers>--> |
| | | <!-- <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">--> |
| | | <!-- <mainClass>com.iailab.module.system.config.ConfigEncryptor</mainClass>--> |
| | | <!-- </transformer>--> |
| | | <!-- </transformers>--> |
| | | <!-- </configuration>--> |
| | | <!-- </execution>--> |
| | | <!-- </executions>--> |
| | | <!-- </plugin>--> |
| | | |
| | | <!-- <plugin>--> |
| | | <!-- <groupId>org.apache.maven.plugins</groupId>--> |
| | | <!-- <artifactId>maven-dependency-plugin</artifactId>--> |
| | | <!-- <version>3.6.1</version>--> |
| | | <!-- <executions>--> |
| | | <!-- <execution>--> |
| | | <!-- <id>copy-dependencies</id>--> |
| | | <!-- <phase>package</phase>--> |
| | | <!-- <goals>--> |
| | | <!-- <goal>copy-dependencies</goal>--> |
| | | <!-- </goals>--> |
| | | <!-- <configuration>--> |
| | | <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>--> |
| | | <!-- <overWriteReleases>false</overWriteReleases>--> |
| | | <!-- <overWriteSnapshots>false</overWriteSnapshots>--> |
| | | <!-- <overWriteIfNewer>true</overWriteIfNewer>--> |
| | | <!-- </configuration>--> |
| | | <!-- </execution>--> |
| | | <!-- </executions>--> |
| | | <!-- </plugin>--> |
| | | |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-compiler-plugin</artifactId> |
| | | <configuration> |
| | | <source>${java.version}</source> |
| | | <target>${java.version}</target> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </build> |
| | | |