Maven - Archiva - 针对不同地理位置设置 Archiva
我们的开发人员在不同的地理位置工作,我们希望为每个地理位置设置 Archiva(只是为了确保获取工件的往返次数更少)。
是否有可能每当从位于 G1
的 Archiva 上传/删除工件时,相同的更改就会被推送到位于 G2
、G3等等?
We have developers working in different geographic locations and we want to set up Archiva for each of those geographic locations (just to make sure that the round trip in getting the artifacts is less).
Is it possible that whenever an artifact is uploaded/deleted from Archiva at location G1
then the same change gets pushed to Archiva managed repository at location G2
, G3
and so on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这并不完全是您所要求的,但最终效果对于系统用户来说是相同的,因此值得研究。
您可以使用代理连接器<将Archiva设置为代理远程存储库/a>.
使用此机制,您可以将 G2 配置为具有 G1 的代理,这意味着当任何工件部署到 G1 时,它都可以通过代理机制在 G2 上使用。
从文档中:
如果代理连接器不适合您,您可以考虑替代复制方法。我会重新考虑,因为任何本土解决方案都可能在用户修改存储库内容时引入问题。
This isn't exactly what you asked for, but the net effect is the same to the users of the system so it is worth looking into.
You can set Archiva up to proxy remote repositories by using proxy connectors.
Using this mechanism you could configure G2 to have a proxy of G1, this means when any artifact is deployed to G1, it would be available at G2 via the proxy mechanism.
From the documentation:
If proxy connectors won't work for you, you could look into alternative replication approaches. I would reconsider though as any homegrown solution is likely to introduce issues as users modify the repository contents.