3

Has anybody used maven and yguard for obfuscating jar files?How to do so?

ram
  • 31
  • 1
  • 2
  • it does't work with me could you help me out please? https://stackoverflow.com/questions/52031869/why-is-my-jar-contains-just-meta-inf – Fadi Aug 28 '18 at 22:26
  • see this link: https://csetutorials.com/obfuscate-jar-or-war-file-using-yguard.html – M2E67 Dec 11 '19 at 09:44

1 Answers1

4

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

Ivan Ferić
  • 4,725
  • 11
  • 37
  • 47
Arun B
  • 41
  • 2