From 9df72716a74bce778b8b9f98f59020a402b2eab6 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 | 5 +-- pom.xml | 2 +- target-platform/target-platform.target | 31 ++++++++++++------- 5 files changed, 29 insertions(+), 18 deletions(-) diff --git a/org.eclipse.m2e.feature/feature.xml b/org.eclipse.m2e.feature/feature.xml index 78f6c1631..123886e33 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 f02dc6f5a..71024b3f0 100644 --- a/org.eclipse.m2e.tests.common/META-INF/MANIFEST.MF +++ b/org.eclipse.m2e.tests.common/META-INF/MANIFEST.MF @@ -3,9 +3,10 @@ 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", - org.eclipse.m2e.core;bundle-version="[2.0.0,3.0.0)", +Require-Bundle: org.apache.maven.resolver.api;bundle-version="1.9.20", 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.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 1dffac113..bd8365883 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 245489dd2..0e27d20fe 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