How to install Maven into AWS Linux instance using yum command ?
access your instance with a AWS user that has proper permeation to install. Then run the following commands:
# 1- Get maven package
$ sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
# 2- Link it with yum:
$ sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
# 3- install maven using yum command:
$ sudo yum install -y apache-maven
# 4- Check maven version to make sure it was installed successfully:
$ mvn --version
No comments:
Post a Comment