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

來源:互聯網
上載者:User

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.