什么是Maven Snapshot,为什么我们需要它? [英] What exactly is a Maven Snapshot and why do we need it?

查看:379
本文介绍了什么是Maven Snapshot,为什么我们需要它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Maven Snapshot的含义以及我们为什么要构建它有点困惑?

I am a bit confused about the meaning of a Maven Snapshot and why we build one?

推荐答案

快照版本在Maven是尚未发布的。

A snapshot version in Maven is one that has not been released.

想法是之前 a 1.0 发布(或任何其他版本),存在 1.0-SNAPSHOT 。该版本是可能 1.0 的版本。它基本上是 1.0 正在开发中。这可能关闭到真正的 1.0 版本,或者相当远(在 0.9 发布,例如)。

The idea is that before a 1.0 release (or any other release) is done, there exists a 1.0-SNAPSHOT. That version is what might become 1.0. It's basically "1.0 under development". This might be close to a real 1.0 release, or pretty far (right after the 0.9 release, for example).

真实版本和快照版本之间的区别在于快照可能会获得更新。这意味着今天下载 1.0-SNAPSHOT 可能会提供与昨天或明天下载不同的文件。

The difference between a "real" version and a snapshot version is that snapshots might get updates. That means that downloading 1.0-SNAPSHOT today might give a different file than downloading it yesterday or tomorrow.

通常,快照依赖项应该在开发期间存在,并且没有发布的版本(即没有非快照)应该依赖于快照版本。

Usually, snapshot dependencies should only exist during development and no released version (i.e. no non-snapshot) should have a dependency on a snapshot version.

这篇关于什么是Maven Snapshot,为什么我们需要它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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