This approach will not work because one would then have to continually specify what snapshots to exclude. We use version ranges to specify the range of valid released versions. I.e. when building get the latest released version (in most all cases). What is need is to somehow disallow all snapshots.
This is a blocking bug for us with maven. We use a custom build that fixes this issue (does not allow snapshots). The feature of version ranges is not usable without this fix. Kenney Westerhof-3 wrote: > > > > Patrick Schneider wrote: >> For now, I'm a fan of disallowing snapshots when they are not explicitly >> in >> the boundary, as per the patch. >> >> In my mind, the problem with a profile flag is that it's an >> all-or-nothing >> proposition. Any released artifacts with version ranges will also start >> to >> pull in snapshots. There wouldn't be enough control, IMO. >> > > You can always exclude snapshots explicitly: > > [1.0,1.1-SNAPSHOT),(1.1-SNAPSHOT,1.1] > > Snapshots are valid versions in a range [1.0, 1.1], or even [1.0, 1.1). > > Personally I'm +1 for updating the docs, and let the presence of snapshot > repo's > and valid snapshot artifacts there determine wheter snapshots are used or > not. > > -- Kenney > > >> >> Patrick >> >> On 7/6/07, Mark Hobson <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >>> >>> Whilst attempting to fix MNG-2994, I discovered MNG-3092 that was >>> contrary to the 2.0 design docs: >>> >>> http://jira.codehaus.org/browse/MNG-3092 >>> >>> Brett, Kenney and myself had a brief discussion on IRC about this: >>> Kenney says that the behaviour is theoretically correct (which it is), >>> although I feel it goes against the practical usage described in the >>> docs. The two main choices I can see are: >>> >>> 1) We stick to the design docs and disallow snapshots in ranges when >>> they aren't an explicit boundary, as per the MNG-3092 patch. >>> >>> 2) We reconsider the design docs and leave range resolution behaving >>> as it is, then use profiles to enable or disable snapshot repositories >>> at build time. >>> >>> Any thoughts? >>> >>> Mark >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Version-ranges-and-snapshots-tf4035629s177.html#a13164246 Sent from the Maven Developers mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
