如何摆脱以下m2eclipse警告?
maven-war-plugin goals "inplace", "exploded", "manifest" are ignored by m2e
最佳答案
据我所知,此警告是从m2e-wtp发出的,它提供了一组与Eclipse Web Tools Project(WTP)一起使用的m2e连接器。
m2e-wtp包含一个 lifecycle-mapping-metadata.xml
文件,该文件包含:
<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>
因此,除了(1)停止使用m2e-wtp或(2)降级到m2e-wtp的0.14版本之外,我认为没有其他方法可以抑制此警告,因为该警告的added为0.15。
关于eclipse - 我如何摆脱警告m2eclipse "goals inplace, exploded, manifest are ignored by m2e",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10384109/