ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a go
今天在用发布式做练习时,当我运行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>
这样不会报错了,但是工程还是运行不起来。
我尝试了好多都不行,功夫不顾有心人最后还是让我给解决了。
在运行就不报错了也能运行了!完美解决!
谢谢阅读!!!
推荐阅读
-
Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle ...
-
No goals have been specified for this build. You must specify a valid lifecycle phase or a goal ...
-
ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a go
-
笔记:Maven启动报错 - No goals have been specified for this build.You must specify a valid lifecycle phase