Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the official mirrors of the Maven Central Repository?

Tags:

maven-2

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?

like image 820
Jim Hurne Avatar asked Mar 08 '11 14:03

Jim Hurne


People also ask

What is mirror repository in Maven?

You can force Maven to use a single repository by having it mirror all repository requests. The repository must contain all of the desired artifacts, or be able to proxy the requests to other repositories.

What is the Maven central repository?

What is a Maven Repository? In Maven terminology, a repository is a directory where all the project jars, library jar, plugins or any other project specific artifacts are stored and can be used by Maven easily.

What are three types of Maven repository?

There are 3 types of maven repository: Local Repository. Central Repository. Remote Repository.

What is mirror in Maven settings xml file?

The mirror to http://a.com:8081 will be used when Maven will try to fetch a dependency from one of the repository that it mirrors.


1 Answers

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> 
like image 169
Sled Avatar answered Sep 28 '22 16:09

Sled