java - Proguard obfuscate only /WEB-INF/classes/**/*.class files in my war -


i want obfuscate server-side code (webapp.war:/web-inf/classes/**).

how can using proguard maven plugin ?

proguard offers options of filters many different aspects of configuration.
filter list of comma-separated names can contain wildcards. names match item on list pass filter.

can use <outfilter> apply proguard output jar. outfilter optional parameter apply proguard classpathentry filters output jar.
in case guess below filter should work. off course can add additional comma separated filters.(ignore space in between forward splash , asterik mark)

<outfilter>**/web-inf/classes/ **.class</outfilter> 

Comments