Created
August 16, 2017 23:50
-
-
Save abrkn/b807651c086b94c5b48b64f6bceac73e to your computer and use it in GitHub Desktop.
This file contains 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 http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | |
... | |
2017-08-16 23:45:35 (2.26 MB/s) - ‘apache-maven-3.3.9-bin.tar.gz’ saved [8491533/8491533] | |
$ tar -zxvf apache-maven-3.3.9-bin.tar.gz | |
... | |
$ sudo mv apache-maven-3.3.9 /opt/maven | |
$ printf 'export M2_HOME=/opt/maven\nexport PATH=${M2_HOME}/bin:${PATH}\n' | sudo tee -a /etc/profile.d/mavenenv.sh | |
$ source /etc/profile.d/mavenenv.sh | |
$ mvn --version | |
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment