当前位置: 动力学知识库 > 问答 > 编程问答 >

maven - How to not download new version of jar with buildr?

问题描述:

For example if I have transitive('xxx:xxx:jar:1.4-SNAPSHOT') in artifacts.rb I don't want that when I run buildr to recive new version of 1.4-SNAPSHOT.

For buildr 1.4.0 no new version was download when I run buildr, but with buildr 1.4.4 it download new version if exist.

网友答案:

The whole idea of making a dependency as a SNAPSHOT dependency is for it to be updated when changed.

As to why buildr-1.4.4 downloads SNAPSHOT updates and 1.4.0 does not, this was introduced in buildr-1.4.2 as per this link.

You could run buildr in offline mode (-o) so that it does not download any updates.

分享给朋友:
您可能感兴趣的文章:
随机阅读: