Christian Rockrohr
Christian Rockrohr

Reputation: 1045

automatically increase version info on svn commit

I am using SVN to scm my maven project. I recognized that I quite often forget to increase the version number in the pom.xml file before submitting.

Is there a way to automatically let maven, eclipse, svn or some one else do this for me?

Upvotes: 2

Views: 847

Answers (2)

roippi
roippi

Reputation: 25954

SVN can do this for you with Keyword Substitution.

Upvotes: 2

Erik Pragt
Erik Pragt

Reputation: 14617

The Maven release plugin can do this whenever you release your software. Doing this every commit is a bad idea, and unneeded. Alternatively, you can have your buildserver (Jenkins for example) increment the build number of the artefact produced.

And if you really, really want to increment it on commit, you can maybe use SVN commit hooks.

Upvotes: 6

Related Questions