我有关于 Maven 3 和 Nexus 存储库的各种问题。在我们的 nexus 存储库中,我只想解决时间戳依赖项。也就是说,我想阻止将时间戳依赖项下载到我的本地存储库。而且在我的 nexus 配置中,只有一个版本的最新快照 jar 完全没问题。
我的问题是关于 nexus 和本地存储库的时间戳依赖项。
<uniqueVersion>false</uniqueVersion>
但是在 hudson,我仍然继续在 jar 上看到这样的时间戳 bundle-service-client-1.0-20110209.145744-25
The timestamped artifacts should never be see inside your local (~/.m2/repository) repository. If they are, something is wrong.
为什么?
最佳答案
引自 Maven 3.x Compatibility Notes 中的相关部分
The setting false for a distribution repository has no effect in version 3.x, snapshot artifacts will always be deployed using a timestamped version.
另外,请查看 this nexus jira bug 中的评论对您的其他问题的一个很好的解释。
关于Maven 3 和时间戳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7739566/