LifecyclePhaseNotFoundException(转)

简介: This error is generated if you try to invoke a build command that Maven does not understand. In general, you have the following options to perform build steps: Invoke a lifecycle phase, e.

 

This error is generated if you try to invoke a build command that Maven does not understand. In general, you have the following options to perform build steps:

  1. Invoke a lifecycle phase, e.g.
    mvn install
    
    This runs the lifecycle phase install and all its predecessor phases like compile and test. Please see Introduction to the Build Lifecycle for more information about available lifecycle phases.
  2. Invoke a plugin goal via the plugin prefix, e.g.
    mvn compiler:compile
    
    Eventually, the plugin prefix translates to a group id and artifact id of a plugin. Maven resolves plugin prefixes by first looking at the plugins of the current project's POM and next by checking the metadata of user-defined plugin groups.
  3. Invoke a plugin goal via the versionless plugin coordinates, e.g.
    mvn org.apache.maven.plugins:maven-compiler-plugin:compile
    
    To resolve the plugin version, Maven will first check the project's POM and fallback to the latest release version of the plugin that was deployed to the configured plugin repositories.
  4. Invoke a plugin goal via the fully qualified plugin coordinates, e.g.
    mvn org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
    

You can freely mix all of these styles within a single command line.

The error described here is usually caused by typo in the command so be sure to check you specified a valid lifecycle phase.

 

https://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException

 

相关文章
linux 自带的监控系统 Cockpit 系统监控
linux 自带的监控系统 Cockpit 系统监控
162 0
写了BUG还想跑——闲鱼异常日志问题自动追踪-定位-分发机制
为了高效地发现、定位和解决预发问题,闲鱼团队研发了一套异常日志问题自动追踪-定位-分发机制。这套机制通过自动化手段,实现了异常日志的定时扫描、精准定位和自动分发,显著降低了开发和测试的成本,提高了问题解决的效率。
195 15
写了BUG还想跑——闲鱼异常日志问题自动追踪-定位-分发机制
从新手到高手:彻底掌握MySQL表死锁
通过本文的介绍,希望你能深入理解MySQL表死锁的概念、原因、检测方法及解决方案,并在实际开发中灵活应用这些知识,提升系统的稳定性和性能。
469 9
【Mac 系统】如何在office的Word中使用LaTeX公式
一个在Mac版Microsoft Word中使用LaTeX语法插入公式的间接方法,通过Pages文稿创建和编辑LaTeX公式后再复制到Word中。
540 2
jenkins学习笔记之十二:sonarqube9.9、SonarScanner4.8部署
jenkins学习笔记之十二:sonarqube9.9、SonarScanner4.8部署
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等