Hello,
When I run the following command :

mvn pax:provision -Drunner=1.5.0 -Dplatform=felix -Dversion=3.0.0

It fails with the following Exception !

 -> Using execution environment [J2SE-1.6]
 -> Runner has successfully finished his job!

java.lang.NoClassDefFoundError: org/apache/felix/main/Main
Caused by: java.lang.ClassNotFoundException: org.apache.felix.main.Main
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.felix.main.Main.  Program will
exit

But if I run the same command with the -Dversion=3.0.0 it succeeds! But it
kind of confuses maven with -Dversion for bundles also (No harm - the maven
pax plugin just ignores because it's not finding the 3.0.0 versions of the
bunldes)

Do I always have to supply -Dversion=3.0.0 ? If so I would rather give the
option some thing like =Drunner-version or something like that.

Thanks
Matt
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to