there are lots tools about the java obfuscate. I know two.
(1)proguard
(2)yguard
the proguard support ant, maven. I use maven as the project and build tools. so I want use the maven proguard plugin, but It is not easy to use. so I use yguard.
in your pom.xml, you can add:
net.sf.mgp
maven-unclasses-plugin
0.0.2
maven-antrun-plugin
yguard
yguard
2.3.0
system
lib/yguard.jar
package
name="mvn.classpath">
classname="com.yworks.yguard.YGuardTask"/>
in="${project.build.directory}/${project.build.finalName}.${project.packaging}"
out="${project.build.directory}/${project.build.finalName}.jar"/>
logfile="${project.build.directory}/yguard.log.xml"
replaceClassNameStrings="true">
run
It is very cool!!!.