Skip to content

Instantly share code, notes, and snippets.

@leonelag
Forked from anonymous/pom.xml
Created March 19, 2012 14:30
Show Gist options
  • Save leonelag/2114307 to your computer and use it in GitHub Desktop.
Save leonelag/2114307 to your computer and use it in GitHub Desktop.
Prevent m2e error message: Plugin execution not covered by lifecycle configuration
<!-- http://wiki.eclipse.org/M2E_plugin_execution_not_covered#lifecycle_mapping_metadata_provided_by_maven_plugin -->
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<!-- One of these for each plugin that m2e does not understand -->
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<versionRange>[1.3,)</versionRange>
<goals><goal>run</goal></goals>
</pluginExecutionFilter>
<action><ignore /></action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<versionRange>2.2</versionRange>
<goals><goal>exploded</goal></goals>
</pluginExecutionFilter>
<action><ignore /></action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment