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?
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 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.
There are 3 types of maven repository: Local Repository. Central Repository. Remote Repository.
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.
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With