Postby diablo » Mon Oct 12, 2009 2:40 am
Exception occurs when building the all project by calling "mvn install".
Here is the log:
[cobertura-instrument] java.lang.NoClassDefFoundError: net/sourceforge/cobertura/instrument/Main
[cobertura-instrument] Caused by: java.lang.ClassNotFoundException: net.sourceforge.cobertura.instrument.Main
[cobertura-instrument] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[cobertura-instrument] at java.security.AccessController.doPrivileged(Native Method)
[cobertura-instrument] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[cobertura-instrument] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[cobertura-instrument] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[cobertura-instrument] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[cobertura-instrument] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[cobertura-instrument] Could not find the main class: net.sourceforge.cobertura.instrument.Main. Program will exit.
[cobertura-instrument] Exception in thread "main"
My maven version is 2.2.1. Did it work well with cobertura plugin?