javaeclipsemavenmulti-moduleversions-maven-plugin

Convenient way to update version of multi-module project in Eclipse


I have a Maven multi-module project in Eclipse.

Each time I want to update the version, I go to Run As -> Run Configurations..., change the parameter newVersion of the goal versions:set to a higher number and then run the goal.

Is there something more direct?

Note that I cannot use the CI-friendly versions because they clash with the Maven release plugin.


Solution

  • Following the idea of https://stackoverflow.com/a/34091470/927493,

    I configured the newVersion parameter to be ${string_prompt:newVersion} as shown in the image below

    Eclipse Maven Run Dialogue

    Then I get prompted for the version number which works fine.