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

DevelopmentVersion is not used in batch mode? #183

Closed GaborVarga closed 5 years ago

GaborVarga commented 5 years ago

I try to set the developmentVersion in non-interactive mode (-DdevelopmentVersion=${next_development_version}) but the plugin still updates the pom files with the default increased value (e.g. release version is 3.0.2, I want next as 3.1.0-SNAPSHOT, plugins ignores this and uses 3.0.3-SNAPSHOT). In the logs I can see this: [DEBUG] (f) developmentVersion = 3.1.0-SNAPSHOT Still the bad value is used at the end: from version 3.0.2 to 3.0.3-SNAPSHOT

Any idea what is wrong?

aleksandr-m commented 5 years ago

@GaborVarga What goal are you running? Which parameters do you use?

GaborVarga commented 5 years ago

The command is : "mvn gitflow:release-finish -DallowSnapshots=true -DpushRemote=false -DargLine=-Pobfuscation -DdevelopmentVersion=${next_development_version}"

Since then I realized what could be wrong: I missed -B, right?