// change build identifier to next snapshot and inject a release log template
MxVersion snapshotVersion = new MxVersion();
snapshotVersion.setProject(project);
snapshotVersion.setStage("snapshot");
snapshotVersion.setIncrementNumber(ArtifactVersion.NumberField.incremental.name());
phase.addTask(snapshotVersion);
// commit snapshot identifier change and release log template
MxCommit commitSnapshot = new MxCommit();
commitSnapshot.setProject(project);
commitSnapshot.setRequiredGoal(false);