我想使用Eclipse中的versions-maven-plugin
和目标更改多模块项目的版本versions:set
。我使用M2Eclipse。
我可以-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
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句