Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get rid of the warning m2eclipse "goals inplace, exploded, manifest are ignored by m2e"

How can I get rid of the following m2eclipse warning?

maven-war-plugin goals "inplace", "exploded", "manifest" are ignored by m2e
like image 968
Christopher Klewes Avatar asked Apr 30 '12 12:04

Christopher Klewes


4 Answers

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>
like image 131
lehphyro Avatar answered Oct 19 '22 07:10

lehphyro


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.

like image 38
Andy Dennie Avatar answered Oct 19 '22 06:10

Andy Dennie


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.

like image 30
user944849 Avatar answered Oct 19 '22 05:10

user944849


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.

like image 40
The Gilbert Arenas Dagger Avatar answered Oct 19 '22 07:10

The Gilbert Arenas Dagger