Forked from miroslavtamas/install-apache-maven-3.3.9.sh
Last active
January 10, 2020 15:26
-
-
Save fossouo/75da8b09125b214c63a4284a1c30cc40 to your computer and use it in GitHub Desktop.
Install Apache Maven 3.3.9 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 | |
yum install git -y | |
wget http://www.eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | |
tar xzf apache-maven-3.3.9-bin.tar.gz | |
mkdir /usr/local/maven | |
mv apache-maven-3.3.9/ /usr/local/maven/ | |
alternatives --install /usr/bin/mvn mvn /usr/local/maven/apache-maven-3.3.9/bin/mvn 1 | |
alternatives --config mvn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment