In the POM configuration maven Plugin hint error "Plugin execution not covered by lifecycle configuration" solution

Source: Internet
Author: User

An error in Eclipse's tip in its pom file is as follows:

Plugin execution not covered by lifecycle Configuration:org.apache.maven.plugins:maven-compiler-plugin:3.1: Compile (Execution:default-compile, phase:compile)

This means that M2E does not define the plug-in when it executes the MAVEN lifecycle management, so there is a hint of an error, in fact M2E provides an extension mechanism, and we can eliminate this error message by doing the following:

1. Enter the Window->preferences->maven configuration and enter the lifecycle mapping settings, such as:

As you can see, the file name for the M2E management maven lifecycle is lifecycle-mapping-metadata.xml, and the path to which it is stored

2. Next we will go to the corresponding path to modify the Lifecycle-mapping-metadata.xml file, but will find that the file in the location of the hint does not exist, then this time

Locate the file (for example) in the Org.eclipse.m2e.lifecyclemapping.defaults_xxxxxx.jar file under plugins in the installation directory of Eclipse:

By extracting the software, you can discover that the Lifecycle-mapping-metadata.xml file is indeed in the jar package, extracting it from the jar package and placing it in the path shown in the previous illustration.

3. Open the Lifecycle-mapping-metadata.xml file and add the unrecognized plugin to the file:

4. After the modification is complete, the "Update Maven projects on startup" option on the M2E configuration will be ticked and the eclipse can be removed to eliminate the error.

In the POM configuration maven Plugin hint error "Plugin execution not covered by lifecycle configuration" solution

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.