此处使用的Maven的版本为3.8.6,下面为maven的默认镜像:
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.
</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>
阿里云镜像源码:
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
将默认镜像代码注释掉,修改为阿里云镜像