Has anybody used maven and yguard for obfuscating jar files?How to do so?
Asked
Active
Viewed 5,077 times
3
-
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 Answers
4
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

Ivan Ferić
- 4,725
- 11
- 37
- 47

Arun B
- 41
- 2