I will take a look at what exactly can be done when I found 2 (ok, 20) minutes.

Basically there do not seem to have direct support for multiple snapshot as the 
artifact plugin seem to simply add the snapshot tag at the end. But you may probably 
emulate it by including version number in the artifactId, wich fake 2 different 
artifact that can have different snapshot. I did not test it, and I'm a user so, use 
it at your own risk. Maven have flexibility for a lot of versioning scheme as the 
final name is a concatenation of artifactId and version, this flexibility can be great 
or bad. 


> -----Original Message-----
> From: Martin Lambert [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 08, 2004 3:54 AM
> To: Maven Users List
> Subject: RE: Download of SNAPSHOT-Plugins
> 
> 
> Hi,
> 
> I found peoples thoughts on this subject very useful.
> 
> I am trying to think about the further implications of 
> multiple snapshot versions. I am under the impression that 
> Maven's SNAPSHOT mechanism only works where you have a 
> dependency's version set to 'SNAPSHOT'. If this is the case 
> then in terms of dependencies I cannot see how Maven supports 
> multiple snapshot versions.
> 
> Thanks,
> 
> Martin.
> 
> -----Original Message-----
> From: Jean-Marc Lavoie [mailto:[EMAIL PROTECTED]
> Sent: 03 March 2004 18:25
> To: Maven Users List
> Subject: RE: Download of SNAPSHOT-Plugins
> 
> 
> This make sense as you can be working on a branch to release 
> a maintenance version.
> 
> Let say your team released gizmosoft 1.0, and you work on new 
> and improved version 1.1 so you have 1.1-rc1-SNAPSHOT (or 
> whatever you like: b1, b2 instead of rc1). Then you must 
> apply a fix to 1.0, you branch to produce the new, improved 
> and working 1.0.1 which will have a bug fix. You call this 
> snapshot 1.0.1-SNAPSHOT (Let say that for a medium fix you 
> will skip the RC1 step). This way you have 2 SNAPSHOT at the 
> same time, and your certain of which one you get. Adding RC1 
> should prevent you from eventually getting the RC2 snapshot 
> as it may introduce potential big changes compared to RC1, 
> when you are ready you simply change it to RC2. If you build 
> sources that are between releases you can expect some weird 
> things, those are development snapshots.
> 
> I'm not on the maven team, but this numbering make sense to me.
> 
> How else would you suggest this should be done?
> 
> 
> -----Original Message-----
> From: Jörn Gebhardt [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 03, 2004 12:29 PM
> To: Maven Users List
> Subject: AW: Download of SNAPSHOT-Plugins
> 
> 
> Hi Martin,
> 
> for me the SNAPSHOT idea of Maven seems to be not completely 
> mature. E.g. if
> you look at the project.xml of Maven itself (e.g. here:
> http://cvs.apache.org/viewcvs.cgi/maven/project.xml?rev=1.317.
> 4.12&view=mark
> up) you'll find that their current version is named 
> 1.0-rc2-SNAPSHOT. When
> setting up our projects I used the Maven project as a kind of 
> copy-paste
> template.
> 
> Cheers,
> Joern
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Martin Lambert [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 3. März 2004 13:06
> > An: Maven Users List
> > Betreff: RE: Download of SNAPSHOT-Plugins
> > 
> > 
> > Hi Joern,
> > 
> > Glad I helped solve that problem. 
> > 
> > I am under the impression though that 'SNAPSHOT' in Maven is 
> > the latest development version. Fixed version numbers I 
> > believe are meant to represent stable versions of code. You 
> > appear to be muddying the waters with your versioning 
> > numbering system.
> > 
> > Cheers,
> > 
> > Martin.
> > 
> > -----Original Message-----
> > From: Jörn Gebhardt [mailto:[EMAIL PROTECTED]
> > Sent: 03 March 2004 11:52
> > To: Maven Users List
> > Subject: AW: Download of SNAPSHOT-Plugins
> > 
> > 
> > Hi Martin,
> > 
> > '1.2-SNAPSHOT' means that it is the version 1.2 of the plugin 
> > that is still
> > in development and changes until version 1.2 is released. And 
> > I wanted to
> > use 
> > 
> > maven plugin:download -DartifactId=my-plugin -DgroupId=my-plugins
> > -Dversion=1.2-SNAPSHOT 
> > 
> > to download the latest version of the nightly build of that 
> > maven plugin.
> > 
> > But anyway, you helped me out with another problem I had with 
> > the versioning
> > of Maven plugins that are used to build an artifact. Until 
> now I had a
> > proplem with building older versions of our project (e.g. for 
> > bug-fixing
> > branches). The source-code, project.xml etc. was revisioned 
> > in CVS, however
> > the versions of the plugins that were used to build the project are
> > mentioned nowhere. I.e. if you install a newer version of a 
> > plugin on your
> > computer it might screw up the original build. However, if 
> > you explicitely
> > write down in the project.xml the dependencies to the plugins 
> > you are using,
> > you can reproduce your revisioned project.
> > 
> > Joern
> > 
> > > -----Ursprüngliche Nachricht-----
> > > Von: Martin Lambert [mailto:[EMAIL PROTECTED]
> > > Gesendet: Mittwoch, 3. März 2004 12:03
> > > An: Maven Users List
> > > Betreff: RE: Download of SNAPSHOT-Plugins
> > > 
> > > 
> > > Hi,
> > > 
> > > I'm not sure what you're on about with 1.2-SNAPSHOT, my 
> > > understanding is you either have 'SNAPSHOT' which will always 
> > > pull down the latest version or a fixed version number which 
> > > I guess Maven would see '1.2-SNAPSHOT' as.
> > > 
> > > Try this in the project.xml of a project that needs to use 
> > the plugin:
> > > 
> > > 
> > >      <dependency>
> > >         <groupId>my-plugins</groupId>
> > >         <artifactId>my-plugin</artifactId>
> > >         <version>SNAPSHOT</version>
> > >     <type>PLUGIN</type>
> > >      </dependency>
> > > 
> > > Hope this helps,
> > > 
> > > Martin.
> > > 
> > > -----Original Message-----
> > > From: Jörn Gebhardt [mailto:[EMAIL PROTECTED]
> > > Sent: 03 March 2004 10:56
> > > To: Maven Users List
> > > Subject: Download of SNAPSHOT-Plugins
> > > 
> > > 
> > > Hi,
> > > 
> > > by reading the Jelly script of the Plugin Plugin I figured 
> > > out that if you
> > > want to downlaod the current version of a plugin like this:
> > > 
> > > maven plugin:download -DartifactId=my-plugin -DgroupId=my-plugins
> > > -Dversion=1.2-SNAPSHOT 
> > > 
> > > and you already have a 1.2-SNAPSHOT version on your disk, it 
> > > doesn't update
> > > it with a newer version. As this is oky for non SNAPSHOT 
> > > versions, I would
> > > expect to SNAPSHOT behaviour for SNAPSHOT versions.
> > > Is there any other elegant way to download and install the 
> > > latest version of
> > > a plugin with a SNAPSHOT version?
> > > 
> > > Joern
> > > 
> > > 
> > 
> ---------------------------------------------------------------------
> > > 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]
> > 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to