To start, simply clone the ftp-client
repository and install the dependencies:
You need git to clone the ftp-client
repository.
You will need Java™ SE Development Kit 8 and Maven.
If you are working in a Windows environment, you could have some issues if the maven local repository is in a folder with a name containing white spaces (quite common as the default value is ${user.home}/.m2/repository). In order to avoid this, it is fully recommended that you specify another folder in your maven settings.xml file.
For example:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>/dev/repo</localRepository>
...
Clone the ftp-client
repository using git:
git clone https://github.com/systelab/ftp-client.git
cd ftp-client
In order to install the dependencies you must run:
mvn install
In order to generate a jar file you must run:
mvn package
Run it from your favourite IDE.
This is only a proof of concept.
- Get the user and secret as parameter.
- ...