This is an automated email from the ASF dual-hosted git repository. aiceflower pushed a commit to branch fix-master-compile in repository https://gitbox.apache.org/repos/asf/linkis.git
commit aec998782e39a0e46ee2f867951bb70718a1f151 Author: aiceflower <[email protected]> AuthorDate: Thu Jun 25 11:47:59 2026 +0800 #AI COMMIT# fix: 修复 impala 引擎编译失败 (slf4j-api 缺失) impala 模块编译报错 "Symbol 'type org.slf4j.Logger' is missing from the classpath",根因是 slf4j-api 不在 impala 编译 classpath 中: - linkis-common 标记为 <scope>provided</scope>,不传递 slf4j-api - impala-frontend / impala-minimal-hive-exec 用 <exclusions>*</exclusions> 排除所有传递依赖,slf4j-api 也被一并排除 Logging.logger 和 Utils.tryAndWarn 隐式参数都依赖 org.slf4j.Logger, 必须显式引入 slf4j-api 才能编译通过。 Co-Authored-By: Claude Opus 4.7 <[email protected]> --- linkis-engineconn-plugins/impala/pom.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/linkis-engineconn-plugins/impala/pom.xml b/linkis-engineconn-plugins/impala/pom.xml index 87f8ec8acc..bc24c5c760 100644 --- a/linkis-engineconn-plugins/impala/pom.xml +++ b/linkis-engineconn-plugins/impala/pom.xml @@ -70,6 +70,14 @@ <version>${libthrift.version}</version> </dependency> + <!-- slf4j-api must be declared explicitly because both linkis-common (provided) and + impala-* artifacts (all transitive deps excluded) do not bring it in. + Required by Logging.logger and Utils.tryAndWarn implicit parameter. --> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + </dependency> + <!-- impala --> <dependency> <groupId>org.apache.impala</groupId> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
