You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chad Woolley <li...@thewoolleyweb.com> on 2004/07/28 19:59:35 UTC
How can I override the currentversion from the POM?
Hi,
I want to be able to override the currentversion that is used when I do
a build. I attempted to do this, but it seems that the pom
currentversion property cannot be changed.
My goal is to use the version that is provided in a property by my
continuous integration tool (anthill).
Is this possible?
Thanks,
Chad
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How can I override the currentversion from the POM?
Posted by Erik Husby <mh...@broad.mit.edu>.
Chad Woolley wrote:
> Hi,
>
> I want to be able to override the currentversion that is used when I
> do a build. I attempted to do this, but it seems that the pom
> currentversion property cannot be changed.
>
> My goal is to use the version that is provided in a property by my
> continuous integration tool (anthill).
>
> Is this possible?
>
> Thanks,
> Chad
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Define it as <currentVersion>${currentVersion}</currentVersion> then do
>maven -DcurrentVersion=1.1
or
>maven -DcurrentVersion=1.1-SNAPSHOT
--
Erik Husby
Team Lead for Software Quality Automation
Broad Institute of MIT and Harvard
Rm. 2192 320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, mhusby@broad.mit.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org