jar 中的 SNAPSHOT 这个名称是什么意思? / *snapshot*.jars 有什么问题吗?

发布于 2024-09-12 23:00:02 字数 291 浏览 10 评论 0原文

我正在使用 bitlyj snapshot jar 来缩短以下链接中的 URL。

http://code.google.com/p/bitlyj/downloads/list

有人能给我解释一下snapshot.jar 这个术语吗? snapshot.jar 文件是否不稳定或者这些类型的 jar 文件有什么问题吗? “快照”通常意味着什么?

I am using bitlyj snapshot jar to shorten URLs from the following link.

http://code.google.com/p/bitlyj/downloads/list

Will somebody explain me the term snapshot.jar? Are snapshot.jar files unstable or is there anything wrong with these kind of jars? What does 'snapshot' generally mean?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

傾旎 2024-09-19 23:00:02

SNAPSHOT 表示躯干或头部的最新代码。关于是否应该使用快照,答案取决于:

  • 快照版本中是否有针对稳定版本中未提供的错误的修复?
  • 是否有一个新功能在快照中可用,但在稳定版本中不可用,

在这些情况下您可以致电是否使用它们。

这里有一篇文章供您参考。它告诉您何时应该使用快照。

我们一般倾向于使用maven插件的快照(一些功能在最新的快照中可用)。

SNAPSHOT indicates latest code in trunk or head. On whether you should use snapshot, the answer is depends:

  • Is there a fix for a bug in the snapshot release thats not available in the stable release?
  • Is there a new feature available in snapshot, but not available in stable version

You could make a call in these cases whether to use them or not.

Here's an article for your reference. It tells you when you should use snapshots.

We generally tend to use snapshots for maven plugins (some features are available in latest snapshots).

彡翼 2024-09-19 23:00:02

是的,这些文件通常是从当前开发分支自动创建的,无需任何手动测试。

Yes, those files are usually automatically created from the current development branch without any manual testing.

旧人哭 2024-09-19 23:00:02

首先是它的版本与快照。 Maven 下载特定的工件及其最终版本。 Maven 绝不会重新尝试下载存储库中已存在的版本。如果某些内容发生了更改,则会发布新版本,并且不会容纳在相同/旧版本的工件中。(更改=>新版本)

现在假设您有一个依赖项,这是一项正在进行的工作/更改预计。如果您要使用版本,则每次更新工件时,您都必须更改 pom.xml 中的版本。因此,为了避免这些情况,使用了快照。 Maven 以不同的方式对待快照。它尝试提取工件的最新快照。 (默认间隔是当天的第一个构建,可以更改)。因此,您不必再不断更改版本,只需包含快照即可,它会自动拉取。

希望有帮助,编码愉快!

这篇文章

To begin with it's versions vs snapshots. Maven downloads a particular artifact and its final. Maven never re-attempts to download a version already existing in the repository. If something has changed, then a new version is released and is not accommodated in the same/older version of the artifact.(changes => new versions)

Now let's say, you got a dependency, that is a work in progress/ changes are expected. If you are to use versions, every time the artifact is updated, you gotta change versions in your pom. So to avoid these, snapshots are used. Maven treats snapshots differently. It tries to pull the latest snapshot of the artifact. (default interval is the first build of the day, can be altered). So you don't have to keep changing versions anymore and just include a snapshot, it's pulled automatically.

Hope that helps, Happy coding!

Very beautifully explained in this article.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文