Search code examples
eclipsemavenmaven-3m2eclipseeclipse-wtp

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

Solution

  • 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.