Eclipse has an error at one of its pom file prompts as follows:
Plugin execution not covered by lifecycle Configuration:org.codehaus.mojo:aspectj-maven-plugin:1.3.1:compile ( Execution:default, Phase:compile)
This means that M2E does not define the plug-in when it executes MAVEN lifecycle management, so it prompts for an error, in fact M2E provides an extension mechanism, and we can eliminate this error tip by doing the following:
1. Enter the Window->preferences->maven configuration, enter the lifecycle mapping settings, the following figure:
as you can see from the image above, the file name of the M2E management maven lifecycle is lifecycle-mapping-metadata.xml, and the path to the file is stored
2. Next we have to go to the appropriate path to modify the Lifecycle-mapping-metadata.xml file, but we will find that this file in the image indicated in the location does not exist, then this time Locate the file in the Org.eclipse.m2e.lifecyclemapping.defaults_xxxxxx.jar file under plugins under the installation directory of Eclipse (pictured below):
by decompressing the software you can find that the Lifecycle-mapping-metadata.xml file is indeed in the jar package, extract it from the jar package and place it under 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 completion of the modification, Project right key-->maven-->update ... Can be.
Note:
1, error message:
Description Resource Path Location Type
Plugin execution not covered by lifecycle Configuration:org.codehaus.mojo:aspectj-maven-plugin:1.3.1:compile ( Execution:default, Phase:compile) Pom.xml/cas-server-integration-jboss line Maven Project build Lifecycle Mapping Pr Oblem
2,xml Add Content
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<versionrange>[1.3.1,) </versionRange>
<goals>
<goal>compile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>