ANT FTP-Task Error

We use a ftp-target in ant for deploying a zip-file to our server:

<ftp server="${FTP_SERVER}"  
remotedir="${FTP_REMOTE}"
userid="${FTP_USER}"
password="${FTP_PASS}">
<fileset file="appcms-${version}.zip"/>
</ftp>

But circle ci throws an error:

/home/ubuntu/backend/build.xml:100: Could not create type ftp due to java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClientConfig

We have test to install the required libraries in the dependency commands:

sudo apt-get install liboro-java
sudo apt-get install libcommons-net-java

But the error still exists?This text will be hidden

Ok, the problem is solved.

In the dependency commands we have to call:

wget http://www.java2s.com/Code/JarDownload/apache-commons/apache-commons-net.jar.zip
unzip apache-commons-net.jar.zip

Calling the ant build process in the cirlce.yml:

deployment:
dev:
branch: master
commands:
- ant -lib apache-commons-net.jar deploy-dev