You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by co...@runbox.com on 2004/01/07 01:51:22 UTC
Adding Build Numbers To Generated Artifacts?
Hi, is there a way to add a build number onto the generated artifacts? This is mostly for the nightly builds. For example, I would like to have the following:
productname-2.3.4.10.jar (where 10 is the build number).
Thanks in advance,
-Conrad
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Adding Build Numbers To Generated Artifacts?
Posted by "Jefferson K. French" <je...@frenches.org>.
Yes. Change the value of maven.final.name in the artifact's preGoal.
Something like:
<preGoal name="jar:jar">
<j:set var="maven.final.name" value="${pom.artifactId}-${version}"/>
<ant:echo>Updating snapshot JAR to: ${maven.final.name}</ant:echo>
</preGoal>
Jeff
On Wed, 07 Jan 2004, at 00:51:22 [GMT GMT] conradwt@runbox.com wrote:
> Hi, is there a way to add a build number onto the generated artifacts? This is mostly for the nightly builds. For example, I would like to have the following:
> productname-2.3.4.10.jar (where 10 is the build number).
> Thanks in advance,
> -Conrad
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org