forked from hierynomus/sshj
-
Notifications
You must be signed in to change notification settings - Fork 1
Maven
Shikhar Bhushan edited this page Aug 13, 2010
·
2 revisions
Releases
sshj releases are present in the central maven repository:
<dependency>
<groupId>net.schmizz</groupId>
<artifactId>sshj</artifactId>
<version>0.2.3</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.3.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>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>0.9.24</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>0.9.24</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.45</version>
</dependency>
jzlib if you intend to use zlib compression.
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jzlib</artifactId>
<version>1.0.7</version>
</dependency>