简体   繁体   English

目前有什么方法可以使用 Artifact Registry 镜像官方 maven 存储库?

[英]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.

相关问题 有什么方法可以将 GCP 工件注册表中的工件显示为 Jenkins 构建参数 - Is there any way to show artifacts from GCP Artifact Registry as Jenkins build parameter GCP Artifact Registry - 仅在 repo 不存在时创建 - GCP Artifact Registry - create repo only when it does not exist 无法使用 OCI 将 Helm Chart 推送到 Google Cloud Artifact Registry - Unable to push Helm Chart to Google Cloud Artifact Registry using OCI 使用 Terraform 将 GCP 云功能部署到 Artifact Registry - Deploy GCP Cloud functions to Artifact Registry using Terraform 谷歌云:Artifact Registry 与 Container Registry - Google Cloud: Artifact Registry vs Container Registry 过渡到 Artifact Registry 的简单示例 - simple example for Transition to Artifact Registry Google Cloud Container Registry/Artifact Registry 权限 - Google Cloud Container Registry/Artifact Registry Permissions 如何自动从 Artifact Registry 中删除图像 - How to remove an image from Artifact Registry automatically 来自不同项目的 Google Artifact Registry 访问 - Google Artifact Registry access from different projects 如何使用 Terraform 使用来自 Artifact Registry 的 Docker 映像部署 GKE 工作负载? - How do I deploy a GKE Workload with my Docker image from the Artifact Registry using Terraform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM