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]

Reply via email to