jar 中的 SNAPSHOT 这个名称是什么意思? / *snapshot*.jars 有什么问题吗?
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
SNAPSHOT 表示躯干或头部的最新代码。关于是否应该使用快照,答案取决于:
在这些情况下您可以致电是否使用它们。
这里有一篇文章供您参考。它告诉您何时应该使用快照。
我们一般倾向于使用maven插件的快照(一些功能在最新的快照中可用)。
SNAPSHOT indicates latest code in trunk or head. On whether you should use snapshot, the answer is depends:
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).
是的,这些文件通常是从当前开发分支自动创建的,无需任何手动测试。
Yes, those files are usually automatically created from the current development branch without any manual testing.
首先是它的版本与快照。 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.