mvn -nsu (--no-snapshot-updates) is still downloading SNAPSHOT versions

2015-05-26 Thread Robert Metzger
Hi, At our project we recently had an issue where we accidentally included outdated artifacts (which were still available on snapshot repositories). To detect those issues in the future by our integration tests, I want to instruct maven not to download snapshot updates, using the -nsu command

Re: mvn -nsu (--no-snapshot-updates) is still downloading SNAPSHOT versions

2015-05-26 Thread Nick Stolwijk
Maven is not downloading updates, but only the SNAPSHOTS it is missing. If you build another time it won't download anything and even if your update window (mostly daily) has been passed Maven will not look for new updates but use the ones it has locally. If you want to know which dependencies

Re: mvn -nsu (--no-snapshot-updates) is still downloading SNAPSHOT versions

2015-05-26 Thread Robert Metzger
Thank you Nick. Your solution would work, but would require us to let users call a bash script which is calling versions:display-dependency-updates and then doing the regular build. We would like to run our builds directly by mvn clean install. Is there a way to let a maven build fail if we

Re: mvn -nsu (--no-snapshot-updates) is still downloading SNAPSHOT versions

2015-05-26 Thread Curtis Rueden
Hi Robert, Is there a way to let a maven build fail if we depend on nonexistent or SNAPSHOT dependencies? Check out the requireReleaseDeps rule of the Maven Enforcer plugin: http://maven.apache.org/enforcer/enforcer-rules/requireReleaseDeps.html Regards, Curtis On Tue, May 26, 2015 at 6:55