1.点击File->Settings->Build, Execution, Deployment -> Build Tools -> Maven
2.打开setting.xml文件,添加镜像。
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
3.之后重启idea就可以了。