I have a project with several maven modules.
When the code is complete, we need to write a branch building task in Jenkins that passes the code, increments the pom versions in the trunk and removes -SNAPSHOT from the pom versions in the branch.
So, if the trunk is 2.2-SNAPSHOT, by the end of the operation the trunk should be 2.3-SNAPSHOT, and the newly created branch should have poms with 2.2.
When I use release: branch, the trunk is updated, but does not remove -SNAPSHOT from the priests in the branch.
Please let me know if you have any ideas to achieve this.
Thanks in advance.
source share