diff --git a/src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowReleaseStartMojo.java b/src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowReleaseStartMojo.java index 13603434..67a59bf9 100644 --- a/src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowReleaseStartMojo.java +++ b/src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowReleaseStartMojo.java @@ -49,6 +49,17 @@ public class GitFlowReleaseStartMojo extends AbstractGitFlowMojo { @Parameter(property = "sameBranchName", defaultValue = "false") private boolean sameBranchName = false; + /** + * Release version. + *
+ * + * Note: Work only in non interactive mode. + * + * @since 1.3.1 + */ + @Parameter(property = "releaseVersion", defaultValue = "") + private String releaseVersion = ""; + /** {@inheritDoc} */ @Override public void execute() throws MojoExecutionException, MojoFailureException { @@ -114,6 +125,8 @@ public void execute() throws MojoExecutionException, MojoFailureException { } catch (PrompterException e) { getLog().error(e); } + } else { + version = releaseVersion; } if (StringUtils.isBlank(version)) {