wvengen/proguard-maven-plugin — Issue #1: tries to run proguard/Proguard with plugin jar, not proguard jar
Author: vlfig
Created: 2011-12-16 17:03:56+00:00
State: open

While using your 2.0.4 version, plugin tries to execute proguard but with the plugin jar file itself.

We of course get a NoClassDefFoundError. :-)

I'll gladly correct this if you give me some pointers.

Thank you for stepping up and doing this fork.

log:

[INFO] --- proguard-maven-plugin:2.0.4:proguard (default) @ xxxxxxxxxxx ---
[INFO] execute ProGuard [-injars, 'xxxxxxxxxxxxxxxxxxxxx, -outjars, 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -include, 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -libraryjars, '/opt/sun-jdk-1.6.0.29/jre/lib/rt.jar', -libraryjars, '/opt/sun-jdk-1.6.0.29/jre/lib/jsse.jar', -libraryjars, '/opt/sun-jdk-1.6.0.29/jre/lib/resources.jar', -printmapping, 'xxxxxxxxxxxxxxxx', -printseeds, 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx']
[INFO] proguard jar: /home/xxxx/.m2/repository/com/github/wvengen/proguard-maven-plugin/2.0.4/proguard-maven-plugin-2.0.4.jar
[proguard] Exception in thread "main" java.lang.NoClassDefFoundError: proguard/ProGuard
[proguard] Caused by: java.lang.ClassNotFoundException: proguard.ProGuard
[proguard] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[proguard] at java.security.AccessController.doPrivileged(Native Method)
[proguard] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[proguard] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[proguard] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[proguard] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[proguard] Could not find the main class: proguard.ProGuard. Program will exit.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE