运行maven build报错No goals have been specified for this build.

4人阅读 评论(0) 收藏 举报

运行maven报错:

[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]

解决办法,在pom.xml添加如下配置:

<build>
    <defaultGoal>compile</defaultGoal>
</build>
查看评论

Maven学习总结(26)——maven update时,报:Preference node "org.eclipse.wst.validation"...

详细情况如下: An internal error occurred during: "Updating Maven Project". Preference node "org.eclipse....
  • u012562943
  • u012562943
  • 2016-10-17 17:33:05
  • 3095

Maven:No goals have been specified for this build

[INFO] Total time: 0.109s[INFO] Finished at: Wed Apr 13 11:04:20 CST 2011[INFO] Final Memory: 1M/4M[...
  • xiazdong
  • xiazdong
  • 2012-06-25 11:22:28
  • 12894

运行Maven是报错:No goals have been specified for this build

Java代码   No goals have been specified for this build. You must specify a valid lifecycle phas...
  • yiluoAK_47
  • yiluoAK_47
  • 2013-11-25 10:29:10
  • 86638

Maven: mvn -X 执行报错:No goals have been specified for this build.

Maven: mvn -X 执行报错:No goals have been specified for this build. No goals have been specified for th...
  • liu76xt
  • liu76xt
  • 2015-10-31 19:18:01
  • 1099

Maven工程报错:No goals have been specified for this build. You must specify a valid lifecycle phase or a

在Maven工程中,启动服务时报出如下异常: No goals have been specified for this build. You must specify a valid lifecyc...
  • qq_30507287
  • qq_30507287
  • 2017-04-23 16:41:38
  • 4934

isis simple 运行Maven是报错: No goals have been specified for this build.

错误信息: [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase...
  • wind520
  • wind520
  • 2014-03-20 09:32:25
  • 2647

使用myeclipse构建maven项目报错:No goals have been specified for this build

http://stackoverflow.com/questions/19852950/specifying-goal-in-pom-xml 原文意思就是缺少goal 操作步骤: 右击项目.点击...
  • u011214505
  • u011214505
  • 2016-08-12 11:26:26
  • 389

Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle

http://www.cnblogs.com/haoliansheng/p/5866149.html(转载自) 报错: [ERROR] No goals have been specifi...
  • chenglansky
  • chenglansky
  • 2017-03-23 20:16:48
  • 1078

No goals have been specified for this build. You must specify a valid li fecycle phase or a goal in

[ERROR] No goals have been specified for this build. You must specify a valid li  fecycle phase or ...
  • Zhou_Andy
  • Zhou_Andy
  • 2012-11-30 18:13:27
  • 3989

Maven不让编译: No goals have been specified for this build. You must specify a valid lifecy

Maven不让编译: No goals have been specified for this build. You must specify a valid lifecy      ...
  • autumn20080101
  • autumn20080101
  • 2016-11-04 11:16:05
  • 228
    个人资料
    等级:
    访问量: 3万+
    积分: 753
    排名: 6万+
    最新评论