Maven Repository代理第三方仓库,这会产生流量吗?
我们有一个公共 Sonatype Nexus Maven Repository
,它是多个第三方存储库(例如 JBOSS 或 Scala-Repo)的代理。
下载位于代理存储库(例如 JBOSS)之一的工件是否会在运行我们的存储库的服务器上产生流量?
We have a public Sonatype Nexus Maven Repository
which is a proxy for several third-party repositories, such as JBOSS or the Scala-Repo.
Does the downloading of artifacts which are located in one of the proxied repositories (JBOSS for example) produce traffic on the sever which runs our repository?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是发布的工件会发生的情况(快照将涉及更多检查):
因此,客户端计算机和 Nexus 之间以及 Nexus 和第三方存储库之间可能存在流量。如果这不能回答问题,请澄清。
Here is what happens for released artifacts (SNAPSHOT would involve more checks):
So, there is potentially traffic between the client machine and Nexus and there is potentially traffic between Nexus and a third-party repository. If this doesn't answer the question, please clarify.
是的,它可以,特别是对于快照以及每当 maven 要求 maven-metadata.xml (用于快照或版本范围解析)时。这可以使用路由规则进行优化,以防止例如 com/yourcompany 被 jboss 或central 等解析。
Yes it can, particularly for snapshots and whenever maven asks for the maven-metadata.xml (which is used in snapshots or version range resolution). This can be optimized using routing rules to prevent for example com/yourcompany from ever being resolved from jboss or central etc.