maven项目build报错

peter20091001 2017-12-17 10:10:47
[ERROR] Unknown lifecycle phase "build". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. 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></build>内加了<defaultGoal>compile</defaultGoal>还是报同样的错。
怎么办?求高手指教!
...全文
317 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
dxbj1016 2017-12-18
  • 打赏
  • 举报
回复
maven 默认的生命周期 compile
tianfang 2017-12-18
  • 打赏
  • 举报
回复
maven 没有build
第二账户 2017-12-17
  • 打赏
  • 举报
回复
注意看报错信息,[ERROR] Unknown lifecycle phase "build".

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧