Reputation: 1045
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
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