You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gus Power (JIRA)" <ji...@codehaus.org> on 2006/05/14 15:32:41 UTC

[jira] Created: (MECLIPSE-106) surefire NoClassDefFoundError error

surefire NoClassDefFoundError error
-----------------------------------

         Key: MECLIPSE-106
         URL: http://jira.codehaus.org/browse/MECLIPSE-106
     Project: Maven 2.x Eclipse Plugin
        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


[jira] Commented: (MECLIPSE-106) surefire NoClassDefFoundError error

Posted by "Gus Power (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-106?page=comments#action_65650 ] 

Gus Power commented on MECLIPSE-106:
------------------------------------

Hi,

Just wondering if anyone has had a chance to look at this further?
>From reading the Spring Rich Client development setup at http://spring-rich-c.sourceforge.net/development/developmentSetup.html it seems that these guys have had some difficulty getting the M2 plugin working as well - are these issues configuration-based or does the plugin require further work?

Thanks,

Gus.

> surefire NoClassDefFoundError error
> -----------------------------------
>
>          Key: MECLIPSE-106
>          URL: http://jira.codehaus.org/browse/MECLIPSE-106
>      Project: Maven 2.x Eclipse Plugin
>         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


[jira] Commented: (MNGECLIPSE-154) surefire NoClassDefFoundError error

Posted by "Chris Hilton (JIRA)" <ji...@codehaus.org>.
    [ 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