From 1761e366c9d5feafcd7e80d71fbeee9628f039e8 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Sat, 2 Jul 2022 15:00:35 +0200 Subject: [PATCH] Embed m2e lifecycle-mapping-metadata in Tycho plug-ins 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 https://github.com/eclipse/tycho/issues/945 --- RELEASE_NOTES.md | 5 ++++ .../m2e/lifecycle-mapping-metadata.xml | 16 +++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 17 ++++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 15 ++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 15 ++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 15 ++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 15 ++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 15 ++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 15 ++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 17 ++++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 16 +++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 15 ++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 16 +++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 20 ++++++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 19 +++++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 20 ++++++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 23 +++++++++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 17 ++++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 17 ++++++++++++++ .../m2e/lifecycle-mapping-metadata.xml | 16 +++++++++++++ 20 files changed, 324 insertions(+) create mode 100644 target-platform-configuration/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-compiler-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-ds-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-extras/target-platform-validation-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-extras/tycho-custom-bundle-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-extras/tycho-dependency-tools-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-extras/tycho-document-bundle-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-extras/tycho-eclipserun-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-extras/tycho-p2-extras-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-extras/tycho-version-bump-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-gpg-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-p2/tycho-p2-director-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-p2/tycho-p2-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-p2/tycho-p2-publisher-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-p2/tycho-p2-repository-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-packaging-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-release/tycho-versions-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-source-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml create mode 100644 tycho-surefire/tycho-surefire-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index cd2935cb0d..ec101dbc00 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -4,6 +4,11 @@ This page describes the noteworthy improvements provided by each release of Ecli ## 3.0.0 (under development) +### Eclipse M2E lifecycle-mapping metadata included + +All Tycho plugins are now shipped with embedded M2E lifecycle-mapping-metadata files. +Therefore M2E now knows by default how to handle them and it is not necessary anymore to install any connector (usually `org.sonatype.tycho.m2e` was used) for them. + ### Support for BND in tycho-build extension (aka pomless builds) The Tycho Build Extension (aka pomless build) now detects bnd.bnd files in the root of a pomless bundle and automatically generates an appropriate maven execution automatically. diff --git a/target-platform-configuration/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/target-platform-configuration/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..1b4232b39c --- /dev/null +++ b/target-platform-configuration/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,16 @@ + + + + + + + target-platform + target-platform-configuration + + + + + + + + diff --git a/tycho-compiler-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-compiler-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..12c30abc19 --- /dev/null +++ b/tycho-compiler-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,17 @@ + + + + + + + validate-classpath + testCompile + compile + + + + + + + + diff --git a/tycho-ds-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-ds-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..f7f6950f89 --- /dev/null +++ b/tycho-ds-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,15 @@ + + + + + + + declarative-services + + + + + + + + diff --git a/tycho-extras/target-platform-validation-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-extras/target-platform-validation-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..3ca305e253 --- /dev/null +++ b/tycho-extras/target-platform-validation-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,15 @@ + + + + + + + validate-target-platform + + + + + + + + diff --git a/tycho-extras/tycho-custom-bundle-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-extras/tycho-custom-bundle-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..8c7c5fa3b7 --- /dev/null +++ b/tycho-extras/tycho-custom-bundle-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,15 @@ + + + + + + + custom-bundle + + + + + + + + diff --git a/tycho-extras/tycho-dependency-tools-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-extras/tycho-dependency-tools-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..e4e97ee771 --- /dev/null +++ b/tycho-extras/tycho-dependency-tools-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,15 @@ + + + + + + + list-dependencies + + + + + + + + diff --git a/tycho-extras/tycho-document-bundle-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-extras/tycho-document-bundle-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..4d6f3f50e8 --- /dev/null +++ b/tycho-extras/tycho-document-bundle-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,15 @@ + + + + + + + javadoc + + + + + + + + diff --git a/tycho-extras/tycho-eclipserun-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-extras/tycho-eclipserun-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..2088d1f1e6 --- /dev/null +++ b/tycho-extras/tycho-eclipserun-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,15 @@ + + + + + + + eclipse-run + + + + + + + + diff --git a/tycho-extras/tycho-p2-extras-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-extras/tycho-p2-extras-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..ee20a00f5e --- /dev/null +++ b/tycho-extras/tycho-p2-extras-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,17 @@ + + + + + + + mirror + publish-features-and-bundles + compare-version-with-baselines + + + + + + + + diff --git a/tycho-extras/tycho-version-bump-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-extras/tycho-version-bump-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..bca8c967f1 --- /dev/null +++ b/tycho-extras/tycho-version-bump-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,16 @@ + + + + + + + update-target + update-product + + + + + + + + diff --git a/tycho-gpg-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-gpg-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..ffecfb0da7 --- /dev/null +++ b/tycho-gpg-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,15 @@ + + + + + + + sign-p2-artifacts + + + + + + + + diff --git a/tycho-p2/tycho-p2-director-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-p2/tycho-p2-director-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..0365f477af --- /dev/null +++ b/tycho-p2/tycho-p2-director-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,16 @@ + + + + + + + archive-products + materialize-products + + + + + + + + diff --git a/tycho-p2/tycho-p2-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-p2/tycho-p2-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..1e28766d64 --- /dev/null +++ b/tycho-p2/tycho-p2-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,20 @@ + + + + + + + update-site-p2-metadata + p2-metadata + category-p2-metadata + update-local-index + feature-p2-metadata + p2-metadata-default + + + + + + + + diff --git a/tycho-p2/tycho-p2-publisher-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-p2/tycho-p2-publisher-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..1eaf5ec1f4 --- /dev/null +++ b/tycho-p2/tycho-p2-publisher-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,19 @@ + + + + + + + attach-artifacts + publish-ee-profile + publish-osgi-ee + publish-products + publish-categories + + + + + + + + diff --git a/tycho-p2/tycho-p2-repository-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-p2/tycho-p2-repository-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..7f6251abe0 --- /dev/null +++ b/tycho-p2/tycho-p2-repository-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,20 @@ + + + + + + + archive-repository + assemble-maven-repository + fix-artifacts-metadata + verify-repository + remap-artifacts-to-m2-repo + assemble-repository + + + + + + + + diff --git a/tycho-packaging-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-packaging-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..273bddf20c --- /dev/null +++ b/tycho-packaging-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,23 @@ + + + + + + + build-qualifier-aggregator + package-plugin + package-feature + validate-version + build-qualifier + validate-id + package-iu + update-consumer-pom + package-target-definition + + + + + + + + diff --git a/tycho-release/tycho-versions-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-release/tycho-versions-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..4cef47e016 --- /dev/null +++ b/tycho-release/tycho-versions-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,17 @@ + + + + + + + update-pom + update-eclipse-metadata + set-version + + + + + + + + diff --git a/tycho-source-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-source-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..c6a525aa8d --- /dev/null +++ b/tycho-source-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,17 @@ + + + + + + + plugin-source + feature-source + generate-pde-source-header + + + + + + + + diff --git a/tycho-surefire/tycho-surefire-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/tycho-surefire/tycho-surefire-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml new file mode 100644 index 0000000000..b671b5f3ec --- /dev/null +++ b/tycho-surefire/tycho-surefire-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -0,0 +1,16 @@ + + + + + + + integration-test + test + + + + + + + +