配置maven,cmd出现No goals have been specified for this build

您所在的位置:网站首页 maven查看版本报错 配置maven,cmd出现No goals have been specified for this build

配置maven,cmd出现No goals have been specified for this build

2023-11-25 20:52| 来源: 网络整理| 查看: 265

安装Maven现象:解压到安装目录之后 配置完环境变量之后 cmd运行 mvn -v 报错

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]

解决方法

找到maven安装路径下lib\maven-model-builder-x.x.x.jar打开,编辑pom.xml文件,在第一个build后添加compile



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3