maven 3.3.9 on ubuntu 14.04
I had a maven and a maven2.
sudo apt-get remove maven*
- downloaded the latest version of the site.
- unpacked the archives.
- changed name.
apache_maven_3.3.9Now in the directory, two catalogues.
- set up a variable environment.
export M2_HOME=/opt/mavenIn the file
- Established the PATH variable environment
After checking the correctness of the installation, dialing the command line
Annex 'mvn' can be found in the following packages:
Try: sudo apt-get install Évabrated package
After the installation, I'll check
Apache Maven 2.2.1 (rdebian-14)
Java version: 1.8.0-ea
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: ru_UA, platform encoding: UTF-8
OS name: "linux" version: "3.16.0-51-generic" arch: "amd64" Family: "unix."
What did I do wrong?
2.2.1Not the one I wrote.
Alberto last edited by
What theory is in the repository, it's in place. The handwriting doesn't make any difference.
How can you understand,
maveninstalled in the folder
/opt/maven/bin♪ Of course the system can't find him. To fix the situation, or unpack the contents of the archive so catalogue
binwas in the file.
To make it easy to change the versions, I would recommend that we establish
/opt/apache-maven-3.3.9and create a symbolic reference
/opt/mavenOn this catalogue:
ln -s /opt/apache-maven-3.3.9 /opt/maven
This will prevent the need to sign new values
$M2_HOME♪ For the change of the story, it would be easy to remove the reference and create a new catalogue.
Let's do it now.
maven"seeable" in the system. If this is not done, she will claim that the required programme has not been found and proposed to set it out of the repository. In the catalogue.
/etc/profile.dLet's make a file with a name, for example.
maven.shwith the following contents:
export M2_HOME=/opt/maven export PATH=$PATH:$M2_HOME/bin
Reload the system or re-routine it. Ready!