[英]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 )我正在评估使用 Google Artifact Registry 作为 Nexus 的替代品,我在文档中找不到的一件事是是否可以镜像或代理官方存储库,例如 mavenCentral(如本网站建议的https ://blog.sonatype.com/using-nexus-3-as-your-repository-part-1-maven-artifacts )
Has anyone else achieved this using Artifact Registry?有没有其他人使用 Artifact Registry 实现了这一点?
It is not currently possible to proxy/mirror upstream repositories with Artifact Registry.目前无法使用 Artifact Registry 代理/镜像上游存储库。 Support for upstream repositories is on the roadmap, with support for repos such as DockerHub, Maven, NPMJS and PyPi on the list.
对上游存储库的支持在路线图上,对 DockerHub、Maven、NPMJS 和 PyPi 等存储库的支持在列表中。 It will be a proxy / pull-through cache model.
它将是代理/直通缓存 model。
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我也只是在调查这个,发现 GCP 上已经有 Maven Central 的镜像: https://cloudplatform.googleblog.com/2015/11/faster-builds-for-Java-developers-with-Maven-Central-mirror .html
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). @christiaan wrt 已部分回答了该问题: 镜像或代理 mavenCentral (尽管如果无论如何都没有定义其他 maven 存储库,则这是默认的回退)。
The closest Google feature request is: maven repos proxying and/or caching public repos .最接近的 Google 功能请求是: maven 存储库代理和/或缓存公共存储库。 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.当然,我想做的是代理我的私人回购,但首先需要公共功能才能有机会。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.