|
SFTP Transport Installation Instructions
Prerequisites
| Pre-Requisite |
Version |
Notes |
JDK |
1.4.x, 1.5.x, 1.6.x |
$JAVA_HOME environment set
$PATH includes $JAVA_HOME/bin
1.5.x needed for building from source |
Mule |
1.3.3, 1.4.x, 2.0.x |
See Home for details on where to get distribution and/or source |
Subversion |
any |
only needed for building from source |
Maven |
2.0.8+ |
only needed for building from source |
Winzip/Gzip |
any |
|
Installing the Binary
- Install Mule to your machine, if not already installed. When done, set your $MULE_HOME environment variable to where you installed Mule, for example c:/mule/mule-<version>. Also, add $MULE_HOME/bin to your $PATH.
- Download the SFTP Transport ZIP and unpack it to a directory, say $SFTP_DIST. From $SFTP_DIST, copy mule-transport-sftp.jar to $MULE_HOME/lib/user.
- Copy all the jars in $SFTP_DIST/lib to $MULE_HOME/lib/user.
Installing from Source
- Install Mule to your machine, if not already installed. When done, set your $MULE_HOME environment variable to where you installed Mule, for example c:/mule/mule-<version>. Also, add $MULE_HOME/bin to your $PATH.
- Download Maven 2.0.8 or higher and add the $MAVEN_HOME/bin to your $PATH
- Check out the desired SFTP Transport version from Subversion at: https://svn.muleforge.org/mule-transport-sftp
For this example, let's say your Subversion workspace is $WS.
- cd to $WS
- Run "mvn -Dmaven.test.skip=true install" at the command prompt. This builds the SFTP connector. Running unit tests is not recommended unless you understand the SFTP Transport Unit Tests section in the SFTP Connector User Guide.
- Copy the mule-transport-sftp.jar file from $WS/target to $MULE_HOME/lib/user.
- Copy the libraries from the "Library Dependencies" directory below to $MULE_HOME/lib/user.
Library Dependencies
The following libraries are needed by the SFTP Transport. They are copied to you M2_REPO location during the build:
$M2_REPO/com/jcraft/jsch/0.1.29/jsch-0.1.29.jar
Note: The $M2_REPO location on Linux/Unix the location is ~/.m2 by default. On Windows it's usually c:/Documents and Settings/<user>/.m2.
|
|
|