maven 快照更新 [英] maven snapshot updates

查看:22
本文介绍了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 何时启动以获取较新版本的快照
  • 从不 - 从不检查较新的远程版本.可以执行一次关闭手动更新.
  • 每天(默认)- 检查当天的第一次运行(当地时间)
  • interval:XXX - 每 XXX 分钟检查一次

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

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

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