Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugi

报:
Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-antrun-plugin:1.3:run (execution: default, phase: compile)
错误信息格式为 groupId:artifactId:version:goal

在</plugins>后添加
Java代码 复制代码  收藏代码
  1. <pluginManagement>   
  2.             <plugins>   
  3.                 <!--This plugin's configuration is used to store Eclipse m2e settings    
  4.                     only. It has no influence on the Maven build itself. -->   
  5.                 <plugin>   
  6.                     <groupId>org.eclipse.m2e</groupId>   
  7.                     <artifactId>lifecycle-mapping</artifactId>   
  8.                     <version>1.0.0</version>   
  9.                     <configuration>   
  10.                         <lifecycleMappingMetadata>   
  11.                             <pluginExecutions>   
  12.                                 <pluginExecution>   
  13.                                     <pluginExecutionFilter>   
  14.                                         <groupId>   
  15.                                             org.apache.maven.plugins   
  16.                                         </groupId>   
  17.                                         <artifactId>   
  18.                                             maven-antrun-plugin   
  19.                                         </artifactId>   
  20.                                         <versionRange>   
  21.                                             [1.3,)   
  22.                                         </versionRange>   
  23.                                         <goals>   
  24.                                             <goal>run</goal>   
  25.                                         </goals>   
  26.                                     </pluginExecutionFilter>   
  27.                                     <action>   
  28.                                         <ignore></ignore>   
  29.                                     </action>   
  30.                                 </pluginExecution>   
  31.                             </pluginExecutions>   
  32.                         </lifecycleMappingMetadata>   
  33.                     </configuration>   
  34.                 </plugin>   
  35.             </plugins>   
  36.         </pluginManagement>  

另参见:http://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值