开发者

Use maven + yguard

开发者 https://www.devze.com 2022-12-31 04:11 出处:网络
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.

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:

  1. Refer to the build.xml in your pom.xml. Check documentation of Maven Antrun plugin. You have a lot of examples there.
  2. 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 your pom.xml before the ant task is executed

Please let me know if this answers your question

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号