I have installed a latest maven-3.2.5
on Linux Mint Throgh CLi
The installation details are as follows:
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
export M2_HOME=/home/mani/apache-maven-3.2.5/bin/
In the command it shows it like this:
mani@manithullimilli ~/apache-maven-3.2.5/bin $ ./mvn version
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher mani@manithullimilli ~/apache-maven-3.2.5/bin $
I Have Setted Path Also
You mentioned M2_HOME environment variable incorrectly.M2_HOME environment variable should be "/home/mani/apache-maven-3.2.5"
export M2_HOME=/home/mani/apache-maven-3.2.5
and Add the $M2_HOME/bin directory to your path.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With