Re: Version range excluding SNAPSHOTs
the only way *I know* is to use versions-maven-plugin in conjuction with versions locked down completely with properties I would think that 1.0.1-SNAPSHOT is in the range [1.0,1.1-!) but there may be some rules that make this less of an issue (like maven favouring the highest version avail in the range and non snapshots should always be higher than snapshots) Sent from my [rhymes with myPod] ;-) On 8 Mar 2009, at 15:54, "Markus KARG" wrote: Will that prevent usage of 1.0.1-SNAPSHOT but allow 1.0.1-alpha-1 through 1.0.-zzz-99 ? how about [1.0,1.1-SNAPSHOT) ? So this means that there is no *real* solution to get alphas but not SNAPSHOTs? [1.0,1.1-!) 1.0-SNAPSHOT < 1.0 < 1.1-SNAPSHOT < 1.1 But in ASCII ! is < A therefore 1.1-! < 1.1-SNAPSHOT < 1.1 1.1-! is also < 1.1-alpha-1 My project is dependent of some library. I want to always use the latest bugfix but not any new features. So I added [1.0,1.1) which allows me to use all bugfixes of the 1.0 release. But when I check the actually used version, I see that 1.1-SNAPSHOT is getting used! How can I prevent this? Is there a way to say "anything between 1.0 smaller than 1.1, but NOT SNAPSHOTS"? --- -- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- - juven - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Version range excluding SNAPSHOTs
Will that prevent usage of 1.0.1-SNAPSHOT but allow 1.0.1-alpha-1 through 1.0.-zzz-99 ? > how about [1.0,1.1-SNAPSHOT) ? > > > So this means that there is no *real* solution to get alphas but not > > SNAPSHOTs? > > > > > [1.0,1.1-!) > > > 1.0-SNAPSHOT < 1.0 < 1.1-SNAPSHOT < 1.1 > > > But in ASCII ! is < A > > > therefore > > > 1.1-! < 1.1-SNAPSHOT < 1.1 > > > 1.1-! is also < 1.1-alpha-1 > > > > My project is dependent of some library. I want to always use the > > > latest > > > > bugfix but not any new features. So I added > > > [1.0,1.1) > > > > which allows me to use all bugfixes of the 1.0 release. But when > I > > > check > > > > the > > > > actually used version, I see that 1.1-SNAPSHOT is getting used! > How > > > can I > > > > prevent this? Is there a way to say "anything between 1.0 smaller > > > than 1.1, > > > > but NOT SNAPSHOTS"? > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > -- > - juven - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Version range excluding SNAPSHOTs
how about [1.0,1.1-SNAPSHOT) ? On Sun, Mar 8, 2009 at 8:34 PM, Markus KARG wrote: > So this means that there is no *real* solution to get alphas but not > SNAPSHOTs? > > > [1.0,1.1-!) > > 1.0-SNAPSHOT < 1.0 < 1.1-SNAPSHOT < 1.1 > > But in ASCII ! is < A > > therefore > > 1.1-! < 1.1-SNAPSHOT < 1.1 > > 1.1-! is also < 1.1-alpha-1 > > > My project is dependent of some library. I want to always use the > > latest > > > bugfix but not any new features. So I added > > [1.0,1.1) > > > which allows me to use all bugfixes of the 1.0 release. But when I > > check > > > the > > > actually used version, I see that 1.1-SNAPSHOT is getting used! How > > can I > > > prevent this? Is there a way to say "anything between 1.0 smaller > > than 1.1, > > > but NOT SNAPSHOTS"? > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- - juven
RE: Version range excluding SNAPSHOTs
So this means that there is no *real* solution to get alphas but not SNAPSHOTs? > [1.0,1.1-!) > 1.0-SNAPSHOT < 1.0 < 1.1-SNAPSHOT < 1.1 > But in ASCII ! is < A > therefore > 1.1-! < 1.1-SNAPSHOT < 1.1 > 1.1-! is also < 1.1-alpha-1 > > My project is dependent of some library. I want to always use the > latest > > bugfix but not any new features. So I added > [1.0,1.1) > > which allows me to use all bugfixes of the 1.0 release. But when I > check > > the > > actually used version, I see that 1.1-SNAPSHOT is getting used! How > can I > > prevent this? Is there a way to say "anything between 1.0 smaller > than 1.1, > > but NOT SNAPSHOTS"? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Version range excluding SNAPSHOTs
[1.0,1.1-!) 1.0-SNAPSHOT < 1.0 < 1.1-SNAPSHOT < 1.1 But in ASCII ! is < A therefore 1.1-! < 1.1-SNAPSHOT < 1.1 1.1-! is also < 1.1-alpha-1 2009/3/7 Markus KARG > My project is dependent of some library. I want to always use the latest > bugfix but not any new features. So I added [1.0,1.1) > which allows me to use all bugfixes of the 1.0 release. But when I check > the > actually used version, I see that 1.1-SNAPSHOT is getting used! How can I > prevent this? Is there a way to say "anything between 1.0 smaller than 1.1, > but NOT SNAPSHOTS"? > > > > > >
Version range excluding SNAPSHOTs
My project is dependent of some library. I want to always use the latest bugfix but not any new features. So I added [1.0,1.1) which allows me to use all bugfixes of the 1.0 release. But when I check the actually used version, I see that 1.1-SNAPSHOT is getting used! How can I prevent this? Is there a way to say "anything between 1.0 smaller than 1.1, but NOT SNAPSHOTS"?