This is an automated email from the ASF dual-hosted git repository.
czy006 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git
The following commit(s) were added to refs/heads/master by this push:
new 52ef6b190 [Hotfix] Remove slf4j classes from kyuubi-hive-jdbc-shaded
(#4342)
52ef6b190 is described below
commit 52ef6b19020b133eae6309490b701976674ede79
Author: ZhouJinsong <[email protected]>
AuthorDate: Mon Aug 31 16:59:13 2026 +0800
[Hotfix] Remove slf4j classes from kyuubi-hive-jdbc-shaded (#4342)
Fix slf4j dependency conflicts
---
amoro-ams/pom.xml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/amoro-ams/pom.xml b/amoro-ams/pom.xml
index 4e1a8bcf0..47d4a4823 100644
--- a/amoro-ams/pom.xml
+++ b/amoro-ams/pom.xml
@@ -608,6 +608,33 @@
</execution>
</executions>
</plugin>
+ <!-- Strip shaded SLF4J 1.x classes from kyuubi-hive-jdbc-shaded
to prevent
+ it from overriding slf4j-api 2.x at runtime
(StaticLoggerBinder conflict). -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>${maven-antrun-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>strip-kyuubi-shaded-slf4j</id>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <target>
+ <zip
destfile="${project.build.directory}/amoro-ams-dependency/lib/kyuubi-hive-jdbc-shaded-stripped.jar">
+ <zipfileset
src="${project.build.directory}/amoro-ams-dependency/lib/kyuubi-hive-jdbc-shaded-${kyuubi-hive-jdbc-shaded.version}.jar">
+ <exclude name="org/slf4j/**"></exclude>
+ </zipfileset>
+ </zip>
+ <delete
file="${project.build.directory}/amoro-ams-dependency/lib/kyuubi-hive-jdbc-shaded-${kyuubi-hive-jdbc-shaded.version}.jar"></delete>
+ <move
file="${project.build.directory}/amoro-ams-dependency/lib/kyuubi-hive-jdbc-shaded-stripped.jar"
tofile="${project.build.directory}/amoro-ams-dependency/lib/kyuubi-hive-jdbc-shaded-${kyuubi-hive-jdbc-shaded.version}.jar"></move>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>