解决:No goals have been specified for this build. You must specify a valid lifecycle phase or a goal i
生活随笔
收集整理的這篇文章主要介紹了
解决:No goals have been specified for this build. You must specify a valid lifecycle phase or a goal i
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
前些天發(fā)現(xiàn)了一個巨牛的人工智能學(xué)習(xí)網(wǎng)站,通俗易懂,風(fēng)趣幽默,忍不住分享一下給大家。點(diǎn)擊跳轉(zhuǎn)到教程。
1. 執(zhí)行打包命令報錯:
No goals have been specified for this 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>. Availa ble 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]2. 解決方法:
?pom.xml 文件中 <build> 標(biāo)簽要加配置:?<defaultGoal>compile</defaultGoal>??
總結(jié)
以上是生活随笔為你收集整理的解决:No goals have been specified for this build. You must specify a valid lifecycle phase or a goal i的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Qt 之 消息机制和事件讲解
- 下一篇: c#winform控件过多卡顿问题解决方