maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Agnew" <>
Subject Publishing POMs via Maven and inserting build version info
Date Tue, 02 Feb 2010 10:01:40 GMT
Hello -

I posted the below to StackOverflow, then I figured that this may be a
better forum.

I'm building Maven projects via TeamCity/Git and trying to insert the
TeamCity build numbers in the pom.xml that gets published to my repository
upon a successful build. Unfortunately I can't determine how to publish a
pom.xml with the substitutions inserted.

My pom.xml contains info like:


where build.number is provided by TeamCity. That all builds ok, and if
(say) build.number = 0.1, then the deployment is a pom.xml to a directory
with 0.1. All well and good.

However, the pom.xml that is deployed is the pom.xml without the
substitutions made. i.e. Maven is running with a pom.xml with appropriate
substitutions, but deploys the initial version and so I get


in the final pom.xml. How can I get the build version number in the pom.xml ?

Apologies for the post length.


Brian Agnew        
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message