首页 > 代码库 > CentOS6.x maven安装教程

CentOS6.x maven安装教程

  1. 下载maven

  2. 官网:

    下载地址http://maven.apache.org/download.cgi

  3. 解压

    tar -zxvf apache-maven-3.2.3-bin.tar.gz

  4. 安装

    cp apache-maven-3.2.3 /usr/local/maven

    cd usr/local/maven

    ln -s /usr/local/apache-maven/-3.2.3 maven_default

    cd /usr/sbin

    ln -s /usr/local/maven_default/bin/mvn mvn

  5. mvn -v


    Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T04:58:10+08:00)

    Maven home: /usr/local/maven/maven_default

    Java version: 1.8.0_25, vendor: Oracle Corporation

    Java home: /usr/local/jdk1.8/jre

    Default locale: zh_CN, platform encoding: UTF-8

    OS name: "linux", version: "2.6.32-358.el6.x86_64", arch: "amd64", family: "unix"

    说明成功

本文出自 “落寞” 博客,请务必保留此出处http://qinheng.blog.51cto.com/8764944/1565333

CentOS6.x maven安装教程