I want to change the version of my multi module project with versions-maven-plugin
and goal versions:set
in Eclipse. I use M2Eclipse.
I can set the new version with -DnewVersion=0.0.2-SNAPTSHOT
in the launch configuration and it works fine. But I want to use the interactive mode.
If I don't set -DnewVersion=0.0.2-SNAPTSHOT
in launch configuration, I get following error message:
[ERROR] Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.2:set (default-cli) on project test-parent: You must specify the new version, either by using the newVersion property (that is -DnewVersion=... on the command line) or run in interactive mode -> [Help 1]
Maven Settings Reference says:
- interactiveMode:
true
if Maven should attempt to interact with the user for input,false
if not. Defaults totrue
.