Checkout tag and build with -P`vpro-nexus`
git checkout REL-3.6.1
mvn -Pvpro-nexus deploy
git checkout REL-3.5-SNAPSHOT
VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`
TAG_VERSION=`echo $VERSION | gawk 'match($1, /([0-9]+)\.([0-9]+)\.([0-9]+)([\.-].*)/, a) {print a[1]"."a[2]"."(a[3] - 1)".1"}'`
git branch ${BRANCH_VERSION}
git checkout ${BRANCH_VERSION}
mvn -DnewVersion=$BRANCH_VERSION versions:set
Now make changes to the module you want to publish and commit them.