java - How to run proguard in my spring mvc application, no jar but for classes? -



java - How to run proguard in my spring mvc application, no jar but for classes? -

spring mvc applications don't have jars, have wars (.war or exploded).

my maven build creates exploded war in:

/myapp/target/myapp-1.0/

and classes in:

/myapp/target/myapp-1.0/web-inf/classes

i want obfuscate in namespace com.maypp.*

how can this?

so far have this:

<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 see these options in tutorials, doing?

<options> 16. <option>-allowaccessmodification</option> 17. <option>-keep public class 18. ${project.build.mainclass} { *; }</option> 19. </options>

as stated in ant task docs, injar tag:

specifies programme jars (or wars, ears, zips, or directories).

additionally:

the jar tags path tags, can have of path attributes (or nested elements). mutual attributes [bunch of attributes "path"].

java spring maven proguard

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -