- 找到IDEA软件中maven中的“settings.xml”位置
一般在idea安装目录下的“
D:\IntelliJ IDEA 2017.2.5\plugins\maven\lib\maven3\conf”
- 找到IDEA软件中maven中的“settings.xml”位置
- 用IDEA打开settings.xml文件
找到“<mirrors>”标签
在“<mirrors>”标签下加下面语句:
- 用IDEA打开settings.xml文件
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
- 保存
原文链接:https://blog.csdn.net/panchang199266/article/details/80307357