Maven plugin for Java code obfuscation… here is a solution to the problem.
Maven plugin for Java code obfuscation
Is there a Maven plugin for obfuscating Java code (Java SE, Java EE, or Android)?
Best Solution
I just googled “java obfuscator maven plugin” and found a lot of links, including this :http://pyx4me.com/pyx4me-maven-plugins/proguard-maven-plugin/
I think you should first choose the obfuscator that meets your needs. If you don’t have a Maven plugin that wraps this obfuscator, run it from the command line from Maven Pom.xml.