LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
来源:互联网 发布:0day扫描什么端口 编辑:程序博客网 时间:2024/05/18 03:56
Unknown lifecycle phase “”. 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-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [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
- 原因1:
使用Eclipse Maven插件[Run As]-[Maven build]时并未为其指定goal或phase
解决方法:
在pom.xml中找到 <build>
节点,在里面加上<defaultGoal>compile</defaultGoal>
即可
- 原因2:
使用Eclipse Maven插件[Run As]-[Maven build]时多输入了mvn命令
因为Eclipse Maven插件已经帮你加上了mvn的命令前缀,再手动输出mvn clean install之类的 命令就会变成mvn mvn clean install
- 错误LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- 错误LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal
- Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal
- 异常:Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- Eclipse集成Maven打包时报错:Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goa
- No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in t
- maven工程里编译运行main函数出错:“ You must specify a valid lifecycle phase or a goal in the format”
- Maven工程报错:No goals have been specified for this build. You must specify a valid lifecycle phase or a
- maven 系列- Unknown lifecycle phase "mvn".
- mvn-lifecycle、phase、goal
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle
- Maven编译报错 Unknown lifecycle phase "mvn" 解决办法
- Maven编译报错 Unknown lifecycle phase "mvn" 解决办法
- 【Maven】Unknown lifecycle phase "build"
- 解决在m2eclipse中执行mvn package命令出现的Unknown lifecycle phase "mvn".问题
- Jar包冲突解决方法 Unknown lifecycle phase "mvn" Eclipse中执行maven命令
- tomcat设置不输出catalina.out
- 【Web前端】sublime text3 配置 nodejs
- 小程序发送网络请求400报错解决办法
- 红黑树和AVL树
- ansible自动化部署
- LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- 第五天作业:登陆界面
- 二叉树之层次遍历
- c++作业4
- linux通过源码包安装mysql5.6
- 启动第三方或系统的应用
- Linux命令kill和signal
- Android Studio在打包release版本时遇到国际化的问题
- Http ---- 协议中的各种长度限制总结