Maven profiles can be used for this purpose. For example, You can have one
profile for non-continuum build, which can be activated only when the
Environment property project.version has a value of "
9.2.0-build-${continuum.project.nextBuild.number} ".
I think the syntax is:
<profiles>
<profile>
<activation>
<property>
<name>project.version</name>
<value>9.2.0-build-${continuum.project.nextBuild.number}</value>
</property>
</activation>
...
</profile>
Not sure if this is the best approach.
rgds,
Murali
On Tue, Mar 11, 2008 at 5:06 PM, Robin Roos <[EMAIL PROTECTED]>
wrote:
> It might help if I point out WHY I wish to do this.
>
> My POM has its version defined as:
>
>
> <version>9.2.0-build-${continuum.project.nextBuild.number}</version>
>
> The mvn assembly:assembly invocation will only work if a value is
> specified for this property. When evecuting mvn from outside Continuum
> I must provide a dummy value. (The assumed value of "null" is
> sufficient to build the artifact but causes assembly to fail).
>
> My intention is to define the version thus:
>
> <version>9.2.0-SNAPSHOT</version>
>
> So that the POM can be built from outside Continuum, but then have
> continuum pass
> -Dproject.version=9.2.0-build-${continuum.project.nextBuild.number} when
> it invokes mvn.
>
> Any offers?
>
> Thanks, Robin.
>
> -----Original Message-----
> From: Robin Roos
> Sent: 11 March 2008 16:56
> To: [email protected]
> Subject: Build Definition Arguments
>
> Hi All
>
> My project uses Maven2 and the build definition I have created is for
> goals "assembly:assembly". I'm interested in more information about the
> "Arguments" field on the build definition panel.
>
> I'd like to send mvn an argument of the form:
>
> -Dproject.version=9.2.0-build-${continuum.project.nextBuild.number}
>
> Of course this is a "VM Argument". Does continuum support VM Arguments
> such as this and, if it does, must I provide the -D qualifier?
>
> Thanks, Robin.
>
> _____________________________________________________________________
> Before acting on this e mail or opening any attachment please read the
> disclaimer which can be accessed at
> http://www.investec.com/EmailDisclaimer/UKEmailDisclaimer.htm
> Investec Bank (UK) Limited is authorised and regulated by the Financial
> Services Authority.
> _____________________________________________________________________
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by MCI's Internet Managed
> Scanning Services - powered by MessageLabs. For further information
> visit http://www.mci.com
>
> Investec Bank (UK) Limited
> Registered office: 2 Gresham Street, London, EC2V 7QP Company No:
> 00489604 Incorporated in England and Wales
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by Verizon Business Internet
> Managed Scanning Services - powered by MessageLabs. For further
> information visit http://www.verizonbusiness.com/uk
>
> _____________________________________________________________________
> Before acting on this e mail or opening any attachment please read the
> disclaimer which can be accessed at
> http://www.investec.com/EmailDisclaimer/UKEmailDisclaimer.htm
> Investec Bank (UK) Limited is authorised and regulated by the Financial
> Services Authority.
> _____________________________________________________________________
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by MCI's Internet Managed
> Scanning Services - powered by MessageLabs. For further information visit
> http://www.mci.com
>
> Investec Bank (UK) Limited
> Registered office: 2 Gresham Street, London, EC2V 7QP Company No: 00489604
> Incorporated in England and Wales
>