> -----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) :
> 
>       <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


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 :
> 
>     <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 ?

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]

Reply via email to