一直以来,maven中央仓库在国内经常会出现间歇性的故障,有时甚至完全不可用,所以在国内有必要使用maven镜像,但是maven镜像是否工作正常是我们需要关注的问题。
最近找到了一个目前来说相对有效的方法检测镜像是否可用,即jar包下载法
通过maven的jar包搜索网站http://mvnrepository.com/找到
javassist-3.21.0-GA.jar在maven中央仓库的下载地址为:
http://central.maven.org/maven2/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
我们已知maven中央仓库的地址是:http://central.maven.org/maven2/这样,我们根据镜像的地址进行拼接看能否下载来判断maven镜像是否正常工作。
下面是对搜索到的镜像地址进行检测
中央仓库1 可用
http://repo1.maven.org/maven2/
中央仓库2 可用
http://repo2.maven.org/maven2/
阿里云 可用
仓库地址
http://maven.aliyun.com/nexus/content/groups/public
jar包地址
http://maven.aliyun.com/nexus/content/groups/public/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
阿里云2 可用
仓库地址
http://maven.aliyun.com/nexus/content/repositories/central/
jar包地址
http://maven.aliyun.com/nexus/content/repositories/central/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
uk
镜像 可用
仓库地址
http://uk.maven.org/maven2/
jar包地址
http://uk.maven.org/maven2/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
taobaotae
镜像 可用
仓库地址
http://mvnrepo.tae.taobao.com/content/groups/public/
jar包地址
http://mvnrepo.tae.taobao.com/content/groups/public/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
hsweb
镜像 可用
仓库地址
http://nexus.hsweb.me/content/groups/public/
jar包地址
http://nexus.hsweb.me/content/groups/public/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
ibiblio
镜像 访问慢
仓库地址
http://mirrors.ibiblio.org/maven2/
jar包地址
http://mirrors.ibiblio.org/maven2/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
maven国内镜像 不可用
仓库地址
http://maven.net.cn/content/groups/public/
jar包地址
http://maven.net.cn/content/groups/public/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
maven-google镜像 不可用
仓库地址
https://maven-central.storage.googleapis.com
jar包地址
https://maven-central.storage.googleapis.com/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
jboss
镜像 可用但更新不及时
仓库地址
http://repository.jboss.org/nexus/content/groups/public
jar包地址
http://repository.jboss.org/nexus/content/groups/public/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
开源中国 已关闭
仓库地址
http://maven.oschina.net/
jar包地址
http://maven.oschina.net/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
开源中国2 不可用
仓库地址
http://maven.oschina.net/content/groups/public/
jar包地址
http://maven.oschina.net/content/groups/public/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
开源中国第三方镜像
仓库地址
http://maven.oschina.net/content/repositories/thirdparty/
v2ex's gejun123456
不可用
仓库地址
http://103.50.253.208:8081/repository/maven-central/
jar包地址
http://103.50.253.208:8081/repository/maven-central/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
v2ex's imxieke
不可用
仓库地址
https://maven.xieke.org/
jar包地址
https://maven.xieke.org/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
v2ex's lbp0200
不可用
仓库地址
http://lbp0200-maven.daoapp.io/
jar包地址
http://lbp0200-maven.daoapp.io/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar
update:jboss镜像可用,但包太老,javassist-3.21只能下载2016年9月的包
http://repository.jboss.org/org/javassist/javassist/3.21.0-SNAPSHOT/javassist-3.21.0-20160927.175917-2.jar
http://repository.jboss.org/nexus/content/groups/public/org/javassist/javassist/3.21.0-SNAPSHOT/javassist-3.21.0-20160927.175917-2.jar