Maven版本更新政策 [英] Maven release update policy

查看:104
本文介绍了Maven版本更新政策的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到releases 设置updatePolicysnapshots

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?

在这方面,具有updatePolicyreleases是否表示releasessnapshots行为相同?还是完全不使用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?

并不是我自己尝试过,但是如果updatePolicyreleases一起使用,听起来像一个可怕的主意;所以我想首先知道它是否可以工作.

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.

推荐答案

在此方面,具有updatePolicy的发行版是否表示发行版的行为与快照相同?还是该设置对所有发行版都不起作用(在这种情况下,文档需要更新)?

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?

某些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版本更新政策的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆