From a467b14aa5d8a4d14c9cd97832f0c7089c148ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sat, 1 Jun 2024 16:48:53 +0200 Subject: [PATCH] Extract maven-resolver-api from the embedded runtime bundle Currently we embed the maven-resolver-api jar into m2e, but the API itself is already a bundle an we should consume it as such so we can: 1) update it independently 2) make it reusable by others without require the full runtime 3) cut down the size of the runtime bundle --- org.eclipse.m2e.feature/feature.xml | 2 +- org.eclipse.m2e.maven.runtime/pom.xml | 7 +++-- .../META-INF/MANIFEST.MF | 4 +-- pom.xml | 2 +- target-platform/target-platform.target | 31 ++++++++++++------- 5 files changed, 28 insertions(+), 18 deletions(-) diff --git a/org.eclipse.m2e.feature/feature.xml b/org.eclipse.m2e.feature/feature.xml index 78f6c1631a..123886e332 100644 --- a/org.eclipse.m2e.feature/feature.xml +++ b/org.eclipse.m2e.feature/feature.xml @@ -2,7 +2,7 @@ org.eclipse.m2e.maven.runtime - 3.9.700-SNAPSHOT + 3.9.701-SNAPSHOT jar M2E Embedded Maven Runtime (includes Incubating components) @@ -201,7 +201,6 @@ org.apache.maven.*;provider=m2e;mandatory:=provider,\ org.codehaus.plexus.*;provider=m2e;mandatory:=provider,\ org.sonatype.plexus.*;provider=m2e;mandatory:=provider,\ - org.eclipse.aether.*;provider=m2e;mandatory:=provider;version=${maven-resolver.version},\ com.google.inject.*;provider=m2e;mandatory:=provider,\ org.apache.maven.wagon.*;provider=m2e;mandatory:=provider,\ org.eclipse.sisu.*;provider=m2e;mandatory:=provider;version=${maven-resolver.version} @@ -214,7 +213,8 @@ org.apache.commons.codec*, \ org.apache.commons.lang3* Require-Bundle: \ - com.google.guava;bundle-version="32.0.1" + com.google.guava;bundle-version="32.0.1", \ + org.apache.maven.resolver.api;bundle-version="${maven-resolver.version}";visibility:=reexport -failok: true -nouses: true @@ -316,6 +316,7 @@ generate-resources ${project.basedir}/${jars.directory} + maven-resolver-api diff --git a/org.eclipse.m2e.tests.common/META-INF/MANIFEST.MF b/org.eclipse.m2e.tests.common/META-INF/MANIFEST.MF index f02dc6f5a7..300a983f20 100644 --- a/org.eclipse.m2e.tests.common/META-INF/MANIFEST.MF +++ b/org.eclipse.m2e.tests.common/META-INF/MANIFEST.MF @@ -3,9 +3,9 @@ Bundle-ManifestVersion: 2 Bundle-Name: M2E Testing Helpers Bundle-SymbolicName: org.eclipse.m2e.tests.common;singleton:=true Bundle-Version: 2.0.7.qualifier -Require-Bundle: org.junit;bundle-version="4.0.0", +Require-Bundle: org.eclipse.m2e.maven.runtime;bundle-version="[3.8.6,4.0.0)", + org.junit;bundle-version="4.0.0", org.eclipse.m2e.core;bundle-version="[2.0.0,3.0.0)", - org.eclipse.m2e.maven.runtime;bundle-version="[3.8.6,4.0.0)", org.eclipse.m2e.jdt;bundle-version="[2.0.0,3.0.0)", org.eclipse.core.runtime, org.eclipse.jdt.core, diff --git a/pom.xml b/pom.xml index 1dffac113d..bd8365883a 100644 --- a/pom.xml +++ b/pom.xml @@ -102,7 +102,7 @@ org.eclipse.m2e org.eclipse.m2e.maven.runtime - 3.9.700-SNAPSHOT + 3.9.701-SNAPSHOT diff --git a/target-platform/target-platform.target b/target-platform/target-platform.target index 245489dd2c..0e27d20fe2 100644 --- a/target-platform/target-platform.target +++ b/target-platform/target-platform.target @@ -32,15 +32,6 @@ - - - - - - - - - @@ -101,8 +92,7 @@ - - + io.takari.m2e.workspace @@ -169,5 +159,24 @@ Import-Package: !* ]]> + + + + org.apache.maven.resolver + maven-resolver-api + 1.9.20 + jar + + + + + + + + + + + + \ No newline at end of file