Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Can't get lifecyvle mapping working for maven-enforcer-plugin

I'm deriving from a parent pom that contains the following plug-in definition for the maven-enforcer-plugin plug-in.

<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>display-info</goal>
</goals>
</execution>
</executions>
</plugin>

Since the Quickfix to ignore the plug-in does not work (https://bugs.eclipse.org/bugs/show_bug.cgi?id=350443) I wanted to edit the pom manually, but the trick did not work, the error marker is still there.

Any ideas?

Here is the 'ignore' pom section:

<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
                ...
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<versionRange>[1.0,)</versionRange>
<goals>
<goal>display-info</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
                ...




Back to the top