From a604c4c253587d65c70a391abd61f7aa4b8ceaca 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.maven.runtime/pom.xml | 7 +++--- pom.xml | 2 +- target-platform/target-platform.target | 31 +++++++++++++++++--------- 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/org.eclipse.m2e.maven.runtime/pom.xml b/org.eclipse.m2e.maven.runtime/pom.xml index bbe732e6ec..30f9f92081 100644 --- a/org.eclipse.m2e.maven.runtime/pom.xml +++ b/org.eclipse.m2e.maven.runtime/pom.xml @@ -20,7 +20,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/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