欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a go

程序员文章站 2022-06-17 18:52:18
...

今天在用发布式做练习时,当我运行manager工程时报:

ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] <

这个错误! 在run install时没有错,只要run时就报这个错误。
我在网上也查了好多都是让我添加

<defaultGoal>complier</defaultGoal>

这样不会报错了,但是工程还是运行不起来。

我尝试了好多都不行,功夫不顾有心人最后还是让我给解决了。
ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a go

在运行就不报错了也能运行了!完美解决!

谢谢阅读!!!