-
-
Save afeish/ba061ca2997a6ab57f7b5527f2afecf3 to your computer and use it in GitHub Desktop.
Install Maven with Yum on Amazon Linux
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
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
sudo yum install -y apache-maven | |
mvn --version |
to use java-1.8, please use
sudo update-alternatives --config java
sudo update-alternatives --config javac
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo yum install java-1.8.0
sudo yum remove java-1.7.0-openjdk
http://serverfault.com/questions/664643/how-can-i-upgrade-to-java-1-8-on-an-amazon-linux-server