[ http://jira.codehaus.org/browse/MNGECLIPSE-154?page=comments#action_76740 
] 
            
Chris Hilton commented on MNGECLIPSE-154:
-----------------------------------------

Are there any workarounds for this? It seems unlikely that no one is running 
tests while building in Eclipse.

> surefire NoClassDefFoundError error
> -----------------------------------
>
>                 Key: MNGECLIPSE-154
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-154
>             Project: Maven 2.x Extension for Eclipse
>          Issue 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

        

Reply via email to