Hi,
I have a very basic problem installing the latest version of Maven.
I'm using Ubuntu 12.04 and Sun Java 6.
I have followed this steps:
1) Unpack the archive where you would like to store the binaries, eg:
Unix-based Operating Systems (Linux, Solaris and Mac OS X)
tar zxvf apache-maven-3.0.x.tar.gz
2) A directory called "apache-maven-3.0.x" will be created.
3) Add the bin directory to your PATH, eg:
Unix-based Operating Systems (Linux, Solaris and Mac OS X)
export PATH=/usr/local/apache-maven-3.0.x/bin:$PATH
4) Make sure JAVA_HOME is set to the location of your JDK
5) Run "mvn --version" to verify that it is correctly installed.
This is the result I get: :-(
java.lang.ClassNotFoundException: org.apache.maven.cli.MavenCli
at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.
loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.
loadClass(ClassRealm.java:244)
at org.codehaus.plexus.classworlds.realm.ClassRealm.
loadClass(ClassRealm.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.
getMainClass(Launcher.java:145)
at
org.codehaus.plexus.classworlds.launcher.Launcher.
launchEnhanced(Launcher.java:267)
at org.codehaus.plexus.classworlds.launcher.Launcher.
launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.
mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.
main(Launcher.java:352)
I don't understand what it may happen.
On the other side, I can run the Maven embedded in Eclipse successfully.
Any help will be greatly appreciated.
David
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]