Re: SNAPSHOT and multiproject
Gilles Dodinet wrote: it is possible to modify it through a direct call to the currentVersion setter : ${pom.currentVersion} ${pom.setCurrentVersion("SNAPSHOT")} ${pom.currentVersion} Eeek! It may be possible, which does not mean that it is right. Seems like a good start to turning your build system into a WMoPC (Writhing Mass of Primal Chaos, for the non-ADOM types :-)) Rafal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SNAPSHOT and multiproject
Heritier Arnaud wrote: Hello Emmanuel, I don't think that you can do that. pom.currentVersion is directly retreived from the project description and I don't think that it is modifiable. Arnaud, it is possible to modify it through a direct call to the currentVersion setter : ${pom.currentVersion} ${pom.setCurrentVersion("SNAPSHOT")} ${pom.currentVersion} ===> [echo] 1.0 [echo] SNAPSHOT -- gd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SNAPSHOT and multiproject
> -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Envoyé : mardi 25 mai 2004 16:35 > À : [EMAIL PROTECTED] > Objet : SNAPSHOT and multiproject > > > Hi, > > I have two question, first, how can I make this code working > (in a maven.xml) : > > ${pom.currentVersion} > SNAPSHOT > ${pom.currentVersion} > > Display is : > >[echo] 3.0.0 >[echo] 3.0.0 > > But I want > >[echo] 3.0.0 >[echo] SNAPSHOT Hello Emmanuel, I don't think that you can do that. pom.currentVersion is directly retreived from the project description and I don't think that it is modifiable. > > Second question, I have a multiproject versionned as 3.0.0, > this is a J2EE > project (client, ear, service, web...). my client depend on > service project : > > > msl-murexservice > murexservice > ${pom.currentVersion} > jar > > > When I build a snapshot (using *:install-snapshot goals), > Maven use 3.0.0 for > the dependency version > (${pom.currentVersion}), I want maven > replace 3.0.0 per SNAPSHOT. Is there a way to do this without > using the > workaround on first question. > > May I am clear ? Can't you define in a parent project the currentVersion to 3.0.0 and use SNAPSHOT in subprojects ? Arnaud > > Thx, > -emmanuel > > > > > - > 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]
RE: SNAPSHOT and multiproject
Nicolas, I know what you said and, for some reasons, we don't want to put some X.X.X-SNAPSHOT version, only X.X.X So, in our master projects we set the pom.currentVersion at 3.0.0. All subprojects use this version number. In all our subprojects, we use ${pom.currentVersion} to references thems : msl-murexservice murexservice ${pom.currentVersion} jar The version used by pom.currentVersion is logicaly 3.0.0 but when I build a snapshot, logicaly maven should replace 3.0.0 by SNAPSHOT (or a timestamp) If project 2 depend on Project 2, result is : Project 1 : Maven build and install the murexservice-SNAPSHOT.jar Project 2 : Maven try to download murexservice-3.0.0.jar, Fail because there is no murexservice-3.0.0.jar on repo, only the murexservice-SNAPSHOT.jar BTW: That is for this reason I want to override the pom.currentVersion at bootstrap Thx, -emmanuel Selon [EMAIL PROTECTED]: > SNAPSHOT have nothing in common whith pom.currentVersion. > If you want you can have a 3.0.0-SNAPSHOT version, the artifact with this > version will be considere as SNAPSHOT version too. > > Nicolas, > > > > > > [EMAIL PROTECTED] > 25/05/2004 16:34 > Veuillez répondre à "Maven Users List" > > > Pour : [EMAIL PROTECTED] > cc : > Objet : SNAPSHOT and multiproject > > > Hi, > > I have two question, first, how can I make this code working (in a > maven.xml) : > > ${pom.currentVersion} > SNAPSHOT > ${pom.currentVersion} > > Display is : > >[echo] 3.0.0 >[echo] 3.0.0 > > But I want > >[echo] 3.0.0 >[echo] SNAPSHOT > > Second question, I have a multiproject versionned as 3.0.0, this is a J2EE > project (client, ear, service, web...). my client depend on service > project : > > > msl-murexservice > murexservice > ${pom.currentVersion} > jar > > > When I build a snapshot (using *:install-snapshot goals), Maven use 3.0.0 > for > the dependency version (${pom.currentVersion}), I want > maven > replace 3.0.0 per SNAPSHOT. Is there a way to do this without using the > workaround on first question. > > May I am clear ? > > Thx, > -emmanuel > > > > > - > 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]
RE: SNAPSHOT and multiproject
Nicolas, I know what you said and, for some reasons, we don't want to put some X.X.X-SNAPSHOT version, only X.X.X So, in our master projects we set the pom.currentVersion at 3.0.0. All subprojects use this version number. In all our subprojects, we use ${pom.currentVersion} to references thems : msl-murexservice murexservice ${pom.currentVersion} jar The version used by pom.currentVersion is logicaly 3.0.0 but when I build a snapshot, logicaly maven should replace 3.0.0 by SNAPSHOT (or a timestamp) If project 2 depend on Project 2, result is : Project 1 : Maven build and install the murexservice-SNAPSHOT.jar Project 2 : Maven try to download murexservice-3.0.0.jar, Fail because there is no murexservice-3.0.0.jar on repo, only the murexservice-SNAPSHOT.jar BTW: That is for this reason I want to override the pom.currentVersion at bootstrap Thx, -emmanuel Selon [EMAIL PROTECTED]: > SNAPSHOT have nothing in common whith pom.currentVersion. > If you want you can have a 3.0.0-SNAPSHOT version, the artifact with this > version will be considere as SNAPSHOT version too. > > Nicolas, > > > > > > [EMAIL PROTECTED] > 25/05/2004 16:34 > Veuillez répondre à "Maven Users List" > > > Pour : [EMAIL PROTECTED] > cc : > Objet : SNAPSHOT and multiproject > > > Hi, > > I have two question, first, how can I make this code working (in a > maven.xml) : > > ${pom.currentVersion} > SNAPSHOT > ${pom.currentVersion} > > Display is : > >[echo] 3.0.0 >[echo] 3.0.0 > > But I want > >[echo] 3.0.0 >[echo] SNAPSHOT > > Second question, I have a multiproject versionned as 3.0.0, this is a J2EE > project (client, ear, service, web...). my client depend on service > project : > > > msl-murexservice > murexservice > ${pom.currentVersion} > jar > > > When I build a snapshot (using *:install-snapshot goals), Maven use 3.0.0 > for > the dependency version (${pom.currentVersion}), I want > maven > replace 3.0.0 per SNAPSHOT. Is there a way to do this without using the > workaround on first question. > > May I am clear ? > > Thx, > -emmanuel > > > > > - > 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]
RE: SNAPSHOT and multiproject
SNAPSHOT have nothing in common whith pom.currentVersion. If you want you can have a 3.0.0-SNAPSHOT version, the artifact with this version will be considere as SNAPSHOT version too. Nicolas, [EMAIL PROTECTED] 25/05/2004 16:34 Veuillez répondre à "Maven Users List" Pour : [EMAIL PROTECTED] cc : Objet : SNAPSHOT and multiproject Hi, I have two question, first, how can I make this code working (in a maven.xml) : ${pom.currentVersion} SNAPSHOT ${pom.currentVersion} Display is : [echo] 3.0.0 [echo] 3.0.0 But I want [echo] 3.0.0 [echo] SNAPSHOT Second question, I have a multiproject versionned as 3.0.0, this is a J2EE project (client, ear, service, web...). my client depend on service project : msl-murexservice murexservice ${pom.currentVersion} jar When I build a snapshot (using *:install-snapshot goals), Maven use 3.0.0 for the dependency version (${pom.currentVersion}), I want maven replace 3.0.0 per SNAPSHOT. Is there a way to do this without using the workaround on first question. May I am clear ? Thx, -emmanuel - 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]