在 pom 文件中 配置如下信息

   
  <groupId>com.pyx4me</groupId>
  
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.4</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>proguard</goal>
</goals>
</execution>
</executions>
<configuration>
<includeDependency>true</includeDependency>
<obfuscate>true</obfuscate>
<injar>classes</injar>
<libs>
<lib>${java.home}\lib\rt.jar</lib>
<lib>${java.home}\lib\jsse.jar</lib>
</libs>
<options>
<option>@proguard.cfg</option>
</options>
</configuration>

节操兜售中 answered 12 years, 4 months ago

Your Answer