What are the official mirrors of the Maven Central Repository?

混江龙づ霸主 提交于 2020-05-25 05:43:25

问题


Does anyone know if a list of known (and working) Maven Central Repository (http://repo1.maven.org/maven2) mirrors?

If not, what mirrors do you use when the central repository is down?


回答1:


This is taken from @rvxnet's answer and an example of why link-only answer are not desirable. I've taken this from the 2015-05-20 WaybackMachine version of their link:

Official, but not browseable:

  • http://repo1.maven.org/maven2
  • http://uk.maven.org/maven2

Others:

  • http://mirrors.ibiblio.org/pub/mirrors/maven2 (missing some packages, I can tell from experience, jmockit for example)
  • http://maven.antelink.com/content/repositories/central/
  • http://maven2.mirrors.skynet.be/pub/maven2/

Also, there are official instructions for configuring to use mirrors. Essentially, you add to you settings.xml the something like the following:

<mirrors>
    <mirror>
        <id>planetmirror.com</id>
        <name>PlanetMirror Australia</name>
        <url>http://downloads.planetmirror.com/pub/maven2</url>
        <mirrorOf>central</mirrorOf>
    </mirror>
</mirrors>



回答2:


I just found this:

<mirrors>
  <mirror>
   <id>google-maven-central</id>
   <name>Google Maven Central</name>
   <url>https://maven-central.storage.googleapis.com/maven2/</url>
   <mirrorOf>central</mirrorOf>
  </mirror> 
</mirrors> 

That worked great for me

credit: Failed to get the server archetype by maven




回答3:


Here http://repo.maven.apache.org/maven2/.meta/repository-metadata.xml you can see the following list:

<mirrors>
    <!--mirror> 
        <id>cica.es</id>
        <url>http://ftp.cica.es/mirrors/maven2</url>
    </mirror-->
    <mirror>
        <id>repo.exist.com</id>
        <url>http://repo.exist.com/maven2</url>
    </mirror>
    <mirror>
        <id>ibiblio.org</id>
        <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
    </mirror>
    <mirror>
        <id>ibiblio.net</id>
        <url>http://www.ibiblio.net/pub/packages/maven2</url>
    </mirror>
    <!--mirror>
        <id>mirror.netcologne.de</id>
        <url>http://mirror.netcologne.de/maven2</url> 
    </mirror -->
    <mirror>
        <id>uk.maven.org</id>
        <url>http://uk.maven.org/maven2</url>
    </mirror>
</mirrors>



回答4:


From Using Mirrors for Repositories:


The official Maven 2 repository is at:

  • http://repo.maven.apache.org/maven2 hosted in the US, or
  • http://uk.maven.org/maven2 hosted in the UK.

A list of known mirrors is available in the Repository Metadata. These mirrors may not have the same contents and we don't support them in any way.


Also:


The size of the central repository is increasing steadily. To save us bandwidth and you time, mirroring the entire central repository is not allowed (doing so will get you automatically banned). Instead, we suggest you setup a repository manager as a proxy.



来源:https://stackoverflow.com/questions/5233610/what-are-the-official-mirrors-of-the-maven-central-repository

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!