Plugin execution not covered by lifecycle configuration:org.codehaus.mojo:aspectj-maven-plugin:1.3.

Source: Internet
Author: User

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>

 

 

 

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.