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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to