Installing Maven on a fresh RedHat/Centos 5.5…

This one had me a bit baffled but the recipe turned out to be easy once you know which chickens to sacrifice in which order. So:

Add the jpackage info into /etc/yum.repos.d:

http://www.jpackage.org/jpackage50.repo

Fix a dependency problem:

rpm -Uvh http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm

Then yum update and then:

yum install maven2

400 updates later, you’re in business!

# mvn --version
/usr/lib/jvm/java
Maven version: 2.0.7
Java version: 1.6.0_17
OS name: "linux" version: "2.6.18-194.el5" arch: "amd64"

That’s all! Hopefully this will get some google fu and help someone!

[Bloglines] [del.icio.us] [Digg] [Facebook] [Google] [Reddit] [Windows Live] [Yahoo!] [Email]

Related Posts:

4 Responses to “Installing Maven on a fresh RedHat/Centos 5.5…”

  1. T0MA says:

    that patch just been sent to the developers! thx for the post

  2. Pankaj M. Tolani says:

    I have posted this on centos discussion and information list. any inputs from you would be great

    This used to work for me last week

    I basically need to install maven2 along with all its dependencies

    So I follow the suggestions at http://www.davehodgkinson.com/blog/2011/04/installing-maven-on-a-fresh-redhatcentos-5-5/

    Now at the yum update step, I have started seeing lots of HTTP Error 404. Have some of the repos moved?

    I know a solution is yum clean all and then do yum update but then that also updates firefox and xulrunner for me which screws up product I use.

    Please tell me a way out. I dont want to do firefox/xulrunner upgrade, but just maven2 installation as suggested on the page

    thanks,
    pankaj

  3. davehodg says:

    Pankaj,

    Error 404 sounds like you have a bad internet connection or the proxy you are going through is getting in the way. Doesn’t sounds like software I’m afraid!

    Dave

  4. [...] god for package managers and this guy, who after some concerted googling finally showed me how to set up Cocoon on my CentOS server. (No, [...]

Leave a Reply