From 220abf33999b2208ea9d48a19a79707712550ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sun, 4 Feb 2024 12:06:57 +0100 Subject: [PATCH] Adjust maven metadata to the ones actually published to central Currently the project is configured to use the org.eclipse.equinox.p2 group id but it is actually published to org.eclipse.platform. That is both confusing and makes the metadata in p2 pointless and not allows to use local build artifacts (e.g. for Tycho). This changes the group id and configures the update-consumer-pom to create a pom that can be used in a local maven setup similar to one published on maven central. --- .gitignore | 1 + .mvn/maven.config | 1 + bundles/org.eclipse.equinox.p2.tests/pom.xml | 4 ++-- examples/pom.xml | 2 +- pom.xml | 14 +++++++++++++- 5 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 74484d40d3..4fdf5c5632 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ bin/ .META-INF_* pom.tycho .tycho-consumer-pom.xml +.flattened-pom.xml apiAnalyzer-workspace/ \ No newline at end of file diff --git a/.mvn/maven.config b/.mvn/maven.config index 8b6bb37cc3..55539b0bd9 100644 --- a/.mvn/maven.config +++ b/.mvn/maven.config @@ -1,2 +1,3 @@ -Pbuild-individual-bundles -Dtycho.surefire.deleteWorkDir=true +-Dtycho.localArtifacts=ignore diff --git a/bundles/org.eclipse.equinox.p2.tests/pom.xml b/bundles/org.eclipse.equinox.p2.tests/pom.xml index 41df5dfeac..c9b3ebafe2 100644 --- a/bundles/org.eclipse.equinox.p2.tests/pom.xml +++ b/bundles/org.eclipse.equinox.p2.tests/pom.xml @@ -8,7 +8,7 @@ 4.0.0 - org.eclipse.equinox.p2 + org.eclipse.platform rt.equinox.p2 ${releaseVersion}${qualifier} ../../ @@ -39,7 +39,7 @@ - org.eclipse.equinox.p2 + ${project.groupId} org.eclipse.equinox.p2.reconciler 1.1.0-SNAPSHOT pom diff --git a/examples/pom.xml b/examples/pom.xml index 5cdc27872f..e5110a62c8 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.eclipse.equinox.p2 + org.eclipse.platform rt.equinox.p2 ${releaseVersion}${qualifier} ../pom.xml diff --git a/pom.xml b/pom.xml index 030bb67d15..7cbc22851f 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ ../eclipse-platform-parent - org.eclipse.equinox.p2 + org.eclipse.platform rt.equinox.p2 pom ${releaseVersion}${qualifier} @@ -128,6 +128,18 @@ + + org.eclipse.tycho + tycho-packaging-plugin + + + default-update-consumer-pom + + false + + + +