maven配置镜像及修改仓库地址
扫描二维码
随时随地手机看文章
安装Maven之前先确定JDK已经安装配置完成。
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>