Tuesday, March 6, 2012

Solving "Plugin execution not covered by lifecycle configuration"

This problem appear because new of handling plugin execution was introduces, to increase the performance and etc. Because of this you should add at plugins section of pom.xml file the following plugin:

 <plugin>  
   <groupId>org.eclipse.m2e</groupId>  
   <artifactId>lifecycle-mapping</artifactId>  
   <version>1.0.0</version>  
   <configuration>  
     <lifecycleMappingMetadata>  
       <pluginExecutions>  
         <pluginExecution>  
           <pluginExecutionFilter>  
             <groupId>com.google.code.maven-svn-revision-number-plugin</groupId>  
             <artifactId>maven-svn-revision-number-plugin</artifactId>  
             <versionRange>1.6</versionRange>  
             <goals>  
               <goal>revision</goal>  
             </goals>  
           </pluginExecutionFilter>  
           <action>  
             <ignore />  
           </action>  
         </pluginExecution>  
       </pluginExecutions>  
     </lifecycleMappingMetadata>  
   </configuration>  
 </plugin>  


From the configuration of the plugin which generate conflict, remove the section execution.

No comments:

Post a Comment