gpt4 book ai didi

maven - Maven 3中的' false '

转载 作者:行者123 更新时间:2023-12-04 03:23:03 24 4
gpt4 key购买 nike

为什么在pom.xml的Snapshot存储库配置中Maven 3贬值为false?其背后的动机是什么?

  <snapshotRepository>
<id>snapshots</id>
<url>http://nexus.mycompany.local/content/repositories/snapshots</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>

谢谢

最佳答案

正如your other question中回答的那样,this nexus bug中的注释说明了为什么uniqueVersion首先出现以及为什么它在maven3中不可用。引用它,

It's not recommended to use non-unique snapshots since they lead to non-reproducible builds. The main use case for these was to save disk space in the repository, but this is best handled by scheduling a periodic snapshot removal task to keep the number of versions down



关于maven - Maven 3中的'<uniqueVersion> false </uniqueVersion>',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7739466/

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