(一)下载
下载网址:http://maven.apache.org/download.cgi
版本:3.0.5
(二)安装
1、解压至目录:F:\Kevin\software\apache-maven-3.0.5
2、设置环境变量
M2_HOME:F:\Kevin\software\apache-maven-3.0.5
path:path;%M2_HOME%\bin
(三)验证
打开CMD,执行命令
mvn -v
命令结果如下,表明安装成功
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 21:51:28+0800)
Maven home: F:\Kevin\software\apache-maven-3.0.5
Java version: 1.6.0_35, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_35\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"