gpt4 book ai didi

Maven 3 和时间戳

转载 作者:行者123 更新时间:2023-12-05 00:02:37 26 4
gpt4 key购买 nike

我有关于 Maven 3 和 Nexus 存储库的各种问题。在我们的 nexus 存储库中,我只想解决时间戳依赖项。也就是说,我想阻止将时间戳依赖项下载到我的本地存储库。而且在我的 nexus 配置中,只有一个版本的最新快照 jar 完全没问题。

我的问题是关于 nexus 和本地存储库的时间戳依赖项。

  • 在存储库中只有最新的快照是一种好习惯吗?为什么或者为什么不?
  • 我已经在部署插件的父 pom 的插件管理部分完成了 <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/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com