Take the 2-minute tour ×

I am using Maven 2.0 As you can see from the below line , i am hardcoding the version as 1.0

Is it possible that for every build the version automatically increments .

  <copy file="D:/MyWeb/service/target/MyWeb-ws-1.0.war" tofile="C:/Softwares/apache-tomcat-6.0.33/webapps/MyWeb-ws-1.0.war" />

Please suggest , thank you very much .

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

You can look at using the Build Number Maven Plugin for this.

As documented in their web page,

This plugin works in one of 3 ways: with an SCM, with a sequential build number, or with a timestamp.

You can choose the one which is convenient to you.

share|improve this answer
Thank you very much. –  Kiran Oct 27 '11 at 14:32
add comment

Your Answer


