Christopher Klewes
Christopher Klewes

Reputation: 11435

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

Upvotes: 6

Views: 5712

Answers (4)

The Gilbert Arenas Dagger
The Gilbert Arenas Dagger

Reputation: 12741

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.

Upvotes: 1

lehphyro
lehphyro

Reputation: 201

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>

Upvotes: 3

Andy Dennie
Andy Dennie

Reputation: 6062

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.

Upvotes: 1

user944849
user944849

Reputation: 14961

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.

Upvotes: 1

Related Questions