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

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


The following commit(s) were added to refs/heads/master by this push:
     new 752d86c4fde [chore](dep)Remove unused dependencies (#59079)
752d86c4fde is described below

commit 752d86c4fdeddec1e8c4cb34d77e623deae0fcec
Author: Calvin Kirs <[email protected]>
AuthorDate: Thu Dec 18 15:14:46 2025 +0800

    [chore](dep)Remove unused dependencies (#59079)
    
    ### What problem does this PR solve?
    
    - We should keep fe-common focused and avoid putting unrelated logic
    into it.
    - JUnit should be declared with test scope, as it is only used for
    testing.
    
    https://github.com/apache/doris/pull/58280
    
    It also fixes the Paimon S3AFileSystem ClassNotFoundException issue
    reported in #58280.
---
 fe/be-java-extensions/hadoop-deps/pom.xml          |  4 ++
 fe/be-java-extensions/hadoop-hudi-scanner/pom.xml  |  2 +-
 fe/be-java-extensions/java-udf/pom.xml             |  6 +++
 fe/fe-common/pom.xml                               | 21 --------
 .../DataLakeAWSCredentialsProvider.java            | 59 ----------------------
 fe/fe-core/pom.xml                                 |  9 ++++
 fe/pom.xml                                         |  7 ++-
 7 files changed, 26 insertions(+), 82 deletions(-)

diff --git a/fe/be-java-extensions/hadoop-deps/pom.xml 
b/fe/be-java-extensions/hadoop-deps/pom.xml
index eddff987e35..102a92d356e 100644
--- a/fe/be-java-extensions/hadoop-deps/pom.xml
+++ b/fe/be-java-extensions/hadoop-deps/pom.xml
@@ -38,6 +38,10 @@ under the License.
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-collections4</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.apache.hadoop</groupId>
+            <artifactId>hadoop-aliyun</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-configuration2</artifactId>
diff --git a/fe/be-java-extensions/hadoop-hudi-scanner/pom.xml 
b/fe/be-java-extensions/hadoop-hudi-scanner/pom.xml
index 3fddd5b08a8..79e00db2f69 100644
--- a/fe/be-java-extensions/hadoop-hudi-scanner/pom.xml
+++ b/fe/be-java-extensions/hadoop-hudi-scanner/pom.xml
@@ -52,7 +52,7 @@ under the License.
         <dependency>
             <groupId>org.apache.doris</groupId>
             <artifactId>hadoop-deps</artifactId>
-            <version>1.2-SNAPSHOT</version>
+            <version>${project.version}</version>
             <scope>provided</scope>
         </dependency>
       
diff --git a/fe/be-java-extensions/java-udf/pom.xml 
b/fe/be-java-extensions/java-udf/pom.xml
index 1cb1614c69f..8b1e57490dc 100644
--- a/fe/be-java-extensions/java-udf/pom.xml
+++ b/fe/be-java-extensions/java-udf/pom.xml
@@ -40,6 +40,12 @@ under the License.
             <groupId>org.apache.doris</groupId>
             <artifactId>java-common</artifactId>
             <version>${project.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>io.trino</groupId>
+                    <artifactId>trino-main</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
             <groupId>org.apache.doris</groupId>
diff --git a/fe/fe-common/pom.xml b/fe/fe-common/pom.xml
index 64109138835..838b3e97881 100644
--- a/fe/fe-common/pom.xml
+++ b/fe/fe-common/pom.xml
@@ -104,31 +104,10 @@ under the License.
             <groupId>org.apache.hadoop</groupId>
             <artifactId>hadoop-aws</artifactId>
         </dependency>
-        <dependency>
-            <groupId>com.amazonaws</groupId>
-            <artifactId>aws-java-sdk-s3</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>com.amazonaws</groupId>
-            <artifactId>aws-java-sdk-sts</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-iostreams</artifactId>
         </dependency>
-        <dependency>
-            <groupId>com.aliyun.oss</groupId>
-            <artifactId>aliyun-sdk-oss</artifactId>
-            <version>${aliyun-sdk-oss.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.hadoop</groupId>
-            <artifactId>hadoop-aliyun</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>com.esotericsoftware</groupId>
-            <artifactId>kryo-shaded</artifactId>
-        </dependency>
     </dependencies>
     <build>
         <finalName>doris-fe-common</finalName>
diff --git 
a/fe/fe-common/src/main/java/org/apache/doris/common/credentials/DataLakeAWSCredentialsProvider.java
 
b/fe/fe-common/src/main/java/org/apache/doris/common/credentials/DataLakeAWSCredentialsProvider.java
deleted file mode 100644
index 600d4440224..00000000000
--- 
a/fe/fe-common/src/main/java/org/apache/doris/common/credentials/DataLakeAWSCredentialsProvider.java
+++ /dev/null
@@ -1,59 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-package org.apache.doris.common.credentials;
-
-import com.amazonaws.SdkClientException;
-import com.amazonaws.auth.AWSCredentials;
-import com.amazonaws.auth.AWSCredentialsProvider;
-import com.amazonaws.auth.BasicAWSCredentials;
-import com.amazonaws.auth.BasicSessionCredentials;
-import com.amazonaws.util.StringUtils;
-import org.apache.hadoop.conf.Configuration;
-import org.apache.hadoop.fs.s3a.Constants;
-
-public class DataLakeAWSCredentialsProvider implements AWSCredentialsProvider  
{
-
-    private final Configuration conf;
-
-    public DataLakeAWSCredentialsProvider(Configuration conf) {
-        this.conf = conf;
-    }
-
-    @Override
-    public AWSCredentials getCredentials() {
-        String accessKey = StringUtils.trim(conf.get(Constants.ACCESS_KEY));
-        String secretKey = StringUtils.trim(conf.get(Constants.SECRET_KEY));
-        String sessionToken = 
StringUtils.trim(conf.get(Constants.SESSION_TOKEN));
-        if (!StringUtils.isNullOrEmpty(accessKey) && 
!StringUtils.isNullOrEmpty(secretKey)) {
-            return (StringUtils.isNullOrEmpty(sessionToken) ? new 
BasicAWSCredentials(accessKey,
-                secretKey) : new BasicSessionCredentials(accessKey, secretKey, 
sessionToken));
-        } else {
-            throw new SdkClientException(
-                "Unable to load AWS credentials from hive conf 
(fs.s3a.access.key and fs.s3a.secret.key)");
-        }
-    }
-
-    @Override
-    public void refresh() {
-    }
-
-    @Override
-    public String toString() {
-        return getClass().getSimpleName();
-    }
-}
diff --git a/fe/fe-core/pom.xml b/fe/fe-core/pom.xml
index 41b00945fdf..287285edd27 100644
--- a/fe/fe-core/pom.xml
+++ b/fe/fe-core/pom.xml
@@ -127,6 +127,11 @@ under the License.
             <groupId>org.apache.hadoop</groupId>
             <artifactId>hadoop-azure</artifactId>
         </dependency>
+        <dependency>
+            <groupId>com.aliyun.oss</groupId>
+            <artifactId>aliyun-sdk-oss</artifactId>
+            <version>${aliyun-sdk-oss.version}</version>
+        </dependency>
         <!-- 
https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
         <dependency>
             <groupId>org.apache.commons</groupId>
@@ -404,6 +409,10 @@ under the License.
             <groupId>org.apache.hadoop</groupId>
             <artifactId>hadoop-auth</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.apache.hadoop</groupId>
+            <artifactId>hadoop-aws</artifactId>
+        </dependency>
 
         <!-- lakesoul -->
         <dependency>
diff --git a/fe/pom.xml b/fe/pom.xml
index ebde20d4092..3691d10340f 100644
--- a/fe/pom.xml
+++ b/fe/pom.xml
@@ -291,7 +291,7 @@ under the License.
         <grpc-java.version>1.34.0</grpc-java.version>
         <!--Need to ensure that the version is the same as in 
arrow/java/pom.xml or compatible with it.-->
         <grpc.version>1.65.1</grpc.version>
-        <check.freamework.version>3.52.0</check.freamework.version>
+        <check.freamework.version>3.52.1</check.freamework.version>
         <protobuf.version>3.25.8</protobuf.version>
         <!-- we use protoc-jar-maven-plugin to generate protobuf generated 
code -->
         <!-- see 
https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/ to get correct 
version -->
@@ -1820,22 +1820,27 @@ under the License.
         <dependency>
             <groupId>org.junit.jupiter</groupId>
             <artifactId>junit-jupiter-engine</artifactId>
+            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.junit.vintage</groupId>
             <artifactId>junit-vintage-engine</artifactId>
+            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.junit.jupiter</groupId>
             <artifactId>junit-jupiter-params</artifactId>
+            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.junit.platform</groupId>
             <artifactId>junit-platform-launcher</artifactId>
+            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.jmockit</groupId>
             <artifactId>jmockit</artifactId>
+            <scope>test</scope>
         </dependency>
         <!-- should be used in test scope -->
         <dependency>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to