How can I get rid of the following m2eclipse warning?
maven-war-plugin goals "inplace", "exploded", "manifest" are ignored by m2e
The following snippet worked for me:
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<versionRange>[1.0,)</versionRange>
<goals>
<goal>manifest</goal> <!-- put the goal you're executing in your pom.xml file -->
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
As far as I can tell, this warning is being emitted from m2e-wtp, which provides a set of m2e connectors that work with Eclipse Web Tools Project (WTP).
m2e-wtp includes a lifecycle-mapping-metadata.xml
file that contains:
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<versionRange>[1.0,)</versionRange>
<goals>
<goal>inplace</goal>
<goal>exploded</goal>
<goal>manifest</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore>
<message>maven-war-plugin goals "inplace", "exploded", "manifest" are ignored by m2e</message>
</ignore>
</action>
</pluginExecution>
</pluginExecutions>
Thus, I don't think there is a way to suppress this warning, other than to (1) stop using m2e-wtp or (2) downgrade to version 0.14 of m2e-wtp, as this warning was added in 0.15.
See if you can locate an m2e connector for the maven-war-plugin, or configure your POM to tell Eclipse to ignore it or run it anyway. Later versions of m2e may include the connector you need so upgrading the plugin may help. More details and background in this stackoverflow answer.
I actually just deleted this warning message by right-clicking it within the Problems View in Eclipse and it hasn't come back.
Updating my POM with the ignore action, as lehphyro did, didn't work for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With