2

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?

2 Answers 2

6

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.

Sign up to request clarification or add additional context in comments.

Comments

2

SVN can do this for you with Keyword Substitution.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.