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:
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.
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