解决Maven报Plugin execution not covered by lifecycle configuration
是因为maven中没有对该plugin
{Eclipse_folder}/plugins/org.eclipse.m2e.lifecyclemapping.defaults_1.8.2.20171007-0217.jar
解压lifecycle-mapping-metadata.xml到workspace/.metadata/.plugins/org.eclipse.m2e.core/lifecycle-mapping-metadata.xml
<pluginExecutions></pluginExecutions>添加对应plugin
最后eclipse-maven-lifecycle-mapping点击 ”Reload workspace lifecycle mappings metadata“按钮
如
<pluginExecution> <pluginExecutionFilter> <groupId>org.apache.avro</groupId> <artifactId>avro-maven-plugin</artifactId> <versionRange>[1.8.2,)</versionRange> <goals> <goal>idl-protocol</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.avro</groupId> <artifactId>avro-maven-plugin</artifactId> <versionRange>[1.8.2,)</versionRange> <goals> <goal>protocol</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.avro</groupId> <artifactId>avro-maven-plugin</artifactId> <versionRange>[1.8.2,)</versionRange> <goals> <goal>schema</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <versionRange>[2.17,)</versionRange> <goals> <goal>check</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <versionRange>[3.8,)</versionRange> <goals> <goal>check</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution>