Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal
2016-07-04 13:37
585 查看
用Eclipse集成的Maven打包项目时按照网上所述输入 mvn clean package遇到
Unknown lifecycle phase "mvn". 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
原来是Eclipse已经集成Maven,所以就不需要mvn命令了
在Configuration中输入clean package打包成功
Unknown lifecycle phase "mvn". 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
原来是Eclipse已经集成Maven,所以就不需要mvn命令了
在Configuration中输入clean package打包成功
相关文章推荐
- css文本
- Ajax与Servlet的数据交互
- JQuery easyui里面的自动完成autocomplete插件
- 用js实现在加载完成一个页面后自动执行一个方法
- Light OJ 1201 - A Perfect Murder
- 利用OpenCV的convexHull和convexityDefects做凸包(凸壳)检测及凸包(凸壳)的缺陷检测
- HTML5 Canvas宇宙星云动画特效
- Servlet跳转到Jsp的指定div
- 上下班的判断(不同季度不同时间段)
- List,Map,数组型Json生产以及解析
- js == 与 === 的区别
- jQuery插件-ajaxFileUpload
- jQuery 2.0.3 源码分析 Deferred(最细的实现剖析,带图)
- 表单提交,submit js校验
- 24. Swap Nodes in Pairs
- frame和iframe标签的区别
- json格式的javascript对象用法分析
- bower安装库出现的问题解决办法
- 【腾讯bugly干货分享】HTML 5 视频直播一站式扫盲
- swiper的基础使用(十四)