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

gnodet pushed a commit to branch camel-4.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.22.x by this push:
     new 46f52e1cc37a [backport camel-4.22.x] CAMEL-27188: 
camel-google-vertexai - pin protobuf-java to 4.x to prevent version conflict 
(#30427)
46f52e1cc37a is described below

commit 46f52e1cc37ae78bd6e5c893c7d98a6f6684e3c6
Author: Guillaume Nodet <[email protected]>
AuthorDate: Fri Nov 20 10:43:49 2026 +0100

    [backport camel-4.22.x] CAMEL-27188: camel-google-vertexai - pin 
protobuf-java to 4.x to prevent version conflict (#30427)
---
 components/camel-google/camel-google-vertexai/pom.xml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/components/camel-google/camel-google-vertexai/pom.xml 
b/components/camel-google/camel-google-vertexai/pom.xml
index 8c2c359ff235..39019015c5a1 100644
--- a/components/camel-google/camel-google-vertexai/pom.xml
+++ b/components/camel-google/camel-google-vertexai/pom.xml
@@ -62,6 +62,11 @@
                     <groupId>com.google.code.findbugs</groupId>
                     <artifactId>jsr305</artifactId>
                 </exclusion>
+                <!-- Exclude protobuf-java to use the aligned version needed 
by google-cloud-aiplatform (4.x) -->
+                <exclusion>
+                    <groupId>com.google.protobuf</groupId>
+                    <artifactId>protobuf-java</artifactId>
+                </exclusion>
                 <!-- Exclude auth libraries to use aligned versions from 
aiplatform -->
                 <exclusion>
                     <groupId>com.google.auth</groupId>
@@ -96,6 +101,15 @@
             <artifactId>google-auth-library-credentials</artifactId>
             <version>${google-auth-library-oauth2-http-version}</version>
         </dependency>
+        <!-- Explicit protobuf-java dependency: google-genai 2.0.0 declares 
protobuf-java:3.25.5 as a direct compile
+             dependency, which wins over google-cloud-aiplatform's protobuf 
4.x via Maven nearest-wins when the parent
+             dependencyManagement is not in scope (e.g. Camel JBang, 
standalone apps). Pin to the 4.x version needed
+             by proto-google-cloud-aiplatform-v1. -->
+        <dependency>
+            <groupId>com.google.protobuf</groupId>
+            <artifactId>protobuf-java</artifactId>
+            <version>${protobuf-version}</version>
+        </dependency>
 
         <!-- for testing -->
         <dependency>

Reply via email to