From 687e885a79e472ad4cb85f8b79e78b942bcf7d2a Mon Sep 17 00:00:00 2001 From: arimu1 <19286898+arimu1@users.noreply.github.com> Date: Mon, 24 Aug 2026 18:42:06 +0700 Subject: [PATCH] fix(exposition): export internal package for OSGi resolution prometheus-metrics-exposition-textformats imports io.prometheus.metrics.expositionformats.internal because PrometheusProtobufWriter loads the protobuf implementation via Class.forName, but the exposition-formats bundles kept that package private. Export it via bnd _exportcontents so OSGi can wire the two bundles together. Signed-off-by: arimu1 <19286898+arimu1@users.noreply.github.com> --- .../pom.xml | 15 +++++++++++++++ prometheus-metrics-exposition-formats/pom.xml | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/prometheus-metrics-exposition-formats-shaded/pom.xml b/prometheus-metrics-exposition-formats-shaded/pom.xml index f7e65bcb8..c29006334 100644 --- a/prometheus-metrics-exposition-formats-shaded/pom.xml +++ b/prometheus-metrics-exposition-formats-shaded/pom.xml @@ -61,6 +61,21 @@ + + org.apache.felix + maven-bundle-plugin + + + + + io.prometheus.metrics.expositionformats.generated*;version="${project.version}" + + <_exportcontents> + io.prometheus.metrics.expositionformats.internal;version="${project.version}" + + + + org.apache.maven.plugins maven-resources-plugin diff --git a/prometheus-metrics-exposition-formats/pom.xml b/prometheus-metrics-exposition-formats/pom.xml index 4f0202faf..26e2d350d 100644 --- a/prometheus-metrics-exposition-formats/pom.xml +++ b/prometheus-metrics-exposition-formats/pom.xml @@ -61,6 +61,21 @@ + + org.apache.felix + maven-bundle-plugin + + + + + io.prometheus.metrics.expositionformats.generated*;version="${project.version}" + + <_exportcontents> + io.prometheus.metrics.expositionformats.internal;version="${project.version}" + + + + org.codehaus.mojo build-helper-maven-plugin