I release projects using maven release plugin. Version of parent-pom is set to 'RELEASE'.
Are there any ways to get the release-plugin to tag project in git with actual parent-pom version, while still keeping RELEASE in master/branch?
I would like pom.xml in tag (only) to look like this:
In most cases I need to use latest RELEASE of parent. E.g. To make sure CI server build and test all children upon new parent release. However, if i later need to go back to a previous tag I will have to manually figure out which version of the parent pom was used at the time it was first tagged.
The only way I can think of doing this is to use 'versions plugin' to resolve parent before releasing, then make sure to revert to 'RELEASE' afterwards. To me this sounds like a messy option as developers are going to forget it all the time, not to mention the extra hassle and git-pushing with each and every release.