36

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?

Jim Hurne
  • 7,187
  • 4
  • 44
  • 44

5 Answers5

22

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:

Others:

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>
Sled
  • 18,541
  • 27
  • 119
  • 168
16

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

lscmaro
  • 995
  • 8
  • 22
6

From Using Mirrors for Repositories:


The official Maven 2 repository is at:

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.

Johnny Baloney
  • 3,409
  • 1
  • 33
  • 37
4

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>
Raymond Tau
  • 3,429
  • 26
  • 28
ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
  • 1
    getting error "'mirrors.mirror.mirrorOf' for repo.exist.com is missing @ \.m2\settings.xml" – Gaurav Mar 15 '19 at 06:33
3

This worked for me!

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