Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Created May 22, 2012 04:24
Show Gist options
  • Save wolfeidau/2766543 to your computer and use it in GitHub Desktop.
Save wolfeidau/2766543 to your computer and use it in GitHub Desktop.
atlas-mvn error
$ java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
$ which atlas-mvn
/home/markw/Applications/atlassian-plugin-sdk-3.10.3/bin/atlas-mvn
$ atlas-mvn
Executing: /home/markw/Applications/atlassian-plugin-sdk-3.10.3/apache-maven/bin/mvn
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.codehaus.classworlds.Launcher. Program will exit.
@wolfeidau
Copy link
Author

To resolve this I modified the bindled apache-maven/bin/mvn script by commenting out the source of mavenrc as seen below.

#if [ -f /etc/mavenrc ] ; then
#  . /etc/mavenrc
#fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment