【问题标题】:Maven Life Cycle ExceptionMaven 生命周期异常
【发布时间】:2014-08-20 06:03:20
【问题描述】:

命令提示符出现以下异常。无法解决此异常并且无法理解它。谁能解释一下出了什么问题。

C:\Projects\POC2\TestingAutomationReportingTool>mvn -s settings.xml clean
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TestingAutomationReportingTool 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.088s
[INFO] Finished at: Wed Aug 20 11:22:25 IST 2014
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "ûs". You must specify a valid lifecycle phase o
r a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artif
act-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, ini
tialize, generate-sources, process-sources, generate-resources, process-resource
s, compile, process-classes, generate-test-sources, process-test-sources, genera
te-test-resources, process-test-resources, test-compile, process-test-classes, t
est, prepare-package, package, pre-integration-test, integration-test, post-inte
gration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, p
re-clean, clean, post-clean. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase NotFoundException

【问题讨论】:

  • 你试过简单的mvn clean吗?
  • 我尝试了 mvn clean、mvn clean install、mvn eclipse:eclipse,有 settings.xml 参数,没有它。得到同样的异常。
  • 好的。请发布您的pom文件!您使用哪个 Maven 版本?
  • 感谢检查,已解决,似乎是 settings.xml 的问题

标签: java maven


【解决方案1】:

settings.xml 似乎有些问题。删除 settings.xml 的所有注释部分后问题得到解决

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-12-25
    • 1970-01-01
    • 1970-01-01
    • 2018-12-24
    • 2014-07-17
    • 2012-11-22
    • 1970-01-01
    • 2014-12-05
    相关资源
    最近更新 更多