Forked from dragolabs/install-apache-maven-3.5.0.sh
Last active
April 18, 2018 05:41
-
-
Save sfpprxy/7542b409b6383e2453901805c8cead50 to your computer and use it in GitHub Desktop.
Install Apache Maven 3.5.2 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 https://mirrors.cnnic.cn/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz | |
tar xzf apache-maven-3.5.2-bin.tar.gz | |
mkdir /opt/maven | |
mv apache-maven-3.5.2/ /opt/maven/ | |
alternatives --install /usr/bin/mvn mvn /opt/maven/apache-maven-3.5.2/bin/mvn 1 | |
alternatives --config mvn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment