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.
The preFeatureFinishGoals inserts some changes in my tracked files. This makes them modified from a git perspective.
When the mvn gitflow:feature-finish terminates, the changes are not committed into master.
I rather end up with uncommitted changes in my master.
Funny thing is when I comment the <skipFeatureVersion> tag, then everything behaves as expected and no uncommitted edits end up in my master branch.
@ziad-aouad Yes, this is because of the commit which happens only if skipFeatureVersion is set to false.
If you know that your script changes tracked files maybe you can commit them in the script as well.
I have a simple project that has the configuration below for the plugin
The
preFeatureFinishGoals
inserts some changes in my tracked files. This makes them modified from a git perspective. When themvn gitflow:feature-finish
terminates, the changes are not committed into master. I rather end up with uncommitted changes in mymaster
.Funny thing is when I comment the
<skipFeatureVersion>
tag, then everything behaves as expected and no uncommitted edits end up in mymaster
branch.Any idea what I might be doing wrong?