How to install Maven into Red Hat Enterprise Linux 6?

后端 未结 4 742
情深已故
情深已故 2021-01-30 23:44

I\'m working on a Scientific Linux box and am trying to install Maven using the yum command. Scientific Linux for those of you who do not know is based off of Red H

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-31 00:13

    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=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
    

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

提交回复
热议问题