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 c3b360206ed5 CAMEL-27260: camel-salesforce - declare protobuf-java for
the Pub/Sub classes (#30455)
c3b360206ed5 is described below
commit c3b360206ed5438edb955ef426b36915ad4535f0
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Nov 19 22:10:20 2026 +0100
CAMEL-27260: camel-salesforce - declare protobuf-java for the Pub/Sub
classes (#30455)
The Pub/Sub API classes are generated with protoc ${protobuf-version} and
need protobuf-java 4.x at runtime, but the component got protobuf-java
only through grpc-protobuf, which brings 3.25. The parent POM manages it
inside the Camel build, not in a user's build, so camel run and a project
importing camel-bom failed at startup with NoClassDefFoundError
com/google/protobuf/RuntimeVersion$RuntimeDomain.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
components/camel-salesforce/camel-salesforce-component/pom.xml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/components/camel-salesforce/camel-salesforce-component/pom.xml
b/components/camel-salesforce/camel-salesforce-component/pom.xml
index 9ddcacd1b0ab..82d272ba5235 100644
--- a/components/camel-salesforce/camel-salesforce-component/pom.xml
+++ b/components/camel-salesforce/camel-salesforce-component/pom.xml
@@ -128,6 +128,13 @@
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
</dependency>
+ <!-- the Pub/Sub classes are generated with protoc ${protobuf-version}
and need protobuf-java 4.x at runtime;
+ grpc-protobuf brings 3.x, so declare it here for the users of
this component -->
+ <dependency>
+ <groupId>com.google.protobuf</groupId>
+ <artifactId>protobuf-java</artifactId>
+ <version>${protobuf-version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>