Has anybody used maven and yguard for obfuscating jar files开发者_开发问答?How to do so?
I have done obfuscation using yguard
in Maven
. I have used the maven ant run plugin to run the ant tasks.
Steps:
- Refer to the
build.xml
in yourpom.xml
. Check documentation ofMaven Antrun
plugin. You have a lot of examples there. - Create the
build.xml
with the rename elements as required by your project/jar. In case you want to refer to the Maven references like project information, define them as properties in yourpom.xml
before the ant task is executed
Please let me know if this answers your question
精彩评论