This is an automated email from the ASF dual-hosted git repository.
stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 004d2a5bf4c HADOOP-18090. Add optional com.jcraft.jsch dependency to
hadoop-client-runtime (#4700)
004d2a5bf4c is described below
commit 004d2a5bf4cd6c9a25aa12bc6be0ff30d341329f
Author: tiki-sk <[email protected]>
AuthorDate: Thu Nov 6 13:32:34 2025 +0100
HADOOP-18090. Add optional com.jcraft.jsch dependency to
hadoop-client-runtime (#4700)
This ensures that the jsch dependency classes are not shaded, and so SFTP
can be used by adding
the jsch.jar to the classpath
Contributed by tiki-sk
---
hadoop-client-modules/hadoop-client-minicluster/pom.xml | 5 -----
hadoop-client-modules/hadoop-client-runtime/pom.xml | 6 ++++++
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/hadoop-client-modules/hadoop-client-minicluster/pom.xml
b/hadoop-client-modules/hadoop-client-minicluster/pom.xml
index fe58ccbf60e..8edef50fe50 100644
--- a/hadoop-client-modules/hadoop-client-minicluster/pom.xml
+++ b/hadoop-client-modules/hadoop-client-minicluster/pom.xml
@@ -457,11 +457,6 @@
<artifactId>kfs</artifactId>
<optional>true</optional>
</dependency>
- <dependency>
- <groupId>com.jcraft</groupId>
- <artifactId>jsch</artifactId>
- <optional>true</optional>
- </dependency>
<!-- add back in transitive dependencies of hadoop-mapreduce-client-app
removed in client -->
<!-- Skipping javax.servlet:javax.servlet-api because it's in client -->
<!-- Skipping jakarta.servlet:jakarta.servlet-api because it's in client
-->
diff --git a/hadoop-client-modules/hadoop-client-runtime/pom.xml
b/hadoop-client-modules/hadoop-client-runtime/pom.xml
index 5397dc7271e..be124e31216 100644
--- a/hadoop-client-modules/hadoop-client-runtime/pom.xml
+++ b/hadoop-client-modules/hadoop-client-runtime/pom.xml
@@ -108,6 +108,12 @@
<scope>runtime</scope>
<optional>true</optional>
</dependency>
+ <dependency>
+ <groupId>com.jcraft</groupId>
+ <artifactId>jsch</artifactId>
+ <optional>true</optional>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
<profiles>
<profile>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]