问题描述
我看到releases
设置在maven设置中,a>的updatePolicy
为snapshots
设置具有.我总是给人以已发布的工件不会/不应更改的印象,因此,当涉及到releases
时,永远不会有更新策略的问题.还是我错了?
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?
在这方面,具有updatePolicy
的releases
是否表示releases
与snapshots
行为相同?还是完全不使用releases
的设置(在这种情况下,文档需要更新)不起作用?
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?
并不是我自己尝试过,但是如果updatePolicy
与releases
一起使用,听起来像一个可怕的主意;所以我想首先知道它是否可以工作.
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.
推荐答案
某些maven托管存储库允许覆盖发行工件,因此要与之匹配,您可以配置您的settings.xml
(在极少数情况下)
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)
这篇关于Maven版本更新政策的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!