Jim Hurne
Jim Hurne

Reputation: 7349

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.org/maven2) mirrors?

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

Upvotes: 37

Views: 78175

Answers (5)

Pankaj Goyal
Pankaj Goyal

Reputation: 31

This worked for me!

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

Upvotes: 3

ROMANIA_engineer
ROMANIA_engineer

Reputation: 56636

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>

Upvotes: 5

Sled
Sled

Reputation: 18949

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>

Upvotes: 24

lscmaro
lscmaro

Reputation: 1065

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

Upvotes: 18

Johnny Baloney
Johnny Baloney

Reputation: 3651

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.

Upvotes: 6

Related Questions