标签:title ade 标签 col set policy host intel data
找到idea中maven中的“settings.xml”位置
一般在idea安装目录下的“D:\Program Files\JetBrains\IntelliJ IDEA\plugins\maven\lib\maven3\conf”
有maven2和maven3选择
打开settings.xml,其中查找“<mirrors>”标签
在“<mirrors>”标签的注释后面 加下面语句:
<mirror>
<id>aliyun-public</id>
<mirrorOf>*</mirrorOf>
<name>aliyun public</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
<mirror>
<id>aliyun-central</id>
<mirrorOf>*</mirrorOf>
<name>aliyun central</name>
<url>https://maven.aliyun.com/repository/central</url>
</mirror>
<mirror>
<id>aliyun-spring</id>
<mirrorOf>*</mirrorOf>
<name>aliyun spring</name>
<url>https://maven.aliyun.com/repository/spring</url>
</mirror>
<mirror>
<id>aliyun-spring-plugin</id>
<mirrorOf>*</mirrorOf>
<name>aliyun spring-plugin</name>
<url>https://maven.aliyun.com/repository/spring-plugin</url>
</mirror>
更多的AliRepo仓库服务,可以查看https://maven.aliyun.com/mvn/view 获取
标签:title ade 标签 col set policy host intel data
原文地址:https://www.cnblogs.com/com3/p/12408669.html