Created
January 22, 2019 22:13
-
-
Save ny83427/5218c9f20cad8ef8a82f68c284e63cc0 to your computer and use it in GitHub Desktop.
Install Maven 3.6.0 at Ubuntu 14.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://www-us.apache.org/dist/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz | |
sudo tar xf apache-maven-*.tar.gz -C /opt | |
sudo ln -s /opt/apache-maven-3.6.0 /opt/maven | |
sudo nano /etc/profile.d/maven.sh | |
# commit these 4 lines | |
export JAVA_HOME=/usr/lib/jvm/default-java | |
export M2_HOME=/opt/maven | |
export MAVEN_HOME=/opt/maven | |
export PATH=${M2_HOME}/bin:${PATH} | |
sudo chmod +x /etc/profile.d/maven.sh | |
source /etc/profile.d/maven.sh | |
mvn -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this works on ubuntu 22.04?