Skip to main content

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

m2e is confused by two identical <pluginExecution/> elements matching
enforce-plugin. everything works as expected when I remove duplicate
mapping. I've opened a bugreport to track poor handling of lifecycle
mapping configuration problems.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=350565

--
Regards,
Igor

On 11-06-28 2:00 PM, Ullrich Hafner wrote:
The pom files are attached.

1 jenkins-pom < 2 analysis-pom < 3 analysis-core-pom

In 1 the enforcer plug-in is defined.
In 2 the lifecycle ignores are defined.
In 3 the m2e errors are reported (no errors are shown for 2 in the
workspace)

Ulli

On 06/28/2011 11:46 AM, Igor Fedorenko wrote:
I don't see anything obviously wrong with the snippet you posted. Can
you show complete pom.xml?

--
Regards,
Igor

On 11-06-28 1:30 PM, Ullrich Hafner wrote:
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>
...

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top