From e95faabe6cb09d597b5c0bae135cc4220ef06e67 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Fri, 24 May 2024 16:28:04 +0800 Subject: [PATCH] [KYUUBI #6415] Manage Jersey in kyuubi-server module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # :mag: Description We can not manage Jersey dependencies globally because SPARK-47118 (4.0.0) upgrades Jersey from 2 to 3, using an unmatched Jersey version in modules like Spark SQL engine would fail Spark to start thus abort UT. ## Types of changes :bookmark: - [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan ๐Ÿงช Tested with Spark 4.0 --- # Checklist ๐Ÿ“ - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6415 from pan3793/server-jersey. Closes #6415 804d6367b [Cheng Pan] nit fcb6ee573 [Cheng Pan] manage jersey in kyuubi-server module Authored-by: Cheng Pan Signed-off-by: Cheng Pan --- kyuubi-server/pom.xml | 39 ++++++++++++++++++++++++ pom.xml | 71 ------------------------------------------- 2 files changed, 39 insertions(+), 71 deletions(-) diff --git a/kyuubi-server/pom.xml b/kyuubi-server/pom.xml index 503227bbd..d42457cb6 100644 --- a/kyuubi-server/pom.xml +++ b/kyuubi-server/pom.xml @@ -29,6 +29,45 @@ Kyuubi Project Server https://kyuubi.apache.org/ + + + + + org.glassfish.jersey + jersey-bom + ${jersey.version} + pom + import + + + org.glassfish.jersey.core + jersey-common + ${jersey.version} + + + com.sun.activation + jakarta.activation + + + + + org.glassfish.jersey.test-framework + jersey-test-framework-core + ${jersey.version} + + + jakarta.servlet + jakarta.servlet-api + + + + + + org.apache.kyuubi diff --git a/pom.xml b/pom.xml index 966eafdec..65548a01c 100644 --- a/pom.xml +++ b/pom.xml @@ -1045,77 +1045,6 @@ ${supercsv.version} - - - org.glassfish.jersey.core - jersey-common - ${jersey.version} - - - com.sun.activation - jakarta.activation - - - - - - org.glassfish.jersey.core - jersey-server - ${jersey.version} - - - - org.glassfish.jersey.containers - jersey-container-servlet-core - ${jersey.version} - - - - org.glassfish.jersey.inject - jersey-hk2 - ${jersey.version} - - - - org.glassfish.jersey.media - jersey-media-json-jackson - ${jersey.version} - - - - org.glassfish.jersey.media - jersey-media-multipart - ${jersey.version} - - - - org.glassfish.jersey.test-framework - jersey-test-framework-core - ${jersey.version} - - - jakarta.servlet - jakarta.servlet-api - - - - - - org.glassfish.jersey.test-framework.providers - jersey-test-framework-provider-jetty - ${jersey.version} - - - org.eclipse.jetty - jetty-util - - - org.eclipse.jetty - jetty-continuation - - - - com.mysql mysql-connector-j