still0r
still0r

Reputation: 123

Is there currently any way to mirror an official maven repo using Artifact Registry?

I'm evaluating using Google Artifact Registry as a replacement for Nexus, and one thing that I have been unable to find in the documentation is if it is possible to mirror or proxy an official repository, for instance mavenCentral (like suggested on this site https://blog.sonatype.com/using-nexus-3-as-your-repository-part-1-maven-artifacts)

Has anyone else achieved this using Artifact Registry?

Upvotes: 12

Views: 3103

Answers (3)

Ian W
Ian W

Reputation: 4767

The question has been partly answered by @christiaan wrt: mirror or proxy mavenCentral (though that is the default fallback if there is no other maven repository is defined anyway).

The closest Google feature request is: maven repos proxying and/or caching public repos. Suggest all interested upvote the feature.

Of course, what I want to do is proxy my private repo, but need the public feature first to even have a shot at that.

Upvotes: 1

Gari Singh
Gari Singh

Reputation: 12053

It is not currently possible to proxy/mirror upstream repositories with Artifact Registry. Support for upstream repositories is on the roadmap, with support for repos such as DockerHub, Maven, NPMJS and PyPi on the list. It will be a proxy / pull-through cache model.

Upvotes: 3

Christiaan
Christiaan

Reputation: 2725

I was also just looking into this and found there's already a mirror of Maven Central on GCP: https://cloudplatform.googleblog.com/2015/11/faster-builds-for-Java-developers-with-Maven-Central-mirror.html

Upvotes: 0

Related Questions