versionType = VersionType.HOTFIX;
versionSuffix = "";
break;
default:
throw new JGitFlowExtensionException("Unsupported branch type '" + branchType.name() + "' while running " + this.getClass().getSimpleName() + " command");
}
checkNotNull(cacheKey);
checkNotNull(versionType);
unprefixedBranchName = branchHelper.getUnprefixedCurrentBranchName();
//reload the reactor projects for release
List<MavenProject> branchProjects = branchHelper.getProjectsForCurrentBranch();
pomUpdater.addSnapshotToPomVersions(cacheKey, versionType, versionSuffix, branchProjects);
projectHelper.commitAllPoms(flow.git(), branchProjects, ctx.getScmCommentPrefix() + "updating poms for branch '" + unprefixedBranchName + "' with snapshot versions" + ctx.getScmCommentSuffix());
}
catch (Exception e)
{
throw new JGitFlowExtensionException("Error updating poms with snapshot versions for branch '" + unprefixedBranchName + "' : " + e.getMessage(),e);
}
}