码迷,mamicode.com
首页 > 其他好文 > 详细

解决Maven报Plugin execution not covered by lifecycle configuration

时间:2018-05-12 15:11:31      阅读:2947      评论:0      收藏:0      [点我收藏+]

标签:cycle   load   defaults   avr   col   clip   protoc   cti   exec   

是因为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

标签:cycle   load   defaults   avr   col   clip   protoc   cti   exec   

原文地址:https://www.cnblogs.com/tonggc1668/p/9028612.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!