[ http://jira.codehaus.org/browse/MNGECLIPSE-154?page=all ]
Kenney Westerhof moved MECLIPSE-106 to MNGECLIPSE-154: ------------------------------------------------------ Key: MNGECLIPSE-154 (was: MECLIPSE-106) Project: Maven 2.x Extension for Eclipse (was: Maven 2.x Eclipse Plugin) > surefire NoClassDefFoundError error > ----------------------------------- > > Key: MNGECLIPSE-154 > URL: http://jira.codehaus.org/browse/MNGECLIPSE-154 > Project: Maven 2.x Extension for Eclipse > Type: Bug > Environment: Linux gtk > Eclipse 3.2RC4 > Maven 2.0.4 > Reporter: Gus Power > > > Unable to run project tests (surefire:test) using maven plugin in Eclipse: > Exception in thread "main" java.lang.NoClassDefFoundError: > org/codehaus/plexus/util/cli/CommandLineException > The command to invoke the tests appears to have a different classpath than > the equivalent when running mvn from the command line: > In Eclipse: > java -classpath > /home/gus/.m2/repository/org/apache/maven/surefire/surefire-booter/1.5.3/surefire-booter-1.5.3.jar:null > org.apache.maven.surefire.SurefireBooter /home/gus/javashed/project > Via Command Line: > java -classpath > /home/gus/.m2/repository/org/apache/maven/surefire/surefire-api/2.0/surefire-api-2.0.jar:/home/gus/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/gus/.m2/repository/org/apache/maven/surefire/surefire-booter/2.0/surefire-booter-2.0.jar > org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire40094tmp > /tmp/surefire40095tmp > (CommandLineException lives in plexus-utils-1.1.jar) > Any help would be appreciated, > Thanks, > Gus. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira