Installing the Maverick Legacy Server

Lee Painter

There are two methods of configuring your development environment to use the Maverick Legacy Server.

  1. Download our distribution zip file that includes all jar files and dependencies and include in your classpath.
  2. Configure your project to use maven and configure your project to use our Maven repository. 

You will need to obtain an evaluation key and install the license in your project for both methods of installation.

 

Including Maverick Legacy Client in your Classpath

Jar files are located in the dist folder and third party dependencies are located in the lib folder.

For developers using the server API only you can use

maverick-legacy-server-{version}-all.jar

This is a single single archive with all server features, use along with all dependencies in lib folder. 

Note: You do not need to include slf4j-log4j12-{version}.jar or log4j-{version}.jar if you do not intend to use Log4J as your logging mechanism. See http://www.slf4j.org/ for alternative log bindings.

If you are combining the API with our client product use:

maverick-legacy-server-{version}-no-common.jar
maverick-common-{version}.jar
maverick-legacy-client-{version}-no-common.jar

For those developers that prefer not to have the version in the jar filename you can find unversioned jar files in dist/other folder.  

 

Using the Maven Repository

First you need to add our repository to your pom.xml

<repository>
    <id>public-releases</id>
    <url>http://artifactory.javassh.com/public-releases/</url>
</repository>

 

Then add our dependency

<dependency>
     <groupId>com.sshtools</groupId>
     <artifactId>sshd</artifactId>
     <version>1.6.6</version>
</dependency>

 

If you want to use log4j as your logging tool add the Log4J bindings dependencies if these are not already part of your pom.

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.7.2</version> 
</dependency>

<dependency>
    <groupId>log4j</groupId>
    <artifactId>log4j</artifactId>
    <version>1.2.17</version>
</dependency>

 

 

Obtaining an Evaluation License Key

Visit the Maverick Legacy Server web page at http://www.sshtools.com/products/maverick-sshd and enter your email address in the Evaluate box on the right hand side. 

 

Installing your License

Copy the license key into your source code and place it somewhere in your code before you make any calls to the API.

You can optionally save your license as a text file and set the following properties to point the API in the right location:

-Dmaverick.license.directory=/somepath

-Dsshd.license.filename=somefile.txt

If you omit these system properties they will default to the value of System.getProperty("user.dir") for the directory andsshd-license.txt for the filename.

 

Example Code

Please take a look at the /examples folder in the distribution zip file. There are a number of code examples there that should get you on track with your development.