我想在Eclipse中更改我的多模塊項目的版本versions-maven-plugin
和目標versions:set
。我使用M2Eclipse。使用M2Eclipse插件以交互模式設置version-maven-plugin的版本?
我可以在啓動配置中設置-DnewVersion=0.0.2-SNAPTSHOT
的新版本,它工作正常。但我想使用交互模式。
如果我不設置啓動配置-DnewVersion=0.0.2-SNAPTSHOT
,我得到以下錯誤信息:
[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]
- interactiveMode:
true
如果Maven的應該嘗試互動與用戶輸入,如果不是,則爲false
。默認爲true
。