This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-observation-otel-bom
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 3c862c5cd7b413e0c4775f0ea70e41988bd57366
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 3 07:11:07 2026 +0100

    chore: camel-observation - import the OpenTelemetry BOMs so the test 
classpath has one OpenTelemetry version
    
    micrometer-tracing-integration-test 1.7.2 brings in 
opentelemetry-sdk-common,
    opentelemetry-sdk-trace and others at 1.62.0, and they win over the
    ${opentelemetry-version} jars of opentelemetry-sdk-testing. With
    OpenTelemetry 1.67.0 (PR 28992) every test fails with NoClassDefFoundError
    io/opentelemetry/api/internal/ConfigUtil, as that class moved from
    opentelemetry-api to opentelemetry-common.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 components/camel-observation/pom.xml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/components/camel-observation/pom.xml 
b/components/camel-observation/pom.xml
index 7aa91c34e95f..d89e34eb28b9 100644
--- a/components/camel-observation/pom.xml
+++ b/components/camel-observation/pom.xml
@@ -45,6 +45,26 @@
         
<camel.surefire.fork.additional-vmargs>-Xmx1G</camel.surefire.fork.additional-vmargs>
     </properties>
 
+    <!-- align the OpenTelemetry jars that micrometer-tracing-integration-test 
brings in with opentelemetry-sdk-testing -->
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>io.opentelemetry</groupId>
+                <artifactId>opentelemetry-bom</artifactId>
+                <version>${opentelemetry-version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <dependency>
+                <groupId>io.opentelemetry</groupId>
+                <artifactId>opentelemetry-bom-alpha</artifactId>
+                <version>${opentelemetry-alpha-version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
     <dependencies>
         <dependency>
             <groupId>org.apache.camel</groupId>

Reply via email to