An error occurred while executing the first Maven case: Unknown lifecycle phase "complile ".

Source: Internet
Author: User

The following is a detailed error message:

[Error] unknown lifecycle phase "complile ". you must specify a valid lifecycle p hase or a goal in the format: Or: [:]:. available lifecycle phases are: validat E, initialize, generate-sources, process-sources, generate-resources, process-re sources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-Clas SES, test, prepare-package, package, pre-integration-test, integration-test, pos t-integration-test, verify, install, deploy, pre-clean, clean, post-clean, Pre-s ite, site, post-site, site-deploy. -> [help 1]

 

Solution: https://cwiki.apache.org/confluence/display/MAVEN/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:

  1. Invoke a lifecycle phase, e.g.

    MVN installThis runs the lifecycle phaseInstallAnd all its predecessor phases likeCompileAndTest. 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.

     

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.