开发者

What are the official mirrors of the Maven Central Repository?

Does anyone know if a list of known (and working) Maven Central Repository (http://repo1.maven.o开发者_开发知识库rg/maven2) mirrors?

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


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:

  • https://repo1.maven.org/maven2

Others:

  • https://maven.antelink.com/content/repositories/central/

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>


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


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.


Here https://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>


This worked for me!

<mirror>
  <id>central-secure</id>
  <url>https://repo.maven.apache.org/maven2/</url>
  <mirrorOf>central</mirrorOf>
</mirror>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜