Maven 3和时间戳 [英] Maven 3 and timestamps
问题描述
我对Maven 3和Nexus存储库有各种疑问.在我们的关系存储库中,我只想解决时间戳的依赖性.也就是说,我要防止将带时间戳的依赖项下载到本地存储库.而且在我的nexus配置中,只有一个版本的最新快照罐完全可以.
I have various questions regarding Maven 3 and Nexus repository. At our nexus repository I would like to resolve only timestamp dependencies. That is to say I would like to prevent downloading timestapped dependencies to my local repository. And also at my nexus configuration having only latest snapshot jar for a version is totally fine.
我的问题是关系和本地存储库中带有时间戳记的依赖项.
My question is regarding timestamped dependencies at nexus and local repository.
- 在存储库中仅使用最新的快照是一种好习惯吗?为什么或者为什么不?
- 我已经在deploy插件
<uniqueVersion>false</uniqueVersion>
的父pom的插件管理部分完成了操作,但是在hudson上,我仍然继续在jar上看到像这样的时间戳[c1> - 我在另一个问题上遇到了评论,
- Is having only latest Snapshot at repository a good practice? Why or why not?
- I have done at my plugin management section of the parent pom of the deploy plugin
<uniqueVersion>false</uniqueVersion>
but at hudson I still continue to see timestamps at jar like thisbundle-service-client-1.0-20110209.145744-25
- I have came across a comment at another question,
带有时间戳记的伪影永远不会在您的本地内部看到 (〜/.m2/repository)存储库.如果是的话,那是不对的.
The timestamped artifacts should never be see inside your local (~/.m2/repository) repository. If they are, something is wrong.
为什么?
推荐答案
在
分配的设置为false
存储库在3.x版中无效,快照工件将
始终使用带有时间戳的版本进行部署.
The setting false for a distribution
repository has no effect in version 3.x, snapshot artifacts will
always be deployed using a timestamped version. 此外,请查看此关系吉拉小虫中的注释,以得到很好的解释还有其他问题. Also, look at the comments in this nexus jira bug on a nice explanation to your other questions. 这篇关于Maven 3和时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!