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

hawk9821 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/seatunnel-shade.git


The following commit(s) were added to refs/heads/main by this push:
     new ff5cc11  [Fix][Shade] Exclude Java 21 multi-release class files from 
shaded JARs (#16)
ff5cc11 is described below

commit ff5cc115763b591888bdc88f33e95f3e86e1c0e3
Author: zhangdonghao <[email protected]>
AuthorDate: Fri Jul 10 22:22:38 2026 +0800

    [Fix][Shade] Exclude Java 21 multi-release class files from shaded JARs 
(#16)
    
    Jackson 2.15.4 is a multi-release JAR containing Java 21 optimized classes
    (META-INF/versions/21/) with major version 65. The maven-shade-plugin 3.4.1
    ASM backend cannot process these files when running on JDK 8, causing build
    failure: "Unsupported class file major version 65".
    
    Add <exclude>META-INF/versions/21/**</exclude> to all modules that shade
    Jackson 2.15.4:
    - seatunnel-shade-hadoop3-uber
    - seatunnel-shade-jackson
    - seatunnel-shade-hadoop-aws
    - seatunnel-shade-arrow
    
    These Java 21 optimization classes are performance improvements only and do
    not affect core functionality on JDK 8 runtime.
---
 seatunnel-shade-arrow/pom.xml        | 1 +
 seatunnel-shade-hadoop-aws/pom.xml   | 1 +
 seatunnel-shade-hadoop3-uber/pom.xml | 1 +
 seatunnel-shade-jackson/pom.xml      | 1 +
 4 files changed, 4 insertions(+)

diff --git a/seatunnel-shade-arrow/pom.xml b/seatunnel-shade-arrow/pom.xml
index 6be52f9..500937f 100644
--- a/seatunnel-shade-arrow/pom.xml
+++ b/seatunnel-shade-arrow/pom.xml
@@ -64,6 +64,7 @@
                                         <exclude>META-INF/*.SF</exclude>
                                         <exclude>META-INF/*.DSA</exclude>
                                         <exclude>META-INF/*.RSA</exclude>
+                                        
<exclude>META-INF/versions/21/**</exclude>
                                     </excludes>
                                 </filter>
                             </filters>
diff --git a/seatunnel-shade-hadoop-aws/pom.xml 
b/seatunnel-shade-hadoop-aws/pom.xml
index a12aa6e..cd56fa7 100644
--- a/seatunnel-shade-hadoop-aws/pom.xml
+++ b/seatunnel-shade-hadoop-aws/pom.xml
@@ -62,6 +62,7 @@
                                         <exclude>META-INF/*.SF</exclude>
                                         <exclude>META-INF/*.DSA</exclude>
                                         <exclude>META-INF/*.RSA</exclude>
+                                        
<exclude>META-INF/versions/21/**</exclude>
                                     </excludes>
                                 </filter>
                             </filters>
diff --git a/seatunnel-shade-hadoop3-uber/pom.xml 
b/seatunnel-shade-hadoop3-uber/pom.xml
index 97660e5..70c34da 100644
--- a/seatunnel-shade-hadoop3-uber/pom.xml
+++ b/seatunnel-shade-hadoop3-uber/pom.xml
@@ -74,6 +74,7 @@
                                         <exclude>META-INF/*.SF</exclude>
                                         <exclude>META-INF/*.DSA</exclude>
                                         <exclude>META-INF/*.RSA</exclude>
+                                        
<exclude>META-INF/versions/21/**</exclude>
                                     </excludes>
                                 </filter>
                             </filters>
diff --git a/seatunnel-shade-jackson/pom.xml b/seatunnel-shade-jackson/pom.xml
index c7b4de9..9bbf670 100644
--- a/seatunnel-shade-jackson/pom.xml
+++ b/seatunnel-shade-jackson/pom.xml
@@ -93,6 +93,7 @@
                                         <exclude>META-INF/*.SF</exclude>
                                         <exclude>META-INF/*.DSA</exclude>
                                         <exclude>META-INF/*.RSA</exclude>
+                                        
<exclude>META-INF/versions/21/**</exclude>
                                     </excludes>
                                 </filter>
                             </filters>

Reply via email to