1 下载: apache-maven-3.0.3-bin.zip 压缩包
2 将压缩包解压到需要安装的目录文件中. 比如解压到: Z:\zr_anzhungwenjian\apache-maven-3.0.3-bin
3 环境变量配置
变量名: M2_HOME = Z:\zr_anzhungwenjian\apache-maven-3.0.3-bin
变量名: path = %M2_HOME%\bin
4
配置调试
打开命令提示符(开始---运行---cmd),检查我们的java环境和maven环境是否有误。
mvn -v
如果能打印出maven的版本号,说明配置成功。
C:\Users\zhour>mvn -v
Apache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800)
Maven home: Z:\zr_anzhungwenjian\apache-maven-3.0.3-bin\apache-maven-3.0.3
Java version: 1.8.0_25, vendor: Oracle Corporation
Java home: Z:\zr_anzhungwenjian\java-32\jdk\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 7", version: "6.1", arch: "x86", family: "dos"
时间: 2024-10-06 23:41:41