Re: Version ranges and snapshots

2017-02-11 Thread Jon Harper
dependency in order to work correctly. >> > >> > +*** {Version Ranges} >> > + >> > + Version Ranges used for the <> element have the following >> > syntax (TODO only examples??): >> > + * 1.0: "Soft" requirement on 1.0 (just a recomm

Re: Version ranges and snapshots

2015-03-28 Thread Hervé BOUTEMY
.nabble.com/Re-Version-ranges-and-snapshots-tp5825997p 5830193.html Sent from the Maven Developers mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h

Re: Version ranges and snapshots

2015-03-24 Thread Tibor Digana
-Version-ranges-and-snapshots-tp5825997p5830193.html Sent from the Maven Developers mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h

Re: Version ranges and snapshots

2015-03-23 Thread Jon Harper
, especially regarding interactions between version ranges and *-SNAPSHOTs artifacts. you're right: version *in dependencies* is not self explanatory (version in Maven coordinates is self explanatory) It has a lot of subtle features: preferred vs exact match, version range

Re: Version ranges and snapshots

2015-03-22 Thread Hervé BOUTEMY
manage to improve something For info, the docs have been saying the following for 7+ years: groupId, artifactId, version: These elements are self-explanatory The version element is *not* self-explanatory, especially regarding interactions between version ranges

Re: Version ranges and snapshots

2015-03-20 Thread Jon Harper
we'll manage to improve something For info, the docs have been saying the following for 7+ years: groupId, artifactId, version: These elements are self-explanatory The version element is *not* self-explanatory, especially regarding interactions between version ranges and *-SNAPSHOTs

Re: Version ranges and snapshots

2015-02-15 Thread Jon Harper
-explanatory The version element is *not* self-explanatory, especially regarding interactions between version ranges and *-SNAPSHOTs artifacts. Any thoughts on this matter would be appreciated. Regards, Jon On Thu, Feb 5, 2015 at 5:52 PM, Jon Harper jon.harpe...@gmail.com wrote: Hi, I'm

Re: Version ranges and snapshots

2015-02-15 Thread Hervé BOUTEMY
version ranges and *-SNAPSHOTs artifacts. you're right: version *in dependencies* is not self explanatory (version in Maven coordinates is self explanatory) It has a lot of subtle features: preferred vs exact match, version range, then the question of SNAPSHOTS Any thoughts on this matter would

Re: Version ranges and snapshots

2015-02-05 Thread Jon Harper
Hi, I'm resurrecting this old thread to ask if it's possible to change http://maven.apache.org/pom.html to document the current implementation behavior (7+ years old). Please see my comment on MNG-3092:

Re: Version ranges and snapshots

2008-02-18 Thread Michael McCallum
Well ask us to do something rather than blabber on and we shut up... I lost two managers and a developer which has chewed up all my time... On Thu, 31 Jan 2008 02:14:59 Stephen Connolly wrote: IMHO I think a vote with the two positions clearly identified (perhaps with pros and cons for both

Re: Version ranges and snapshots

2008-02-18 Thread Michael McCallum
I am only speaking in regard to MNG-3092, there are several other related issues which I think all should be fixed Cons -- 1) Continuous integration of trunks I would like to be able to run the tests of all of my artifacts against a build of trunk of every other. How I

Re: Version ranges and snapshots

2008-01-30 Thread Mark Hobson
On 29/01/2008, Michael McCallum [EMAIL PROTECTED] wrote: How about for MNG-3092 we make it configurable per repository whether the metadata resolution includes snapshots in ranges... you could even default to false to keep Dave and yourself happy and I can turn it on where i need it. I'm not

Re: Version ranges and snapshots

2008-01-30 Thread Mark Hobson
On 30/01/2008, Mark Hobson [EMAIL PROTECTED] wrote: I don't think that linking this level of artifact resolution uncertainty to its source repository is a good idea. How version ranges are resolved should be completely deterministic and independent from where the artifact was actually

Re: Version ranges and snapshots

2008-01-30 Thread Stephen Connolly
IMHO I think a vote with the two positions clearly identified (perhaps with pros and cons for both if the pair of ye can agree on the pros and cons). (unless somebody else has a third position) -Stephen. On Jan 30, 2008 12:56 PM, Mark Hobson [EMAIL PROTECTED] wrote: On 30/01/2008, Mark Hobson

Re: Version ranges and snapshots

2008-01-30 Thread Michael McCallum
On Thu, 31 Jan 2008 01:56:09 Mark Hobson wrote: On 30/01/2008, Mark Hobson [EMAIL PROTECTED] wrote: I don't think that linking this level of artifact resolution uncertainty to its source repository is a good idea. How version ranges are resolved should be completely deterministic and

Re: Version ranges and snapshots

2008-01-29 Thread Mark Hobson
On 23/01/2008, Michael McCallum [EMAIL PROTECTED] wrote: On Thu, 24 Jan 2008 03:42:13 Mark Hobson wrote: There is another caveat in that it's all or nothing. Using a profile mechanism will switch all range dependencies into snapshot mode, when typically a developer only wishes to upgrade a

Re: Version ranges and snapshots

2008-01-29 Thread Michael McCallum
How about for MNG-3092 we make it configurable per repository whether the metadata resolution includes snapshots in ranges... you could even default to false to keep Dave and yourself happy and I can turn it on where i need it. I'm not certain if its possible but would perhaps be the most

Re: Version ranges and snapshots

2008-01-23 Thread Mark Hobson
Hi Michael, On 23/01/2008, Michael McCallum [EMAIL PROTECTED] wrote: Firstly IMHO of MNG-3092 is that is it not the right thing for maven in general. I believe with MNG-2994 and appropriate use of profiles to enable and disable snapshot repositories you can have everything that you want and

Re: Version ranges and snapshots

2008-01-23 Thread Michael McCallum
On Thu, 24 Jan 2008 03:42:13 Mark Hobson wrote: Hi Michael, There is another caveat in that it's all or nothing. Using a profile mechanism will switch all range dependencies into snapshot mode, when typically a developer only wishes to upgrade a couple. How could this be achieved using

Re: Version ranges and snapshots

2008-01-23 Thread Michael McCallum
BTW if you want to _not_ include a snapshot on an open upper bound you can.. [1,2-!) which will not include 1.0-SNAPSHOT, 1-SNAPSHOT will include any version between 1 and 2 including any 1.2-SNAPSHOT or 1.4-SNAPSHOT will not include 2.0-SNAPSHOT or 2-SNAPSHOT On Thu, 24 Jan 2008 03:42:13 Mark

Re: Version ranges and snapshots

2008-01-23 Thread Stephen Connolly
But that will bugger you up... You are working on the version 2 branch, there is no 2.0 released, only 2.0-SNAPSHOT... you don't care as it is still new and you are happy to use the last stable release, 1.4... Now there is some work that is needed for the 1.4 service pack, so 1.4.1-SNAPSHOT

Re: Version ranges and snapshots

2008-01-23 Thread Michael McCallum
so you are saying that A-2.0-SNAPSHOT uses B [1,2-!) and someone deploys B 1.4.1-SNAPSHOT and that overrides B 2.0-SNAPSHOT and B 1.4 or just that it overrides B1.4? Depends on your use case... as to how you would deal with that. And one of the reasons why I don't want mng-3092 because I can

Re: Version ranges and snapshots

2008-01-22 Thread Mark Hobson
(snapshots, version ranges, etc) in my pom that I need, I should not have to do a system fix/workaround of modifying my settings.xml to get the pom to do what it says. But even if I could do this it will not work, because it cannot stop the build from getting snapshots from my local repo

Re: Version ranges and snapshots

2008-01-22 Thread dhoffer
settings.xml that exposes you snapshot repositories Obivously we need to fix... http://jira.codehaus.org/browse/MNG-2994 first -No, that does not work. If I have already specified what versions (snapshots, version ranges, etc) in my pom that I need, I should not have to do a system fix

Re: Version ranges and snapshots

2008-01-22 Thread dhoffer
://jira.codehaus.org/browse/MNG-2994 first -No, that does not work. If I have already specified what versions (snapshots, version ranges, etc) in my pom that I need, I should not have to do a system fix/workaround of modifying my settings.xml to get the pom to do what it says. But even if I

Re: Version ranges and snapshots

2008-01-22 Thread Michael McCallum
Firstly IMHO of MNG-3092 is that is it not the right thing for maven in general. I believe with MNG-2994 and appropriate use of profiles to enable and disable snapshot repositories you can have everything that you want and still maintain the ability to allow any snapshot to be injected when

Re: Version ranges and snapshots

2008-01-18 Thread dhoffer
..It's crazy that version ranges are still unusable in 2.0.8.. Exactly, we really need this fixed, can we apply this patch so we can use version ranges and snapshots. This issue is killing us. -Dave mihobson wrote: On 10/01/2008, Michael McCallum [EMAIL PROTECTED] wrote: another thought

Re: Version ranges and snapshots

2008-01-18 Thread dhoffer
versions (snapshots, version ranges, etc) in my pom that I need, I should not have to do a system fix/workaround of modifying my settings.xml to get the pom to do what it says. But even if I could do this it will not work, because it cannot stop the build from getting snapshots from my local repo

Re: Version ranges and snapshots

2008-01-14 Thread Mark Hobson
On 10/01/2008, Michael McCallum [EMAIL PROTECTED] wrote: another thought... by default you could not have snapshot repositories enabled and just enable them with a profile... that way all builds by default have no snapshots, you could even have separate profiles and snapshot repos for

Re: Version ranges and snapshots

2008-01-14 Thread Michael McCallum
It's crazy that version ranges are still unusable in 2.0.8.. I disagree entirely. I use version ranges for a very complex Project... and it works very well * we have repeatable builds * we can mix and match snapshots during development if we need to * releases fail if you have snapshot deps

Re: Version ranges and snapshots foot in mouth

2008-01-14 Thread Michael McCallum
On Tue, 15 Jan 2008 08:43:38 Michael McCallum wrote: It's crazy that version ranges are still unusable in 2.0.8.. * we can mix and match snapshots during development if we need to would not appear to work, i could swear i had this working in the last year... oh well, i can see how that would

Re: Version ranges and snapshots

2008-01-14 Thread Michael McCallum
Back to the origin of the thread Version ranges with non-snapshot bounds can contain snapshot versions http://jira.codehaus.org/browse/MNG-3092 I feel that the current behaviour is correct and can be managed sufficiently by profiles. Let me render some scenarios... 1) You wish a release build

Re: Version ranges and snapshots

2008-01-10 Thread Michael McCallum
another thought... by default you could not have snapshot repositories enabled and just enable them with a profile... that way all builds by default have no snapshots, you could even have separate profiles and snapshot repos for different departments to a allow more flexible integration --

Re: Version ranges and snapshots

2008-01-10 Thread dhoffer
this message in context: http://www.nabble.com/Version-ranges-and-snapshots-tp11464715s177p14748736.html Sent from the Maven Developers mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Version ranges and snapshots

2008-01-10 Thread dhoffer
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Version-ranges-and-snapshots-tp11464715s177p14748696.html Sent from the Maven Developers mailing list archive at Nabble.com

RE: Version ranges and snapshots

2008-01-10 Thread Brian E. Fox
It will warn or fail the build. It's a gatekeeper not a negotiator ;-) -Original Message- From: dhoffer [mailto:[EMAIL PROTECTED] Sent: Thursday, January 10, 2008 9:49 PM To: dev@maven.apache.org Subject: Re: Version ranges and snapshots Does maven-enforcer-plugin just stop a build

Re: Version ranges and snapshots

2008-01-08 Thread Michael McCallum
All fair comments. We don't release documentation for each release. site-deploys are independent. And we have perhaps fewer people. But at the same time I would never want another department to break my build by deploying a snapshot I'm not ready for. Quite possibly we could make more use of

Re: Version ranges and snapshots

2008-01-08 Thread dhoffer
:[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-tp11464715s177p14689271

Re: Version ranges and snapshots

2008-01-08 Thread Michael McCallum
IMHO, I think our approach excels in making sure this doesn't happen. First and foremost, if this version range issue can be fixed, snapshots will never be considered valid unless explicitly asked for. Therefore snapshot deploys will never be a problem for me. Currently I can't even

Re: Version ranges and snapshots

2008-01-08 Thread Michael McCallum
On Wed, 09 Jan 2008 15:15:55 Michael McCallum wrote: IMHO, I think our approach excels in making sure this doesn't happen. First and foremost, if this version range issue can be fixed, snapshots will never be considered valid unless explicitly asked for. Therefore snapshot deploys will

Re: Version ranges and snapshots

2008-01-07 Thread dhoffer
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Version-ranges-and-snapshots-tp11464715s177p14672336.html Sent from the Maven Developers mailing list archive at Nabble.com

Re: Version ranges and snapshots

2008-01-07 Thread Michael McCallum
We just avoid that being an issue in three ways... 1) I slap anyone around who deploys a snapshot to a remote repository unless they have a _very_ good excuse. My method is to increment the major version if there is a breaking change and release early to avoid the need for snapshots. Ideally

Re: Version ranges and snapshots

2008-01-07 Thread dhoffer
! Releases should be when you estimate you have enough 'correct' checkins to warrant a release. It sounds like you may not be using snapshots with version ranges simply because of this bug!?! BTW, because of the rule that only major version changes should break the API; this is why we really want/need

Re: Version ranges and snapshots

2008-01-07 Thread Michael McCallum
On Tue, 08 Jan 2008 14:25:06 dhoffer wrote: Regarding 1: Well that's not normal maven operation. You apparently have created a 'work-around' that works for you...I prefer to fix the bug so it works as it is specified. There are lots of reasons to deploy snapshots. Normal maven behavior is

Re: Version ranges and snapshots

2008-01-07 Thread dhoffer
] - 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-tp11464715s177p14681397.html Sent from the Maven Developers mailing list archive at Nabble.com

Re: Version ranges and snapshots

2008-01-06 Thread Michael McCallum
you can specify a range [1.0,1.1-!) which will stop 1.1-SNAPSHOT from being included, this wont stop 1.0.4-SNAPSHOT but i think thats valid anyway... On Sun, 06 Jan 2008 14:39:37 dhoffer wrote: What is the status of this? This issue is very serious (highest priority) for us; every time we

Re: Version ranges and snapshots

2008-01-05 Thread dhoffer
://www.nabble.com/Version-ranges-and-snapshots-tp11464715s177p14642183.html Sent from the Maven Developers mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Version ranges and snapshots

2007-10-17 Thread ossi petz
hallo i would like to add one vote to exclude snapshots from version ranges that do not declare them. we encounter two problematic situations: when using the release plugin we need to clean the local repository from snapshots to make sure no snapshots end up in the build or any assembly

Re: Version ranges and snapshots

2007-10-17 Thread dhoffer
...be sure to cast your ballot for MNG-3092:) ossi petz-2 wrote: hallo i would like to add one vote to exclude snapshots from version ranges that do not declare them. we encounter two problematic situations: when using the release plugin we need to clean the local repository from

Re: Version ranges and snapshots

2007-10-12 Thread dhoffer
are technically correct; a snapshot is a version that precedes its version number. However that is not the point when you are specifying the version tag of a dependency. The problem with allowing snapshots to fill version ranges unless specified in the version range is that it is inconsistent

Re: Version ranges and snapshots

2007-10-11 Thread dhoffer
://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]

Re: Version ranges and snapshots

2007-10-11 Thread dhoffer
. -- View this message in context: http://www.nabble.com/Version-ranges-and-snapshots-tf4035629s177.html#a13164250 Sent from the Maven Developers mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: Version ranges and snapshots

2007-07-10 Thread Kenney Westerhof
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

Re: Version ranges and snapshots

2007-07-10 Thread Max Bowsher
Kenney Westerhof 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

Re: Version ranges and snapshots

2007-07-10 Thread Kenney Westerhof
in the version ranges, like [1.0,2.0){snapshots=off} (or just use xml attributes ofcourse ;)) -- Kenney - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Version ranges and snapshots

2007-07-06 Thread Mark Hobson
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

Re: Version ranges and snapshots

2007-07-06 Thread Patrick Schneider
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