IDEA默认的maven下载地址:https://repo.maven.apache.org/maven2 下载maven的依赖包非常的慢,需要修改为国内的镜像,这样下载就很快。
1.找到maven的地址,即IDEA默认maven的安装地址。

2.新建settings.xml

settings.xml的内容为:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
这里用的是国内阿里云的镜像。
3.重启IDEA。
来源:https://www.cnblogs.com/luoyihao/p/12190019.html