Tuesday, October 27, 2015

How to install Maven into AWS Linux instance using yum command ?

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

Generate a unique N letters word sequence (by using relationship between Factoradic base system and Lexicographic Permutation Order of a String)

Lets say that you want to generate a unique 3 letters code sequence to be used as a primary key for some data recodes. Also let assume ...