在maven的setting配置文件中,默认使用的镜像是
maven-default-http-blocker
external:http:*
Pseudo repository to mirror external repositories initially using HTTP.
http://0.0.0.0/
true
将其更改为阿里云镜像
nexus-aliyun central Nexus aliyun http://maven.aliyun.com/nexus/content/groups/public然后再idea中的setting的maven设置中指定已经修改为阿里云的setting文件
再次使用maven下载依赖的时候就会使用阿里云镜像