mac電腦如何結(jié)束應(yīng)用呢?我使用control+c后,再執(zhí)行打包命令,報(bào)出NoGoalSpecifiedException,實(shí)在找不到問題
ERROR] Unknown lifecycle phase "lean". 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]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
2018-11-08
您好,我也是mac,你查看一下你當(dāng)前的目錄是否在項(xiàng)目的根目錄,我打包之后然后運(yùn)行時(shí)可以的。然后我重新打開一個(gè)終端,運(yùn)行打包命令和你一樣的錯(cuò)誤,查看了下原因是因?yàn)闆]有在項(xiàng)目目錄下,你切換到項(xiàng)目目錄下然后在執(zhí)行打包命令看下。