xjar

Springboot项目使用xjar加密jar包

心不动则不痛 提交于 2020-08-05 05:17:02
在pom文件中加入 plugins下 <!--jar文件加密,防止反编译--> <plugin> <groupId>com.github.core-lib</groupId> <artifactId>xjar-maven-plugin</artifactId> <version>4.0.1</version> <executions> <execution> <goals> <goal>build</goal> </goals> <phase>package</phase> <!-- 或使用 <phase>install</phase> --> <configuration> <!--<password>io.xjar</password>--> <!-- optional <algorithm/> <keySize/> <ivSize/> <includes> <include/> </includes> <excludes> <exclude/> </excludes> <sourceDir/> <sourceJar/> <targetDir/> <targetJar/> --> <targetJar>xstm-management.jar</targetJar> </configuration> </execution> </executions> </plugin>