I try to use Jsch 0.1.44 together with Maven.
I have the following dependency in my pom.xml.
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.44</version>
<scope>compile</scope>
</dependency>
If I run mvn compile
maven looks normal and tells me that Jsch has been successful downloaded.
But when it comes to compile, the Jsch classes could not be found. If I look into my local repository I can see that the Jsch-jar has only a size of 3kb. If I open the jar file I can also see that there is only the META-INF folder.
So what is wrong here, how can I fix this?
For some reason the jar file in the central repository seems to be broken. The solution is to add another repository for Jsch to the pom.xml.
<repository>
<id>Jsch</id>
<url>http://jsch.sf.net/maven2/</url>
</repository>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With