You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Niranjan Deshpande <ni...@gmail.com> on 2008/04/28 18:02:42 UTC

Versioning Build

I am using Maven and Cruise Control for build activities. I am using SVN
Every time I force a build, I give the version number of the build in the
pom.xml file. and take the build in cruise control.

But this seems weird now, every time. I want to avoid manual entry into the
pom.xml, every time a build is taken. i would like this to happen
automatically.

so i need something like this:

1. Version the build automatically OR make the system ask user to input the
version number when maven goes for the build OR
2. append a time stamp e.g. app20080428<time_of the_day> etc., where app :
applicaiton name.

Also, I am thinking to do something like this:

1. If its a forced build, the buiild name will be defaulted to timestamp
style as in 2. above. But the user can edit it to add some number
2. if it is a nightly build, it will be defaulted to timestamp.

Can any one help me?