How to install Maven into Red Hat Enterprise Linux 6?

后端 未结 4 743
情深已故
情深已故 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:22

    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 free
    baseurl=http://mirrors.dotsrc.org/jpackage/6.0/generic/free/
    enabled=1
    gpgcheck=1
    gpgkey=http://www.jpackage.org/jpackage.asc
    EOF
    
    cat > /etc/yum.repos.d/jpackage-generic-devel.repo << EOF
    [jpackage-generic-devel]
    name=JPackage Generic Developer
    baseurl=http://mirrors.dotsrc.org/jpackage/6.0/generic/devel/
    enabled=1
    gpgcheck=1
    gpgkey=http://www.jpackage.org/jpackage.asc
    EOF
    

提交回复
热议问题