Plugin execution not covered by lifecycle configuration:aspectj-maven-plugin:1.8

Source: Internet
Author: User

Phenomenon:

Eclipse Import existing Maven project, (parent project contains many sub-projects), pom.xml error for subproject:

Plugin execution not covered by lifecycle Configuration:org.codehaus.mojo:aspectj-maven-plugin:1.8:compile

(Execution:default,phase:compile)

Workaround One:

Enclose all the plugin tags inside a <pluginManagement> tag, like this:

<build>    <pluginManagement>        <plugins> <plugin> ... </plugin> <plugin> ... </plugin> .... </plugins> </pluginManagement></build>
尝试该方法后:在pom.xml文件中前部分的<parent>标签处报同样的错误,无法解决。
解决方法二:

Quickest-solve this is:

    1. Use quick-fix on the error in pom.xml and select Permanently mark goal run in pom.xml as ignored in Eclipse build -This would generate the required boiler Plate code for you.

    2. After, just replace <ignore/> the or <ignore></ignore>tag with <execute/> tag in the generated Configuration and you ' re-done:

  <action>      <execute/>  </action>

尝试该方法后,红叉消失。
解决方法三:
配置eclipse
Window-perferences-maven-lifecycle Mapping
Save the following content:
<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
<pluginExecutions>

<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<goals>
<goal>compile</goal>
</goals>
<versionrange>[1.3,) </versionRange>
</pluginExecutionFilter>
< action>
<ignore/>
</ Action>
</pluginExecution>

</pluginExecutions>
</lifecycleMappingMetadata>
Remember to click the "Reload Workspace Lifecycle Mappings Metadata" button. Refer to:http://stackoverflow.com/questions/6352208/ how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprinhttp://blog.csdn.net/xxd851116/ article/details/25197373
 

Plugin execution not covered by lifecycle configuration:aspectj-maven-plugin:1.8

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.