CentOS 下安装 Maven2 ---Under development, NOT ready to be used

  • 首先增加新的安装源:jpackage-generic-free.repo 和 jpackage-generic-devel.repo
  • 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
    

  • 执行 yum update 和 yum install maven2
  • Install the bin file manually:

  • See: http://key2start.wordpress.com/2011/04/05/maven-on-centos/

    你可能感兴趣的:(maven,centos)