通过设置国内源,提高速度
- 阿里云Maven中央仓库
[http: //maven.aliyun.com/nexus/content/groups/public/]
- 腾讯云
[https: //mirrors.cloud.tencent.com/nexus/repository/maven-public/]
- 中科大Maven镜像
[https: //mirrors.ustc.edu.cn/repogen/conf/maven-public/]
设置方法
修改setting.xml
文件配置
<mirror>
<id>aliyun</id>
<name>Aliyun Maven Mirror</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<!-- 设置源镜像,以阿里为例 -->
<mirrorOf>central</mirrorOf>
</mirror>