标签:
目录:
一.环境
1.1 系统环境
1.2软件版本
二. 安装
2.1 下载软件
2.2 安装
三.验证
正文
一.环境
1.1 系统环境
[wls81@gtproxy-pa-1 ~]$ lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 6.6 (Final) Release: 6.6 Codename: Final [wls81@gtproxy-pa-1 ~]$ uname -a Linux gtproxy-pa-1 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
1.2 软件版本
apache-maven-3.2.5
二.安装
2.1 下载软件
链接:http://pan.baidu.com/s/1sjwu0sl 密码:e48s
2.2 安装
2.2.1 安装目录 /usr/local/apache-maven-3.2.5
解压到此目录即可。
2.2.2 修改配置文件 /etc/profile
修改之前请备份
export MAVEN_HOME=/usr/local/apache-maven-3.2.5 export PATH=$PATH:$MAVEN_HOME/bin
2.2.3 修改立即生效
source /etc/profile
三 验证
[root@gtproxy-pa-1 ~]# mvn -version Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15T01:29:23+08:00) Maven home: /usr/local/apache-maven-3.2.5 Java version: 1.6.0_45, vendor: Sun Microsystems Inc. Java home: /usr/local/jdk1.6.0_45/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "2.6.32-504.el6.x86_64", arch: "amd64", family: "unix"
标签:
原文地址:http://my.oschina.net/u/234018/blog/498466