aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
490 stars 182 forks source link

Create next development version in release branch before merge with develop #282

Open RastislavGraus opened 3 years ago

RastislavGraus commented 3 years ago

Hallo, we use another kind of save merge from release branch to develop. We make following steps:

  1. fork release branch
  2. set release version in pom and commit (as achieved using gitflow:release-start)
  3. merge release branch with master branch
  4. set next development version in pom and commit in release branch
  5. merge release branch with development branch

Is it possible to include such scenario into gitflow:release-finish goal?

I have already implemented this change (it is quite simple), but I'm not able push change to your repo.

Here is my change `/*

import java.util.HashMap; import java.util.Map;

import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.ArtifactUtils; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.shared.release.versions.VersionParseException; import org.codehaus.plexus.util.StringUtils; import org.codehaus.plexus.util.cli.CommandLineException;

/**

aleksandr-m commented 3 years ago

@RastislavGraus You can fork this repository, change something in your fork and create PR to original repository.

RastislavGraus commented 3 years ago

Hi. I've done as you suggested. I created PR #300