Does Maven build “thread safe” for snapshot projec

2019-08-30 23:48发布

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条回答
手持菜刀,她持情操
2楼-- · 2019-08-31 00:29

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.

查看更多
登录 后发表回答