You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Mickler, Tosh (MS)" <to...@ngc.com> on 2009/02/04 21:02:55 UTC

Error using ftp ant task from antrun

I have a solaris build machine that ftp's the artifacts to a central
location on another computer.  It works when using maven 2.0.8.  When we
upgraded to maven 2.0.9, it stopped working.

The error that I am getting is:

[11:00:41]: [ERROR] BUILD ERROR
[11:00:41]: [INFO]
------------------------------------------------------------------------
[11:00:41]: [INFO] Error executing ant tasks
[11:00:41]: Embedded error: Could not create task or type of type: ftp.
[11:00:41]: Ant could not find the task or a class this task relies
upon.
[11:00:41]: This is common and has a number of causes; the usual 
[11:00:41]: solutions are to read the manual pages then download and
[11:00:41]: install needed JAR files, or fix the build file: 
[11:00:41]: - You have misspelt 'ftp'.
[11:00:41]: Fix: check your spelling.
[11:00:41]: - The task needs an external JAR file to execute
[11:00:41]: and this is not found at the right place in the classpath.
[11:00:41]: Fix: check the documentation for dependencies.
[11:00:41]: Fix: declare the task.
[11:00:41]: - The task is an Ant optional task and the JAR file and/or
libraries
[11:00:41]: implementing the functionality were not found at the time
you
[11:00:41]: yourself built your installation of Ant from the Ant
sources.
[11:00:41]: Fix: Look in the ANT_HOME/lib for the 'ant-' JAR
corresponding to the
[11:00:41]: task and make sure it contains more than merely a
META-INF/MANIFEST.MF.
[11:00:41]: If all it contains is the manifest, then rebuild Ant with
the needed
[11:00:41]: libraries present in ${ant.home}/lib/optional/ , or
alternatively,
[11:00:41]: download a pre-built release version from apache.org
[11:00:41]: - The build file was written for a later version of Ant
[11:00:41]: Fix: upgrade to at least the latest release version of Ant
[11:00:41]: - The task is not an Ant core or optional task 
[11:00:41]: and needs to be declared using <taskdef>.
[11:00:41]: - You are attempting to use a task defined using 
[11:00:41]: <presetdef> or <macrodef> but have spelt wrong or not 
[11:00:41]: defined it at the point of use
[11:00:41]: Remember that for JAR files to be visible to Ant tasks
implemented
[11:00:41]: in ANT_HOME/lib, the files must be in the same directory or
on the
[11:00:41]: classpath
[11:00:41]: Please neither file bug reports on this problem, nor email
the
[11:00:41]: Ant mailing lists, until all of these causes have been
explored,
[11:00:41]: as this is not an Ant bug.

Does anyone have any ideas?

Thanks,

Tosh