Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Tycho 2.7.4: Can't get embedded M2E lifecycle-mapping metadata to work

Hi Andreas,
the org.sontype.tycho.m2e connector also provided a mapping for the 'clean' goal you mentioned (see [1]). Actually I would say that this was actually out of the scope of a 'Tycho'-connector, but that's how things were done.
That's probably the reason why you are still prompted to install it.
It should be the responsibility of m2e to handle a so much standard-goal like the 'clean' goal and I think M2E already does it (it should be executed on project/workspace clean).
But it looks like the lifecycle-mapping-metadata registry of M2E has to be thought that M2E is already handling that goal.
Can you please report that to M2E [2]?
Regarding your second problem, do you have the 'org.eclipse.m2e.pde.feature' installed?
But I'm not sure if I understand your problem exactly. Tycho is to build Eclipse-Plugin projects. Usually they have, among others, their .project file under version control. And then PDE handling them.
o.e.m2e.pde handles Maven Projects that use the 'bnd-maven-plugin' or the Apache 'maven-bundle-plugin' to generate their OSGi Manifest. m2e.pde runs the manifest generation and then hands them off to PDE, so that they are treated like the usual Eclipse Plug-in project created by PDE.
But if there is a problem it is likely more a M2E issue as well, because as you said the Tycho goals are marked as ignored thus the embedded lifecycle-mapping-metadata are working as expected.
[2] -
Gesendet: Donnerstag, 07. Juli 2022 um 12:50 Uhr
Von: "Andreas Sewe" <sewe@xxxxxxx>
An: "Tycho developers list" <tycho-dev@xxxxxxxxxxx>
Betreff: [tycho-dev] Tycho 2.7.4: Can't get embedded M2E lifecycle-mapping metadata to work
Hi all,

I am currently giving Tycho 2.7.4 a spin, but unfortunately cannot get
the embedded M2E lifecycle-mapping metadata [1] to work.

I am facing two issues, using Eclipse 2022-06 for RCP and RAP Developers
with a project that was previously on Tycho 2.7.2:

- When importing my multi-module project (Import > Maven > Existing
Maven Projects) I am still prompted to install the "Tycho Configuration
bridges" due the the maven-clean-plugin:3.1.0:clean execution not being
covered. As I assume that I do not have to install the bridge anymore, I
cancelled the wizard and - for good measure - performed a manual Maven >
Update Project on all imported projects.

- Unfortunately, all projects thus imported only have the "Maven Nature"
among the project natures; in other words, they are not detected as
plug-in projects (they don't even have JRE on their buildpath - as they
simply don't have a build path).

This seems like a bug to me.

FWIW, in the Maven > Lifecycle Mapping project properties of my
eclipse-plugin project, the various tycho-*-plugin executions are listed
as "ignored"; the only two non-ignored executions are
resources:resources and resources:testResources.

Am I fundamentally misunderstanding how the embedded lifecycle metadata
is supposed to work of should I file a bug report?

Best wishes,



Dr. Andreas Sewe | sewe@xxxxxxx | +49 152 56342856
CQSE GmbH | Centa-Hafenbraedl-Strasse 59 | 81249 Muenchen |
Amtsgericht Muenchen | HRB 177678 | GF: F. Deissenboeck, M. Feilkas |
tycho-dev mailing list
To unsubscribe from this list, visit

Back to the top