How to install Maven into Red Hat Enterprise Linux 6? How to install Maven into Red Hat Enterprise Linux 6? linux linux

How to install Maven into Red Hat Enterprise Linux 6?


The distro agnostic generic repo is what you want. As root, add a couple of the jpackage-generic repos to yum (two snippets below). Then perform a yum update and finally yum install maven2.

cat > /etc/yum.repos.d/jpackage-generic-free.repo << EOF[jpackage-generic-free]name=JPackage generic freebaseurl=http://mirrors.dotsrc.org/jpackage/6.0/generic/free/enabled=1gpgcheck=1gpgkey=http://www.jpackage.org/jpackage.ascEOFcat > /etc/yum.repos.d/jpackage-generic-devel.repo << EOF[jpackage-generic-devel]name=JPackage Generic Developerbaseurl=http://mirrors.dotsrc.org/jpackage/6.0/generic/devel/enabled=1gpgcheck=1gpgkey=http://www.jpackage.org/jpackage.ascEOF


I had all kinds of conflicts trying to use the JPackage repo with Scientific Linux 6.2, but I had much better luck with dchen's repo from the "Fedora People" unofficial repositories. The repo config I used is:

# 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=1skip_if_unavailable=1gpgcheck=0[epel-apache-maven-source]name=maven from apache foundation. - Sourcebaseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/SRPMSenabled=0skip_if_unavailable=1gpgcheck=0

The package itself is called apache-maven and installs maven 3.0.3.


This is more updated way:

curl http://www.jpackage.org/jpackage50.repo > /etc/yum.repos.d/jpackage.repoyum updateyum install maven2