Maven release update policy

佐手、 提交于 2019-12-07 15:39:42

问题


I see that the releases setting in the maven settings has got an updatePolicy as the snapshots setting has. I was always under the impression released artifacts won't/shouldn't change, so there can't ever be a question of update policy when it comes to releases. Or am I wrong?

Does releases having an updatePolicy mean that releases behave the same way as snapshots in this regard? Or will that setting not work (in which case the documentation needs to be updated) with the releases at all?

Not that I ever tried it myself, but it sounds like a terrible idea should the updatePolicy work with releases; so I wanted to know if it would work in the first place.


回答1:


Does releases having an updatePolicy mean that releases behave the same way as snapshots in this regard? Or will that setting not work (in which case the documentation needs to be updated) with the releases at all?

Some maven managed repository allows to overwrite release artifacts, so to match with it you can configure your settings.xml (this would be in very rare case)



来源:https://stackoverflow.com/questions/24683994/maven-release-update-policy

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