1、下载解压
点击下载地址,下载 apache-maven-3.6.3-bin.zip 并解压。
2、配置环境变量
环境变量添加:MAVEN_HOME
变量值设为:C:\apache\apache-maven-3.6.3
PATH中添加:%MAVEN_HOME%\bin
3、验证
CMD中输入:mvn -version
C:\Users\XXX>mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\apache\apache-maven-3.6.3\bin\..
Java version: 1.8.0_151, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_151\jre
Default locale: ja_JP, platform encoding: MS932
OS name: "windows 10", version: "10.0", arch: