Monday, June 22, 2015

How to Install Apache Maven on Amazon Linux

To install Apache Maven with YUM on Amazon Linux:

Install Apache Maven repo:
# sudo wget -O /etc/yum.repos.d/epel-apache-maven.repo

Replace "$reloease" to 6, we want to use epel-6
# sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo

Install Apache Maven:
sudo yum install -y apache-maven
mvn --version

1 comment:

Jeremy said...

Thanks, too many incomplete or outdated answers on stackoverflow.