centos 安装 maven
1: 下载 maven 我采用的是 apache-maven-3.3.9-bin.tar.gz
http://maven.apache.org/download.cgi
2: 解压 tar –zxvf apache-maven-3.3.9-bin.tar.gz
3: 创建软连接 ln -s apache-maven-3.3.9
4: 添加环境变量 :vim /etc/profile
添加内容 export MAVEN_HOME=/usr/local/maven
export PATH=$PATH: $MAVEN_HOME/bin
5; 使之生效 source /etc/profile
6: 查看是否安装成功 mvn –v 如果出现下面内容则成功
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /usr/local/maven
Java version: 1.7.0_67, vendor: Oracle Corporation
Java home: /usr/local/jdk1.7.0_67/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-573.22.1.el6.x86_64", arch: "amd64", family: "unix"