我正在尝试发布一个多模块maven项目。目前在0.0.1-SNAPSHOT,我正试图将项目版本提升到树中所有模块的1.0.0-b1。
Maven以“未知生命周期阶段”.0.0-b1“错误”失败,表明我不太清楚什么。看起来版本号没有被正确解析并且流入某些阶段设置。构建似乎在根模块上失败,但错误消息是完全不可理解的
> mvn versions:set -DnewVersion=1.0.0-b1 -X
> ------------------------------------------------------------------------ Building GOSAC-N Services Open Source Distribution 1
> ------------------------------------------------------------------------ ] Lifecycle default -> [validate, initialize, generate-sources,
> process-sources, generate-resources, process-resou compile,
> process-classes, generate-test-sources, process-test-sources,
> generate-test-resources, process-test-resou test-compile,
> process-test-classes, test, prepare-package, package,
> pre-integration-test, integration-test, post-i tion-test, verify,
> install, deploy] ] Lifecycle clean -> [pre-clean, clean, post-clean] ]
> Lifecycle site -> [pre-site, site, post-site, site-deploy]
> ------------------------------------------------------------------------ Reactor Summary:
>
> GOSAC-N Services Open Source Distribution ......... FAILURE [0.016s]
> Commons ........................................... SKIPPED
如果重要的话,我是在Windoze 7下的命令行(Powershell)中这样做的。使用mvn install BTW构建项目很好。