Skip to content

Commit 004d2a5

Browse files
authored
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
1 parent adda712 commit 004d2a5

File tree

2 files changed

+6
-5
lines changed
  • hadoop-client-modules

2 files changed

+6
-5
lines changed

hadoop-client-modules/hadoop-client-minicluster/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -457,11 +457,6 @@
457457
<artifactId>kfs</artifactId>
458458
<optional>true</optional>
459459
</dependency>
460-
<dependency>
461-
<groupId>com.jcraft</groupId>
462-
<artifactId>jsch</artifactId>
463-
<optional>true</optional>
464-
</dependency>
465460
<!-- add back in transitive dependencies of hadoop-mapreduce-client-app removed in client -->
466461
<!-- Skipping javax.servlet:javax.servlet-api because it's in client -->
467462
<!-- Skipping jakarta.servlet:jakarta.servlet-api because it's in client -->

hadoop-client-modules/hadoop-client-runtime/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@
108108
<scope>runtime</scope>
109109
<optional>true</optional>
110110
</dependency>
111+
<dependency>
112+
<groupId>com.jcraft</groupId>
113+
<artifactId>jsch</artifactId>
114+
<optional>true</optional>
115+
<scope>runtime</scope>
116+
</dependency>
111117
</dependencies>
112118
<profiles>
113119
<profile>

0 commit comments

Comments
 (0)