我们国内常用的是阿里云仓库的镜像。
阿里云镜像的访问地址:仓库服务
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<!-- 阿里云仓库镜像 -->
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun-maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
maven官方给的界面查询jar包和pom标签的网站 : https://mvnrepository.com/,在这个网站上面是全球化的jar都可以查询,是maven官方合作给的网站,可以用到的jar包比较全面。
在这个https://mvnrepository.com/网站上面点jar包,点在那个仓库管理,可以看到对应的镜像
mvn官方自己管理的镜像地址
<!-- 中央仓库1 -->
<mirror>
<id>repo1</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>https://repo1.maven.org/maven2/</url>
</mirror>
<!-- 中央仓库2 -->
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>https://repo2.maven.org/maven2/</url>
</mirror>
ps:建议用阿里云镜像和mvn官方镜像一起来用,因为mvn官方的有时候下载jar会比较慢
下面是腾讯云和华为云的
<!-- 腾讯云 -->
<mirror>
<id>nexus-tencentyun</id>
<name>Nexus tencentyun</name>
<url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url>
</mirror>
<!--华为云 -->
<mirror>
<id>huaweicloud</id>
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
</mirror>