解決Maven報Plugin execution not covered by lifecycle configuration
阿新 • • 發佈:2018-05-12
bsp meta red protocol ips ada div pin AD
是因為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>
解決Maven報Plugin execution not covered by lifecycle configuration