maven项目构建出现Unknown lifecycle phase "build".提示解决方法
2014-11-25 17:27
756 查看
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building FastDFS Java Client 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.177 s
[INFO] Finished at: 2014-11-25T17:13:08+08:00
[INFO] Final Memory: 5M/110M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "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/M***EN/LifecyclePhaseNotFoundException
原因是:eclipse运行maven工程中命名输入为build install 错误了
正确解决办法:
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building FastDFS Java Client 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.177 s
[INFO] Finished at: 2014-11-25T17:13:08+08:00
[INFO] Final Memory: 5M/110M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "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/M***EN/LifecyclePhaseNotFoundException
原因是:eclipse运行maven工程中命名输入为build install 错误了
正确解决办法:
相关文章推荐
- Maven编译报错 Unknown lifecycle phase "mvn" 解决办法
- Jar包冲突解决方法 Unknown lifecycle phase "mvn" Eclipse中执行maven命令
- 解决在m2eclipse中执行mvn package命令出现的Unknown lifecycle phase "mvn".问题
- Maven导入项目出现类似"Cannot read lifecycle ..invalid END header "问题的解决办法
- 我的maven:Unknown lifecycle phase "complile"报错的解决办法
- maven导入项目时出现“Cannot read lifecycle mapping metadata …… invalid END header (bad central directory offset)pom”错误的解决方法
- 项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- jenkins 构建maven工程--Unknown lifecycle phase "clean"
- 【Maven】Unknown lifecycle phase "build"
- Maven编译报错 Unknown lifecycle phase "mvn" 解决办法
- vs上出现"未能加载项目文件,根级别上的数据无效.Microsoft.WinFx.targets"的解决方法
- VS调试项目出现"访问IIS元数据库失败"的267904错误解决方法
- vs2005 新建项目时出现"automation服务器不能创建对象"解决方法.
- 执行第一maven用例出错:Unknown lifecycle phase "omplile".不知如何解决
- 关于小红伞免费V9简体中文版、v10 出现“SSL"提示不能安装的解决方法
- Android导入项目出现“R cannot be resolved to a variable"错误的解决方法
- vs2003 提示"确保已安装项目类型(.vcproj)的应用程序" 的解决方法
- MAVEN 报错系列--(一) Unknown lifecycle phase "mvn".
- Unknown lifecycle phase "mybatis-generator-generate"
- win 7 删除了用户文件夹后出现的&quot;你已使用临时配置文件登录&quot;提示的解决方法