使用阿里云maven镜像加速jar包下载

编辑 MAVEN_HOME/conf 文件夹下的 settings.xml,找到 <mirrors> 节点,把下面内容添加在其子节点内:

<mirror>
	<id>nexus-aliyun</id>
	<mirrorOf>*</mirrorOf>
	<name>Nexus aliyun</name>
	<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

这样就将原本的镜像地址更换为阿里云的镜像地址,避免了从国外仓储下载 jar 包,提升了速度。

本文由个人 hexo 博客 co2fe.com 迁移
date: 2018-07-1 1:14:51

原文地址:https://www.cnblogs.com/manastudent/p/10190981.html