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

voonhous pushed a commit to tag rfc-105-pre-cleanup
in repository https://gitbox.apache.org/repos/asf/hudi.git

commit c89c199ccf2ef1c8d20df1e15c37d545520fe301
Author: voon <[email protected]>
AuthorDate: Wed May 27 15:46:27 2026 +0800

    fix(trino): pin Jersey to 4.0.2 to match Trino's jakarta stack
    
    Hudi parent pins jersey-server at 2.17 (legacy javax, with the repackaged
    guava Predicate); Trino runs on Jersey 4.x (jakarta). The mixed-major-
    version classpath crashes when TestingTrinoServer wires up jaxrs with
    
      NoSuchFieldError: Class ComponentBag does not have member field
      jersey.repackaged.com.google.common.base.Predicate INCLUDE_ALL
    
    Override jersey-server, jersey-client and jersey-media-jaxb in plugin
    dependencyManagement so the whole Jersey set lands at 4.0.2.
---
 hudi-trino-plugin/pom.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/hudi-trino-plugin/pom.xml b/hudi-trino-plugin/pom.xml
index 76864f3e80ea..46c594359aba 100644
--- a/hudi-trino-plugin/pom.xml
+++ b/hudi-trino-plugin/pom.xml
@@ -85,6 +85,24 @@
                 <artifactId>jetty-server</artifactId>
                 <version>12.1.9</version>
             </dependency>
+            <!-- Hudi parent pins jersey-server at 2.17 (legacy javax). Trino 
runs on Jersey 4.x
+                 (jakarta). The mixed-version classpath crashes with 
NoSuchFieldError on
+                 ComponentBag.INCLUDE_ALL during ResourceConfig init. -->
+            <dependency>
+                <groupId>org.glassfish.jersey.core</groupId>
+                <artifactId>jersey-server</artifactId>
+                <version>4.0.2</version>
+            </dependency>
+            <dependency>
+                <groupId>org.glassfish.jersey.core</groupId>
+                <artifactId>jersey-client</artifactId>
+                <version>4.0.2</version>
+            </dependency>
+            <dependency>
+                <groupId>org.glassfish.jersey.media</groupId>
+                <artifactId>jersey-media-jaxb</artifactId>
+                <version>4.0.2</version>
+            </dependency>
             <!-- Airbase manages junit-platform at 6.0.3 (paired with jupiter 
6.x). Hudi manages
                  jupiter at 5.14.1 (paired with platform 1.14.1). Pin platform 
here to keep the
                  pair consistent; without this, surefire fails with 
OutputDirectoryCreator not found. -->

Reply via email to