Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Do you want a test case for possible problems with lifecycle management?

I am relatively new to maven/m2e and this forum but I came across this myself a while back.  From what I recall it is something to do with a recent-ish change in m2e that means all plugins have to have an associated m2e lifecycle mapping before they can be executed.

It maybe that you need to provide it either yourself or more likely it sounds by installing m2e extra packages from an update site or from the m2e marketplace.

I am sure others will be more precise but it is something along those lines.

HTH
_Paul

-----Original Message-----
From: m2e-dev-bounces@xxxxxxxxxxx [mailto:m2e-dev-bounces@xxxxxxxxxxx] On Behalf Of Benson Margulies
Sent: 19 May 2011 14:38
To: Maven Integration for Eclipse developers mailing list
Subject: [m2e-dev] Do you want a test case for possible problems with lifecycle management?

Folks,

So, I'm in the process of debugging the pmd and checkstyle support modules.

Today, I installed my current snapshots into a workspace and imported
some projects that they should have covered. Things went wrong. I'm
sure that some of them belong to me, but ...

So, in spite of the fact that the plugins seemed to work on a trivial
case, Eclipse complained that the goals were not supported, and
offered to exclude them in the parent POM in the initial dialog. I
told it to go ahead.

Nothing happened. The POM didn't get edited. Next, I got a marker for
each POM with a description of 'null' attached to the 'parent' element
of the pom.

Then I got a bunch of markers like:


Description	Resource	Path	Location	Type
Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-checkstyle-plugin:2.6:checkstyle
(execution: validate, phase: validate)	pom.xml	/api	line 7	Maven
Project Build Lifecycle Mapping Problem


These offer a quick fix of excluding in the POM (but not in the parent
POM). If I take that option, no POM edit actually happens.

I could tell you where to find the obviously not quite working eclipse
plugins in github, and I bet I can find you some open source aggregate
project that has the same behaviors. Would that be helpful?
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev



Back to the top