You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
6.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.4</version>
</parent>
<groupId>com.renchao</groupId>
<artifactId>decompile</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- ProGuard混淆插件-->
<plugin>
<groupId>com.github.wvengen</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.6.1</version>
<!-- <executions>-->
<!-- <execution>-->
<!-- &lt;!&ndash; 混淆时刻,这里是打包的时候混淆&ndash;&gt;-->
<!-- <phase>package</phase>-->
<!-- &lt;!&ndash; <phase>compile</phase>&ndash;&gt;-->
<!-- <goals>-->
<!-- &lt;!&ndash; 使用插件的什么功能,当然是混淆&ndash;&gt;-->
<!-- <goal>proguard</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- <configuration>-->
<!-- &lt;!&ndash; 是否将生成的PG文件安装部署&ndash;&gt;-->
<!-- <attach>true</attach>-->
<!-- &lt;!&ndash; 是否混淆&ndash;&gt;-->
<!-- <obfuscate>true</obfuscate>-->
<!-- &lt;!&ndash; 指定生成文件分类 &ndash;&gt;-->
<!-- <attachArtifactClassifier>pg</attachArtifactClassifier>-->
<!-- <options>-->
<!-- &lt;!&ndash; JDK目标版本1.8&ndash;&gt;-->
<!-- <option>-target 1.8</option>-->
<!-- &lt;!&ndash; 不做收缩(删除注释、未被引用代码)&ndash;&gt;-->
<!-- <option>-dontshrink</option>-->
<!-- &lt;!&ndash; 不做优化(变更代码实现逻辑)&ndash;&gt;-->
<!-- <option>-dontoptimize</option>-->
<!-- &lt;!&ndash; 不路过非公用类文件及成员&ndash;&gt;-->
<!-- <option>-dontskipnonpubliclibraryclasses</option>-->
<!-- <option>-dontskipnonpubliclibraryclassmembers</option>-->
<!-- &lt;!&ndash;不用大小写混合类名机制&ndash;&gt;-->
<!-- <option>-dontusemixedcaseclassnames</option>-->
<!-- &lt;!&ndash; 优化时允许访问并修改有修饰符的类和类的成员 &ndash;&gt;-->
<!-- <option>-allowaccessmodification</option>-->
<!-- &lt;!&ndash; 确定统一的混淆类的成员名称来增加混淆&ndash;&gt;-->
<!-- <option>-useuniqueclassmembernames</option>-->
<!-- &lt;!&ndash; 不混淆所有包名&ndash;&gt;-->
<!-- &lt;!&ndash;<option>-keeppackagenames</option>&ndash;&gt;-->
<!-- &lt;!&ndash; 需要保持的属性:异常,注解等&ndash;&gt;-->
<!-- <option>-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LocalVariable*Table,*Annotation*,Synthetic,EnclosingMethod</option>-->
<!-- &lt;!&ndash; 不混淆所有的set/get方法 &ndash;&gt;-->
<!-- &lt;!&ndash; <option>-keepclassmembers public class * {void set*(***);*** get*();}</option>&ndash;&gt;-->
<!-- &lt;!&ndash; 不混淆包下的所有类名,且类中的方法也不混淆&ndash;&gt;-->
<!-- <option>-keep class com.proguard.ProguardDemo { &lt;methods&gt;; }</option>-->
<!-- <option>-keep class com.xxx.xxx.framework.** { *; }</option>-->
<!-- &lt;!&ndash; <option>-keep class com.xxx.xxx.xxx.controller.** { <methods>; }</option>&ndash;&gt;-->
<!-- &lt;!&ndash; <option>-keep class com.xxx.xxx.xxx.dao.** { <methods>; }</option>&ndash;&gt;-->
<!-- &lt;!&ndash; <option>-keep class com.xxx.xxx.xxx.exception { <methods>; }</option>&ndash;&gt;-->
<!-- &lt;!&ndash; <option>-keep class com.xxx.xxx.xxx.model.** { <methods>; }</option>&ndash;&gt;-->
<!-- </options>-->
<!-- &lt;!&ndash;class 混淆后输出的jar包&ndash;&gt;-->
<!-- <outjar>classes-autotest.jar</outjar>-->
<!-- &lt;!&ndash; 添加依赖这里你可以按你的需要修改这里测试只需要一个JRE的Runtime包就行了 &ndash;&gt;-->
<!-- <libs>-->
<!-- <lib>${java.home}/lib/rt.jar</lib>-->
<!-- </libs>-->
<!-- &lt;!&ndash; 对什么东西进行加载这里仅有classes成功毕竟你也不可能对配置文件及JSP混淆吧&ndash;&gt;-->
<!-- <injar>classes</injar>-->
<!-- &lt;!&ndash; 输出目录&ndash;&gt;-->
<!-- <outputDirectory>${project.build.directory}</outputDirectory>-->
<!-- </configuration>-->
</plugin>
</plugins>
</build>
</project>