Search code examples
mavenartifact

What if maven artifact not anymore available?


As we just migrated all projects to maven projects, one question came up and I couldn't find any suitable solutions yet.

What if maven shuts down forever or just one artifact is not available anymore? Or what if some versions are not available anymore, and the software cannot run with the newer ones?

Since we're not hosting a copy of the artifacts locally, should we host copies of every jar somewhere for such a scenario?

Thanks


Solution

  • Unlikely, but if you build your artifacts with Maven, you already have a copy of each relevant artifact - in your local repository. If you backup it from time to time, you have the necessary level of security.

    Alternatively, use a company repository manager (Nexus/Artifactory) to proxy MavenCentral. It will also keep copies of the used artifacts.