I want to obfuscate only the server-side code (webapp.war:/WEB-INF/classes/**).
How can I do this using proguard maven plugin ?
ProGuard offers options of filters for many different aspects of the configuration.
A filter is a list of comma-separated names that can contain wildcards.
Only names that match an item on the list pass the filter.
You can use <outFilter>
to apply ProGuard to output jar.
outFilter is optional parameter to apply ProGuard classpathentry filters to output jar.
In your case I guess below filter should work. Off course you can add additional comma separated filters.(ignore the space in between forward splash and asterik mark)
<outFilter>**/WEB-INF/classes/ **.class</outFilter>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With