Spring mvc 应用程序没有 jar,它们有 war (.war 或爆炸)。
我的 Maven 构建在以下位置引发了一场爆炸性的 war :
/myapp/target/myapp-1.0/
我的类(class)在:
/myapp/target/myapp-1.0/web-inf/classes
我想混淆命名空间 com.maypp.* 中的所有内容
我该怎么做?
到目前为止我有这个:
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>proguard</goal>
</goals>
</execution>
</executions>
<configuration>
<obfuscate>true</obfuscate>
<injar>?????</injar>
<inFilter>com.myapp.*</inFilter>
</configuration>
</plugin>
P.S 我在教程中看到这些选项,它们在做什么?
<options>
16.
<option>-allowaccessmodification</option>
17.
<option>-keep public class
18.
${project.build.mainClass} { *; }</option>
19.
</options>
最佳答案
如 ant task docs 中所述,injar
标签:
Specifies the program jars (or wars, ears, zips, or directories).
另外:
The jar tags are path tags, so they can have any of the path attributes (or nested elements). The most common attributes are [bunch of attributes like
"path"
].
关于java - 如何在我的 spring mvc 应用程序中运行 proguard,没有 jar 但用于类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8814312/