Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed m2e lifecycle-mapping-metadata in Tycho plug-ins #1105

Merged
merged 1 commit into from
Jul 3, 2022

Conversation

HannesWell
Copy link
Member

The embedded metadata simply advice M2E to ignore executions of each Tycho Mojo.
In the Eclipse IDE Plug-in development support is PDE's duty and therefore Tycho Plug-ins have nothing to do.
Because the metadata embedded in a plugin are considered with lowest priority, a user can simply overrule this decision, if it is desired to execute a Tycho Plugin within the IDE.

Providing mappings for all Plug-ins is probably not necessary for most cases, but since theoretically one can explicitly bind a plug-in to any phase, it can also appear in a phase M2E is interested in (i.e. M2E is interested in all phases from validate until before test).

I used the simple app posted to eclipse-m2e/m2e-core#830 to generate all mappings, so they should be complete (I verified that manually).

Fixes #945

@HannesWell HannesWell requested a review from laeubi July 2, 2022 20:33
@github-actions
Copy link

github-actions bot commented Jul 2, 2022

Unit Test Results

270 tests   266 ✔️  51m 9s ⏱️
156 suites      4 💤
156 files        0

Results for commit 1761e36.

The embedded metadata simply advice M2E to ignore executions of each
Tycho Mojo.
In the Eclipse IDE Plug-in development support is PDE's duty and
therefore Tycho Plug-ins have nothing to do.
Because the metadata embedded in a plugin are considered with lowest
priority, a user can simply overrule this decision, if it is desired to
execute a Tycho Plugin within the IDE.

Fixes eclipse-tycho#945
@HannesWell
Copy link
Member Author

Thank you Christoph for your approval.

I just updated the xml files to use two-spaces instead of tabs for indentation, which is the default for the generated Xpp3-writers (I had changed that locally and forgot to revert that). For consistency I think we should stick with that default.
However for this white-space change it is not necessary to wait for a full build.
-> Merging

@HannesWell HannesWell merged commit f3bc508 into eclipse-tycho:master Jul 3, 2022
@HannesWell HannesWell deleted the m2eLifecycleMappings branch July 3, 2022 06:10
HannesWell added a commit to HannesWell/tycho that referenced this pull request Jul 3, 2022
The embedded metadata simply advice M2E to ignore executions of each
Tycho Mojo.
In the Eclipse IDE Plug-in development support is PDE's duty and
therefore Tycho Plug-ins have nothing to do.
Because the metadata embedded in a plugin are considered with lowest
priority, a user can simply overrule this decision, if it is desired to
execute a Tycho Plugin within the IDE.

Fixes eclipse-tycho#945

Backport of commit f3bc508, added via
PR eclipse-tycho#1105
HannesWell added a commit that referenced this pull request Jul 3, 2022
The embedded metadata simply advice M2E to ignore executions of each
Tycho Mojo.
In the Eclipse IDE Plug-in development support is PDE's duty and
therefore Tycho Plug-ins have nothing to do.
Because the metadata embedded in a plugin are considered with lowest
priority, a user can simply overrule this decision, if it is desired to
execute a Tycho Plugin within the IDE.

Fixes #945

Backport of commit f3bc508, added via
PR #1105
@HannesWell HannesWell added this to the 2.7.4 milestone Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

m2eclipse complains about unknown tycho executions
2 participants