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 :
<dependency>
<groupId>msl-murexservice</groupId>
<artifactId>murexservice</artifactId>
<version>${pom.currentVersion}</version>
<type>jar</type>
</dependency>
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) :
>
> <ant:echo>${pom.currentVersion}</ant:echo>
> <j:set var="pom.currentVersion">SNAPSHOT</j:set>
> <ant:echo>${pom.currentVersion}</ant:echo>
>
> 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 :
>
> <dependency>
> <groupId>msl-murexservice</groupId>
> <artifactId>murexservice</artifactId>
> <version>${pom.currentVersion}</version>
> <type>jar</type>
> </dependency>
>
> When I build a snapshot (using *:install-snapshot goals), Maven use 3.0.0
> for
> the dependency version (<version>${pom.currentVersion}</version>), 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]