You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "CHHAJED, Amit, GBM" <Am...@rbos.com> on 2007/01/12 09:33:13 UTC

Parameterized versioning

Hello,

Had a query regarding parameterized pom.xml versioning:

I would like to keep the version numbers out of the pom.xml file completely,
Currently I'm using the
following syntax:

<version>${module_version}</version>

And running Maven with:

mvn -Dmodule_version=1.0-beta-3 deploy

This is working fine, except that the deployed pom which gets installed into
my repository doesn't resolve this variable.  It does get installed into the
correct directory structure, however the pom.xml still contains
${module_version} instead of "1.0-beta-3".  I've been getting around this
temporarily by manually correcting the poms...but shouldn't this be handled
in the deploy plugin?

Or is there any other approach other than making use of the release plugin ?

Thanks,
Amit Chhajed
Senior Developer
GBM | Royal Bank Of Scotland

***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 
Visit our websites at: 
www.rbs.com
www.rbsgc.com
www.rbsmarkets.com
***********************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Parameterized versioning

Posted by franz see <fr...@gmail.com>.
Good day to you, Amit Chhajed,

AFAIK, properties does not get interpolated in the parent tag of your pom
(unless it already exists in your repository). 

I don't know of any work around for that.

Cheers,
Franz


CHHAJED, Amit, GBM wrote:
> 
> Hello,
> 
> Had a query regarding parameterized pom.xml versioning:
> 
> I would like to keep the version numbers out of the pom.xml file
> completely,
> Currently I'm using the
> following syntax:
> 
> <version>${module_version}</version>
> 
> And running Maven with:
> 
> mvn -Dmodule_version=1.0-beta-3 deploy
> 
> This is working fine, except that the deployed pom which gets installed
> into
> my repository doesn't resolve this variable.  It does get installed into
> the
> correct directory structure, however the pom.xml still contains
> ${module_version} instead of "1.0-beta-3".  I've been getting around this
> temporarily by manually correcting the poms...but shouldn't this be
> handled
> in the deploy plugin?
> 
> Or is there any other approach other than making use of the release plugin
> ?
> 
> Thanks,
> Amit Chhajed
> Senior Developer
> GBM | Royal Bank Of Scotland
> 
> ***********************************************************************************
> The Royal Bank of Scotland plc. Registered in Scotland No 90312.
> Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
> Authorised and regulated by the Financial Services Authority 
>  
> This e-mail message is confidential and for use by the 
> addressee only. If the message is received by anyone other 
> than the addressee, please return the message to the sender 
> by replying to it and then delete the message from your 
> computer. Internet e-mails are not necessarily secure. The 
> Royal Bank of Scotland plc does not accept responsibility for 
> changes made to this message after it was sent. 
> 
> Whilst all reasonable care has been taken to avoid the 
> transmission of viruses, it is the responsibility of the recipient to 
> ensure that the onward transmission, opening or use of this 
> message and any attachments will not adversely affect its 
> systems or data. No responsibility is accepted by The 
> Royal Bank of Scotland plc in this regard and the recipient should carry 
> out such virus and other checks as it considers appropriate. 
> Visit our websites at: 
> www.rbs.com
> www.rbsgc.com
> www.rbsmarkets.com
> ***********************************************************************************
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Parameterized-versioning-tf2964646s177.html#a8312910
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org