Forked from miroslavtamas/install-apache-maven-3.3.9.sh
Last active
April 18, 2018 05:35
-
-
Save dragolabs/6ba0b4c4d85c766adf20f9b0fa71bb1a to your computer and use it in GitHub Desktop.
Install Apache Maven 3.5.0 on CentOS
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
#!/bin/sh | |
wget http://www.eu.apache.org/dist/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz | |
tar xzf apache-maven-3.5.0-bin.tar.gz | |
mkdir /opt/maven | |
mv apache-maven-3.5.0/ /opt/maven/ | |
alternatives --install /usr/bin/mvn mvn /opt/maven/apache-maven-3.5.0/bin/mvn 1 | |
alternatives --config mvn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment