> 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: > > <artifact:install file="${lib.dir}/entities-${build.version}.jar" > pomRefId="entities.pom"/> > > What I would really like is > > <artifact:install file="${lib.dir}/entities-${build.version}.jar" > 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.
RE: Passing version number to install ant task
Bhatia, Naresh \(IS Consultant\) Fri, 09 Feb 2007 04:31:53 -0800
- RE: Passing version number to install ant... Bhatia, Naresh \(IS Consultant\)
- RE: Passing version number to instal... Bhatia, Naresh \(IS Consultant\)