-
Notifications
You must be signed in to change notification settings - Fork 602
Maven
shikhar edited this page May 14, 2012
·
17 revisions
Releases
sshj releases are present in the central maven repository:
<dependency>
<groupId>net.schmizz</groupId>
<artifactId>sshj</artifactId>
<version>0.8.0</version>
</dependency>
Snapshots
You will need to add the sonatype remote repository if you don't have it:
<repositories>
<repository>
<id>sonatype</id>
<url>http://oss.sonatype.org/content/groups/public/</url>
</repository>
</repositories>
And a dependency on a sshj snapshot:
<dependency>
<groupId>net.schmizz</groupId>
<artifactId>sshj</artifactId>
<version>0.9.0-SNAPSHOT</version>
</dependency>
Required
slf4j is a logging facade that sshj depends on. You need to add a slf4j binding and the implementation for that binding. If you don't have strong preferences for some logging framework, try logback which natively implements the slf4j API.
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>0.9.29</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>0.9.29</version>
</dependency>
Optional
Throw in BouncyCastle to be able to read in OpenSSH key files and generally get better crypto.
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.46</version>
</dependency>
jzlib if you intend to use zlib compression.
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jzlib</artifactId>
<version>1.0.7</version>
</dependency>