We are a global team with around 30 devs that generally focusing on the same product. And we have a mirror site of maven repo maintained using Nexus. The proxy server is placed in the US and when we start checking out the latest code and rebuild, it usually takes the Beijing team a lot of time.
The problem here is we use some snapshot libs on glassfish related libs, every 24 hours, these libs will be downloaded again, and nothing would be expected to change.
The idea of snapshot for maven is that when someone actively developing some code, which is referenced by your project in the pom, you then can be guaranteed to have the lasted dependency without changing pom. So for those libs that are out of the ctrl scope, the better use case is to retrieve them from the release-repo.
That's the raw idea. Or perhaps maven can skip checking update for some snapshots locally? I haven't examined this.
The problem here is we use some snapshot libs on glassfish related libs, every 24 hours, these libs will be downloaded again, and nothing would be expected to change.
The idea of snapshot for maven is that when someone actively developing some code, which is referenced by your project in the pom, you then can be guaranteed to have the lasted dependency without changing pom. So for those libs that are out of the ctrl scope, the better use case is to retrieve them from the release-repo.
That's the raw idea. Or perhaps maven can skip checking update for some snapshots locally? I haven't examined this.
本文讨论了一个全球团队使用Maven构建同一产品时遇到的问题。特别是在北京团队更新代码并重新构建时,由于依赖于美国代理服务器上的快照库,导致了不必要的下载重复,影响了工作效率。文章探讨了解决方案,如改进依赖管理及考虑是否可以跳过某些快照的本地更新检查。
1226

被折叠的 条评论
为什么被折叠?



