Maven快照更新 [英] maven snapshot updates

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

问题描述

我有一个具有快照依赖项的Maven项目. Maven如何知道是否需要更新快照?它总是更新吗?它是基于时间的吗?基于校验和的更新?我知道我可以强制进行更新,但是否则如何检查?

I have a maven project with a snapshot dependency. How does maven know if the snapshot needs to be updated? Does it always update? Is it time based? A checksum based update? I know I can force an update but otherwise, how does it check?

谢谢, 杰夫

推荐答案

根据文档,默认值为每天仅更新一次.那是当天的第一轮建造被执行的时候.您可以使用snapshot-policy元素覆盖此行为.

According to the docs, the default is that it will only update once a day. That is when the first build of the day is executed. You can override this behavior with the snapshot-policy element.

  • 始终-始终检查何时启动Maven以获取较新版本的快照
  • 从不-从不检查较新的远程版本.一旦关闭,便可以执行手动更新.
  • 每天(默认)-检查一天的第一轮(当地时间)
  • 时间间隔:XXX-每XXX分钟检查一次

http://maven.apache.org/maven-settings/settings.html

这篇关于Maven快照更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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