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]