Hi Chad. You should just be able to do this:
<currentVersion>${version}</currentVersion>
using the 'version' property passed in from Anthill.
Jeff
On Thu, 29 Jul 2004, at 11:17:49 [GMT -0700] Chad Woolley wrote:
> Erik Husby <[EMAIL PROTECTED]> wrote:
>>
>> 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
>>>
>> Define it as <currentVersion>${currentVersion}</currentVersion> then do
>> >maven -DcurrentVersion=1.1
>> or
>> >maven -DcurrentVersion=1.1-SNAPSHOT
> This doesn't work for me, because when I invoke Maven via Anthill, I
> don't have access to the maven command line, or a way to set System
> properties (that I know of).
> Are System properties the only way to have a dynamic variable assigned
> in the project.xml?
> Thanks,
> Chad
--
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]