On 24/07/2012, at 6:42 PM, Rui wrote:

> Hi. I'm trying to use maven to make a version of some software I'm working on.
> 
> Everything works fine (I can do 'mvn clean', 'mvn release:clean', and 'mvn 
> install' without problems) until I try to do 'mvn -Dmaven.test.skip=true 
> release:prepare), at which point I get the following error midway through the 
> process:
> 
>    [INFO] Not generating release POMs
>    [INFO] Executing goals 'clean verify install assembly:assembly'...
>    [WARNING] Maven will be executed in interactive mode, but no input stream 
> has been configured for     this MavenInvoker instance.
>    [INFO] Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/codehaus/classworlds /Launcher
>    [INFO] Caused by: java.lang.ClassNotFoundException: 
> org.codehaus.classworlds.Launcher
>    [INFO]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>    [INFO]     at java.security.AccessController.doPrivileged(Native Method)
>    [INFO]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>    [INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>    [INFO]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>    [INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>    [INFO] Could not find the main class: org.codehaus.classworlds.Launcher.  
> Program will exit.
>    [INFO] 
> ------------------------------------------------------------------------
>    [ERROR] BUILD ERROR
>    [INFO] 
> ------------------------------------------------------------------------
>    [INFO] Maven execution failed, exit code: '1'
> 
> Help solving this issue would be greatly appreciated.


This usually happens when M2_HOME does not match the path of the mvn 
executable. You should check they both match up (including whatever version is 
forked in this instance).

Cheers,
Brett

--
Brett Porter
br...@apache.org
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter
http://twitter.com/brettporter






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to