且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Maven并发构建在CI服务器上

更新时间:2022-05-23 08:53:03

听起来您正在对所有构建作业使用相同的本地存储库,而这些构建存储将无法正常工作. Jenkins/Hudson/CI中的要点是对每个构建作业都使用本地Maven存储库.您需要使用本地Maven存储库在Jenkins中进行配置,以避免这种情况.

That sounds that you are using the same local repository for all your build jobs which will not work as you already know. The point in Jenkins/Hudson/CI is to use a local maven repository for every build job. You need to configure in Jenkins using a local maven repository to avoid such situations.

您还可以安装并发安全本地存储库访问 maven插件,将允许您使用相同的本地存储库. (如果您正在动态配置代理,则很有用)

You could also install the Concurrent Safe Local Repository Access maven plugins which will allow you to use the same local repository. (Useful if you are dynamically provisioning the agents)