'<uniqueVersion>false</uniqueVersion>' at maven 3

时光毁灭记忆、已成空白 提交于 2019-12-09 09:13:53

问题


Why maven 3 depreciated false at Snapshot repository configuration at pom.xml? What is the motivation behind it?

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

Thanks


回答1:


As answered in your other question, the comments in this nexus bug says why uniqueVersion was present in the first place and why it is not available in maven3. Quoting from it,

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

.



来源:https://stackoverflow.com/questions/7739466/uniqueversionfalse-uniqueversion-at-maven-3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!