LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid
程序员文章站
2022-06-17 18:52:54
...
故障解决方式
去掉 mvn 这个命令前缀
故障环境介绍
项目 | 描述 |
---|---|
工具 | idea,eclipse |
问题范围 | 使用maven插件命令 |
故障发生现象及报错信息
错误LifecyclePhaseNotFoundException,
Unknown lifecycle phase “mvn”. You must specify a valid
故障分析及解决过程
1, 使用Eclipse Maven插件[Run As]-[Maven build]时多输入了mvn命令 ,因为Eclipse Maven插件已经帮你加上了mvn的命令前缀,再手动输出mvn clean install之类的,命令就会变成mvn mvn clean install
2, idea默认添加了mvn,把这个命令前缀去了就好了!
life is beautiful,我是Alon,如果你有兴趣,欢迎访问主页:
上一篇: 块级作用域内的函数声明到底是什么???
推荐阅读
-
Maven 错误: Unknown lifecycle phase ".ggstar". You must specify a valid lifecycle phase or a goal
-
LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid
-
Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle ...
-
No goals have been specified for this build. You must specify a valid lifecycle phase or a goal ...
-
ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a go
-
笔记:Maven启动报错 - No goals have been specified for this build.You must specify a valid lifecycle phase