|NoClassDefFoundError: org/codehaus/classworlds/Launcher [message #866175]
||Mon, 30 April 2012 19:34
| Henrique Ordine
Registered: April 2012
I was using Maven 3 from Eclipse, by configuring a External Tools Configuration, and after I changed to Maven 2 I get the following error when running Maven from Eclipse:
/usr/bin/mvn: line 53: uname: command not found
/usr/bin/mvn: line 78: ls: command not found
/usr/bin/mvn: line 79: expr: command not found
/usr/bin/mvn: line 80: expr: command not found
/usr/bin/mvn: line 83: dirname: command not found
/usr/bin/mvn: line 89: dirname: command not found
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher
In my Eclipse I added a String Substitution which points to my /usr/bin/mvn, and in my External Tools Configuration I select that String Substitution as a variable to execute a Maven goal.
I've added an M2_REPO to my Classpath Variables and I've run the following command:
mvn -Declipse.workspace=/Users/hordine/.m2/repository eclipse:add-maven-repo
I use Mac OS X Leopard.
Could anybody give me a hand?
Thanks in advance.
Powered by FUDForum
. Page generated in 0.04585 seconds