一、重新加载
![](https://img-blog.csdnimg.cn/img_convert/c492cc8e83134603a6974e1da5fa793d.png)
二、清除缓存
![](https://img-blog.csdnimg.cn/img_convert/68a81d8ce7c04645a7e9ca1d4aea521f.png)
三、更换为阿里源
找到maven目录/conf文件夹/setting.xml文件,添加如下代码:
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
以上都无效
四、更改maven版本
刚开始下载了个最新的(3.9.0),结果和idea版本不匹配(3.8.1),构建报错,下载了个老的(3.6.3),解决了。
![](https://img-blog.csdnimg.cn/img_convert/a7b06b4e3ede479385e40d7137c43ec1.png)
下载地址:https://maven.apache.org/download.cgi
3.6.3版本下载地址:https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/
![](https://img-blog.csdnimg.cn/img_convert/56e604feb8e049269a589a5616892ec8.png)