开发者

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

开发者 https://www.devze.com 2023-04-12 06:18 出处:网络
Why maven 3 depreciated false at Snapshot repository configuration at pom.xml? What is the motivation behind it?

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

  <snapshotRepository>
     <id>snapshots</id>
     <ur开发者_如何学Cl>http://nexus.mycompany.local/content/repositories/snapshots</url>
     <uniqueVersion>false</uniqueVersion>
  </snapshotRepository>

Thanks


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

.

0

精彩评论

暂无评论...
验证码 换一张
取 消