Answering my own question :-).
I solved the issue by calling maven directly from ant. Here's my ant
target:
Naresh
-Original Message-
From: Bhatia, Naresh (IS Consultant)
Sent: Friday, February 09, 2007 7:31 AM
To: users@maven.apache.org
Subject: RE: Passing version number to install ant task
> I am using Antlib for Maven 2.0 to install bunch of jar files to my
> local maven repository. Is there any way to specify the version number
> of these jars in my ant task instead of the pom files? The reason I
> ask is that the version nuber is available in my ant script at the
> time of a build, whereas it is not convenient (or elegant) to change
> the version numbers in each one of the POM files during the build.
>
> Here's a sample of how I am invoking the ant task to install a jar:
>
> pomRefId="entities.pom"/>
>
> What I would really like is
>
> pomRefId="entities.pom" version="${build.version}"/>
>
> Thanks.
> Naresh
>
P.S. I posted this yesterday but apparently it never got pushed to the
list. My apologies if you receive this post twice.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]