安裝Maven之前先確定JDK已經(jīng)安裝配置完成。
MAVEN_HOME = D:Program Files (x86)apache-maven-3.3.9
Path = *;%MAVEN_HOME%in
打開cmd命令行
C:Userscyyun>mvn -version Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:4 7+08:00) Maven home: D:ProgramFiles (x86)apache-maven-3.3.9in.. Java version: 1.8.0_152, vendor: Oracle CorporaTIon Java home: D:ProgramFiles (x86)Javajdk1.8.0_152jreDefault locale: zh_CN, platform encoding: GBK OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" 3.配置setTIngs.xml文件
文件路徑地址D:Program Files (x86)apache-maven-3.3.9confsetTIngs.xml
3.1.修改本地倉庫地址<localRepository>D:/repository<mirror><id>alimaven<url>