This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 38cf7052b2f0 chore: camel-observation - import the OpenTelemetry BOMs
so the test classpath has one OpenTelemetry version (#29048)
38cf7052b2f0 is described below
commit 38cf7052b2f0177da2565030ddffa4f2c9ed9703
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 3 08:46:43 2026 +0100
chore: camel-observation - import the OpenTelemetry BOMs so the test
classpath has one OpenTelemetry version (#29048)
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>