I cannot make a Proguard Maven plugin to obfuscate files in a web project. I tried some solutions on Stackoverflow - no luck.
My actual application is based on Vaadin packaged with Maven, but I created a sample demo project https://github.com/taskadapter/projectX for now to illustrate the problem. My ultimate goal is to create a web application WAR file with all maven modules (like "util") and web app code (like "SomeImportantHiddenClass"), confusing.
build failure:
[proguard] Error: input does not contain classes. Have you specified the correct "-injars" options?
I saw http://maksim.sorokin.dk/it/2010/08/23/obfuscating-several-jars-in-one-single-maven-build-with-proguard/ , but for me it does not make sense. if I run the proguard plugin on each maven module in my project separately, then how will the other modules in the same project find the required classes if they are all "messed up"?
I assume that I need to add proguard execution to the root pom.xml or to my web module, which actually packs the material into a WAR file (see the project on GitHub).
"injar" allows you to add Jars to the obfuscation process, but I expected the plugin to find my modules and obfuscate them without me hardcoding "injar", for example "../util/target/util.jar".
proguard "injars", "injar" . .
Proguard , - , , "web" maven - , . ...