Does Maven build “thread safe” for snapshot projects?

眉间皱痕 提交于 2019-12-13 04:29:22

问题


I have a question regarding parallel maven build. If several maven builds are running in same machine at the same time, and some build results are used by other builds with snapshot version dependency, what will happen? Can maven handle such situation and get correct snapshot version?


回答1:


See the explanations here:

Maven concurrent builds on CI server

In other words. The behaviour in such cases is not defined, cause the access to the local repository is not thread safe.

So i would avoid such things.



来源:https://stackoverflow.com/questions/16584226/does-maven-build-thread-safe-for-snapshot-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!