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.
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