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

Can hotfix-start and release-start allow branch name to differ from version #275

Closed kraymondksc closed 3 years ago

kraymondksc commented 3 years ago

I'm currently looking to migrate to this plugin. We're currently using the jGitFlow plugin. When using the following command: mvn -B gitflow:hotfix-start -DuseSnapshotInRelease=true -DhotfixVersion=1.3.1 useSnapshotInHotfix=true -DpushRemote=true

The following will create a branch named hotfix-1.3.1 but with a pom version as <version>1.3.1</version>. For us, the version ideally would have "-SNAPSHOT" appended to the version. In order to get the version to have "-SNAPSHOT", the version would need to be specified as: hotfixVersion=1.3.1-SNAPSHOT. This has the side effect of the branch being named hotfix-1.31-SNAPSHOT. We would like the branch name to not have the -SNAPSHOT version in it. I was wondering if it would be possible to add an additional parameter that could control this behavior.

I suspect this happens also with release but have yet to try it.

aleksandr-m commented 3 years ago

Use useSnapshotInHotfix parameter.

kraymondksc commented 3 years ago

Apologies, I did specify that parameter in my command but realized that I missed prefixing with -D