yum安装maven2

 

(2012-08-09 21:27:00)



http://stackoverflow.com/questions/6298865/how-to-install-maven-into-red-hat-linux-enterprise-addition-6
注意是安装maven2不是maven
wget http://www.jpackage.org/jpackage50.repoyum install maven2
 
另外一个源安装maven3, 命令同样是yum install -y maven2:
# Note: Replaced $releasever with 6Server since SL's "6.2" doesn't work
[epel-apache-maven]
name=maven from apache foundation.
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=0[epel-apache-maven-source]
name=maven from apache foundation. - Source
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/SRPMS
enabled=0
skip_if_unavailable=1
gpgcheck=0