teamcity - Publishing POMs via Maven and inserting build version info -


I am creating Maven projects through teamcity / guit and publishing the team ity build number in pom.xml Trying to make a successful build on my repositories unfortunately I can not determine how to publish a pom.xml with implants.

My pom.xml contains such information:

  & lt; Version & gt; $ {Build .number} & lt; / Edition & gt;  

Where build.umber is provided by TeamCity. It all makes okay, and if (say) build.number = 0.1, then the deployment is a directory with a pom.xml 0.1. All well and good

However, the deployed pom.xml has been replaced by pom.xml i.e. Maven is a suitable code With pom.xml is running, but deploys the initial version and so I

   

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

? I will not use this approach as it builds a project out of SCM, which would make it possible without providing property build.number . I do not think this is a good thing, maybe I'm missing something, though

Actually, what I'm trying to achieve does not get me (for example, why the build number in the manifest However, according to TeamCity website:

By default, this Maven also maintains TeamCity Build number in coordination with the version number (...).

Can not it be helpful? There is another thread about it.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -