[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jgit-dev] Core Library in missing JSch
|
Hey,
I have the following two dependencies in my project's build file and
ran into a ClassNotFoundException for com.jcraft.jsch.JSchException. I
fixed it by manually by adding com.jcraft:jsch:0.1.44-1 to my pom file
but figured it might be a configuration bug.
Cheers,
Roger
<http://eclipse.org/jgit/download>
<!-- Core Library -->
<dependencies>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>2.0.0.201206130900-r</version>
</dependency>
</dependencies>
<!-- Smart HTTP Servlet -->
<dependencies>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit.http.server</artifactId>
<version>2.0.0.201206130900-r</version>
</dependency>
</dependencies>
Exception in thread "main" java.lang.NoClassDefFoundError:
com/jcraft/jsch/JSchException
at org.eclipse.jgit.transport.Transport.<clinit>(Transport.java:111)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:118)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
at com.xxxxx.git.GitUtils.clone(GitUtils.java:464)
at com.xxxx.git.Main.main(Main.java:15)
Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.JSchException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 6 more