首页 编程 技术 应用
Maven execution: No goals have been specified for this build. 编程 | 管理工具 | 任务工具
Alibaba Cloud配置工具命令错误。

在IntelliJ IDEA开发环境中,执行Maven发布微服务操作时候出现以下错误:

[ERROR] 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>. 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/NoGoalSpecifiedException
[ERROR] Maven execution terminated abnormally (exit code 1)

原来是配置中未指定执行命令,如下截图:

只需添加“clean install”命令即可,添加后如下:

再次执行发布命令,便可以正常发布啦。

 

点击阅读全文

发表 2023-02-23 23:07:15 颛顼 →

京ICP备16053008号-4 公安备案号11010502049515

©️2022 码嗨路书版权所有,威廉宏业科技出品