Maven 2 release plugin

Working with Maven 2 is a great pleasure. It’s even greater when you discover something really exciting, which ease unpleasant work. So some time ago I came to an end of project iteration, and realized, that I need to install old version in the Maven repository, create a tag it in my Subversion repository, and move my project to the new Snapshot version. It didn’t look very complicated, but I decided to let Maven do it for me.

And this is where release plugin came to play

I was shocked that it was that easy. After typing mvn release:prepare, Maven checked if my project is fully synchronized with the Subversion repository, asked what tag it should use, changed project version to non-snapshot, tagged the project in the Subversion repository, installed it into the Maven repository, asked what will be the project next snapshot version and changed it accordingly.
I had nothing more to say than: wow!

Maven release plugin site


About this entry