Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What if maven central goes down for good?

At my work we are working on different projects and most of them are maven projects now. Sometimes, I think that what happens if all of sudden the Maven Central repository goes down for good.

Now, there are different scenarios in which it can go down including natural disaster,fire event etc.

As far as I know the companies in the United Kingdom have a certificate of Business Continuity Management that means they have plans of running the business in case of any disaster.

I've tried searching online but couldn't find this information on Maven website.

Do they have this kinda certificate ? Do the guarantee that they will be running their server forever?

Any answer would be appreciated.

like image 227
Makky Avatar asked Jan 22 '14 10:01

Makky


People also ask

What does Maven Central do?

Introduction to Maven Central Repository. Maven repository is a directory where all the dependencies such as jars, library files, plugins, or other artifacts that will be required by the projects are stored.

Who maintains Maven Central?

Sonatype offers commercial services for open-source software with products related to repositories, continuous integration, and security. Their non-commercial branch is sonatype.org which gives back some of their services to open-source projects. One of these services is Maven Central.

What can I use instead of jcenter?

So I replaced the text "jcenter" with "mavenCentral" and it works great.

Is maven repository down?

No incidents or maintenance related to this downtime.


1 Answers

As noted in comments there are mirrors but if this is an operational concern for you or your business, the solution is simple; host your own repository.

There are at least two freely available tool for doing this. I prefer Artifactory and there is also Nexus.

You set up all internal maven clients to connect to it instead of repositories elsewhere. Your repository then goes out to Maven central et. al and caches those artifacts.

This way you'll always have access to all the artifacts that you've been using. If Maven central goes away, you won't be left with broken builds.

like image 161
Kris Avatar answered Oct 20 '22 17:10

Kris