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