本文主要介绍Maven的安装以及环境变量配置,可以解决jdk1.8以上存在的问题,首先下载Maven最新的核心程序:
http://download.csdn.net/download/qi_ming88/10227573
接下来配置环境变量:
M2_HOME
D:\EclipseInstall\apache-maven-3.5.2
path
D:\EclipseInstall\apache-maven-3.5.2\bin
查看Maven版本信息验证安装是否正确,运用mvn -v C:\Users\ming>mvn -v
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T15:58:13
+08:00)
Maven home: D:\EclipseInstall\apache-maven-3.5.2\bin\..
Java version: 1.8.0_60, vendor: Oracle Corporation
Java home: C:\Program Files (x86)\Java\jdk1.8.0_60\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 8.1", version: "6.3", arch: "x86", family: "windows"