How to override maven project version in teamcity
<p>Mine is a maven based java project and for continuous integration I am using Teamcity. For some purpose ( deploy Snapshot and release ) I need to overwrite project version within team city. 
I have tried using maven.project.version and project.version in build step Paramus but no luck.
Currently mentioning it in pom.xml in tag 
Please suggest.</p>