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
492 stars 182 forks source link

Passing gitflow config values while executing a goal #203

Closed ArpitSen closed 3 years ago

ArpitSen commented 4 years ago

Hi, Is there a way to pass a value for the gitflow config key while executing a goal?? Something like

mvn -B com.amashchenko.maven.plugin:gitflow-maven-plugin:1.13.0:release-finish -DgitFlowConfig.versionTagPrefix="RC_"

This will prefix the tag with "RC_", to indicate that the build is a Release Candidate and any bugs can still be fixed before the final artifact is moved to production.

Calling the plugin with fully qualified name helps us keeping the plugin updates separate from the actual pom file. Also a single pipeline script can be used across various projects and the tag names can be customized per project.

ldeck commented 3 years ago

@ArpitSen did you find an answer to this?

srinath45 commented 3 years ago

@ArpitSen @ldeck Did you find, how to use -DgitFlowConfig parameter ?

ldeck commented 3 years ago

@srinath45 no. Did you?

srinath45 commented 3 years ago

@ldeck Nope. Are you doing any alternatives to update gitFlowConfig, other than from POM.xml file

ldeck commented 3 years ago

@srinath45 I was kicking the tyres, so to speak, for Git Flow and the gitflow-maven-plugin. Not being able to configure the behaviour externally, I'm looking at alternatives. e.g., using the maven versions plugin directly and git itself otherwise.

aleksandr-m commented 3 years ago

Implemented in https://github.com/aleksandr-m/gitflow-maven-plugin/commit/f1adadc44b22895035bdb8cd4d49c748582a515b.