Ant タスクを使用してファイルをアップロードしようとしています。Ant を直接使用するとファイルがアップロードされますが、Maven 経由で ( を使用してmaven-antrun-plugin
) Ant タスクを呼び出すと、次のエラーが発生します。
Ant BuildException has occurred: この行の実行中に次のエラーが発生しました:
/home/me/proj/build.xml:15: Problem: failed to create task or type ftp
Cause: the class org.apache.tools.ant.taskdefs.optional.net.FTP was not found.
This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
-ANT_HOME/lib
ant-commonsnet.jar は明らかに Ant で利用可能です:
$ ls $ANT_HOME/lib | grep ant-commons-net
ant-commons-net.jar
Ant クラスパスは maven-antrun-plugin 用に個別に定義されていますか、それとも何か不足していますか?