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

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new d696698b0e5 Migrate JAXB Runtime from `com.sun.xml.bind:jaxb-impl` to 
`org.glassfish.jaxb:jaxb-runtime` (#29013)
d696698b0e5 is described below

commit d696698b0e566a6ecf79c29f609e397734c21a33
Author: Ling Hengqian <[email protected]>
AuthorDate: Sun Nov 12 21:15:23 2023 +0800

    Migrate JAXB Runtime from `com.sun.xml.bind:jaxb-impl` to 
`org.glassfish.jaxb:jaxb-runtime` (#29013)
---
 distribution/proxy-native/src/main/release-docs/LICENSE  |  5 ++---
 distribution/proxy/src/main/release-docs/LICENSE         |  5 ++---
 .../yaml-config/jdbc-driver/spring-boot/_index.cn.md     |  2 +-
 .../yaml-config/jdbc-driver/spring-boot/_index.en.md     |  2 +-
 kernel/sql-federation/core/pom.xml                       |  9 ++-------
 kernel/sql-federation/executor/pom.xml                   |  9 ++-------
 kernel/sql-federation/optimizer/pom.xml                  |  9 ++-------
 kernel/transaction/type/xa/provider/narayana/pom.xml     |  8 ++------
 mode/type/standalone/repository/provider/jdbc/pom.xml    |  8 ++------
 .../standalone/jdbc/sql/JDBCRepositorySQLLoader.java     | 10 +++++-----
 pom.xml                                                  | 16 ++++++----------
 test/pom.xml                                             |  8 ++------
 12 files changed, 29 insertions(+), 62 deletions(-)

diff --git a/distribution/proxy-native/src/main/release-docs/LICENSE 
b/distribution/proxy-native/src/main/release-docs/LICENSE
index 12d1103951c..dd896d2b71b 100644
--- a/distribution/proxy-native/src/main/release-docs/LICENSE
+++ b/distribution/proxy-native/src/main/release-docs/LICENSE
@@ -345,9 +345,8 @@ The text of each license is also included at 
licenses/LICENSE-[project].txt.
 
     javax.activation-api 1.2.0: https://github.com/javaee/javax.annotation, 
CDDL
     jta 1.1: http://jta-spec.java.net, CDDL
-    jaxb-api 2.3.0: http://www.oracle.com, CDDL
-    jaxb-core 2.3.0: http://www.oracle.com, CDDL
-    jaxb-impl 2.3.0 http://www.oracle.com, CDDL
+    jaxb-api 2.3.1: http://www.oracle.com, CDDL
+    jaxb-runtime 2.3.1 https://javaee.github.io/jaxb-v2/, CDDL
 
 ========================================================================
 EPL licenses
diff --git a/distribution/proxy/src/main/release-docs/LICENSE 
b/distribution/proxy/src/main/release-docs/LICENSE
index 12d1103951c..dd896d2b71b 100644
--- a/distribution/proxy/src/main/release-docs/LICENSE
+++ b/distribution/proxy/src/main/release-docs/LICENSE
@@ -345,9 +345,8 @@ The text of each license is also included at 
licenses/LICENSE-[project].txt.
 
     javax.activation-api 1.2.0: https://github.com/javaee/javax.annotation, 
CDDL
     jta 1.1: http://jta-spec.java.net, CDDL
-    jaxb-api 2.3.0: http://www.oracle.com, CDDL
-    jaxb-core 2.3.0: http://www.oracle.com, CDDL
-    jaxb-impl 2.3.0 http://www.oracle.com, CDDL
+    jaxb-api 2.3.1: http://www.oracle.com, CDDL
+    jaxb-runtime 2.3.1 https://javaee.github.io/jaxb-v2/, CDDL
 
 ========================================================================
 EPL licenses
diff --git 
a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/jdbc-driver/spring-boot/_index.cn.md
 
b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/jdbc-driver/spring-boot/_index.cn.md
index db1d1a88bba..41bd3d00a50 100644
--- 
a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/jdbc-driver/spring-boot/_index.cn.md
+++ 
b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/jdbc-driver/spring-boot/_index.cn.md
@@ -56,7 +56,7 @@ Quarkus 3,Micronaut Framework 4 和 Helidon 3。
         <dependency>
             <groupId>org.glassfish.jaxb</groupId>
             <artifactId>jaxb-runtime</artifactId>
-            <version>2.3.8</version>
+            <version>2.3.1</version>
         </dependency>
     </dependencies>
 </project>
diff --git 
a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/jdbc-driver/spring-boot/_index.en.md
 
b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/jdbc-driver/spring-boot/_index.en.md
index cadc2364bc9..e81c02b228a 100644
--- 
a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/jdbc-driver/spring-boot/_index.en.md
+++ 
b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/jdbc-driver/spring-boot/_index.en.md
@@ -57,7 +57,7 @@ also applies to other Jakarta EE-based Web Frameworks, such 
as Quarkus 3, Micron
         <dependency>
             <groupId>org.glassfish.jaxb</groupId>
             <artifactId>jaxb-runtime</artifactId>
-            <version>2.3.8</version>
+            <version>2.3.1</version>
         </dependency>
     </dependencies>
 </project>
diff --git a/kernel/sql-federation/core/pom.xml 
b/kernel/sql-federation/core/pom.xml
index c9b47b99707..fd9da5df657 100644
--- a/kernel/sql-federation/core/pom.xml
+++ b/kernel/sql-federation/core/pom.xml
@@ -60,13 +60,8 @@
             <scope>test</scope>
         </dependency>
         <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-core</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
+            <groupId>org.glassfish.jaxb</groupId>
+            <artifactId>jaxb-runtime</artifactId>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git a/kernel/sql-federation/executor/pom.xml 
b/kernel/sql-federation/executor/pom.xml
index c1bee817c5a..5d396ccfd7e 100644
--- a/kernel/sql-federation/executor/pom.xml
+++ b/kernel/sql-federation/executor/pom.xml
@@ -80,13 +80,8 @@
             <scope>test</scope>
         </dependency>
         <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-core</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
+            <groupId>org.glassfish.jaxb</groupId>
+            <artifactId>jaxb-runtime</artifactId>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git a/kernel/sql-federation/optimizer/pom.xml 
b/kernel/sql-federation/optimizer/pom.xml
index 5a0fca9e888..00b744130ac 100644
--- a/kernel/sql-federation/optimizer/pom.xml
+++ b/kernel/sql-federation/optimizer/pom.xml
@@ -100,13 +100,8 @@
             <scope>test</scope>
         </dependency>
         <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-core</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
+            <groupId>org.glassfish.jaxb</groupId>
+            <artifactId>jaxb-runtime</artifactId>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git a/kernel/transaction/type/xa/provider/narayana/pom.xml 
b/kernel/transaction/type/xa/provider/narayana/pom.xml
index 5d53c349f67..4355af3d307 100644
--- a/kernel/transaction/type/xa/provider/narayana/pom.xml
+++ b/kernel/transaction/type/xa/provider/narayana/pom.xml
@@ -63,12 +63,8 @@
             <artifactId>jaxb-api</artifactId>
         </dependency>
         <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-core</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
+            <groupId>org.glassfish.jaxb</groupId>
+            <artifactId>jaxb-runtime</artifactId>
         </dependency>
         <dependency>
             <groupId>javax.activation</groupId>
diff --git a/mode/type/standalone/repository/provider/jdbc/pom.xml 
b/mode/type/standalone/repository/provider/jdbc/pom.xml
index 0b81d67144e..280ecadaf4f 100644
--- a/mode/type/standalone/repository/provider/jdbc/pom.xml
+++ b/mode/type/standalone/repository/provider/jdbc/pom.xml
@@ -45,12 +45,8 @@
             <artifactId>jaxb-api</artifactId>
         </dependency>
         <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-core</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
+            <groupId>org.glassfish.jaxb</groupId>
+            <artifactId>jaxb-runtime</artifactId>
         </dependency>
         <dependency>
             <groupId>javax.activation</groupId>
diff --git 
a/mode/type/standalone/repository/provider/jdbc/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/sql/JDBCRepositorySQLLoader.java
 
b/mode/type/standalone/repository/provider/jdbc/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/sql/JDBCRepositorySQLLoader.java
index 837d5974bdb..efabbb5301d 100644
--- 
a/mode/type/standalone/repository/provider/jdbc/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/sql/JDBCRepositorySQLLoader.java
+++ 
b/mode/type/standalone/repository/provider/jdbc/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/sql/JDBCRepositorySQLLoader.java
@@ -82,7 +82,7 @@ public final class JDBCRepositorySQLLoader {
     }
     
     /**
-     * Under the GraalVM Native Image corresponding to GraalVM CE 21.0.1, 
although there is
+     * Under the GraalVM Native Image corresponding to GraalVM CE 23.0.2 For 
JDK 17.0.9, although there is
      * 
`com.oracle.svm.core.jdk.resources.NativeImageResourceFileSystemProvider`, the 
corresponding
      * `com.oracle.svm.core.jdk.resources.NativeImageResourceFileSystem` does 
not autoload. This is mainly to align the
      * behavior of `ZipFileSystemProvider`, so ShardingSphere need to manually 
open and close the FileSystem
@@ -101,12 +101,12 @@ public final class JDBCRepositorySQLLoader {
      * @see sun.nio.fs.UnixFileSystemProvider
      */
     private static JDBCRepositorySQL loadFromDirectory(final URL url, final 
String type) throws URISyntaxException, IOException {
-        if (null != System.getProperty("org.graalvm.nativeimage.imagecode")) {
-            try (FileSystem ignored = 
FileSystems.newFileSystem(URI.create("resource:/"), 
Collections.singletonMap("create", "true"))) {
+        if (null == System.getProperty("org.graalvm.nativeimage.imagecode") || 
!"runtime".equals(System.getProperty("org.graalvm.nativeimage.imagecode"))) {
+            return loadFromDirectoryLegacy(url, type);
+        } else {
+            try (FileSystem ignored = 
FileSystems.newFileSystem(URI.create("resource:/"), Collections.emptyMap())) {
                 return loadFromDirectoryLegacy(url, type);
             }
-        } else {
-            return loadFromDirectoryLegacy(url, type);
         }
     }
     
diff --git a/pom.xml b/pom.xml
index 880a085de5e..737a886fe56 100644
--- a/pom.xml
+++ b/pom.xml
@@ -87,7 +87,8 @@
         <freemarker.version>2.3.31</freemarker.version>
         <bytebuddy.version>1.14.8</bytebuddy.version>
         
-        <jaxb.version>2.3.0</jaxb.version>
+        <jaxb-api.version>2.3.1</jaxb-api.version>
+        <jaxb-runtime.version>2.3.1</jaxb-runtime.version>
         <annotation-api.version>1.3.2</annotation-api.version>
         <activation-api.version>1.2.0</activation-api.version>
         
@@ -298,17 +299,12 @@
             <dependency>
                 <groupId>javax.xml.bind</groupId>
                 <artifactId>jaxb-api</artifactId>
-                <version>${jaxb.version}</version>
+                <version>${jaxb-api.version}</version>
             </dependency>
             <dependency>
-                <groupId>com.sun.xml.bind</groupId>
-                <artifactId>jaxb-core</artifactId>
-                <version>${jaxb.version}</version>
-            </dependency>
-            <dependency>
-                <groupId>com.sun.xml.bind</groupId>
-                <artifactId>jaxb-impl</artifactId>
-                <version>${jaxb.version}</version>
+                <groupId>org.glassfish.jaxb</groupId>
+                <artifactId>jaxb-runtime</artifactId>
+                <version>${jaxb-runtime.version}</version>
             </dependency>
             <dependency>
                 <groupId>javax.annotation</groupId>
diff --git a/test/pom.xml b/test/pom.xml
index 0bd3555cb78..01483d29378 100644
--- a/test/pom.xml
+++ b/test/pom.xml
@@ -56,12 +56,8 @@
             <artifactId>jaxb-api</artifactId>
         </dependency>
         <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-core</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
+            <groupId>org.glassfish.jaxb</groupId>
+            <artifactId>jaxb-runtime</artifactId>
         </dependency>
         <dependency>
             <groupId>javax.activation</groupId>

Reply via email to