You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ian Kent <ia...@nortelnetworks.com> on 2003/12/06 10:59:39 UTC
problem using ftp task from maven.xml
I am having problem using the optional ftp task from maven.xml.
I have search the mail list and google with no luck.
Please help.
I have the following dependencies in my project.xml :
<dependency>
<groupId>ant</groupId>
<artifactId>ant-optional</artifactId>
<version>1.5.1</version>
<url>http://jakarta.apache.org/ant/</url>
</dependency>
<dependency>
<groupId>netcomponents</groupId>
<artifactId>netcomponents</artifactId>
<version>1.3.8a</version>
<url>http://jakarta.apache.org/commons/net/</url>
</dependency>
And the following in my maven.xml :
<goal name="site-ftp">
<ant:taskdef name="ftp"
classname="org.apache.tools.ant.taskdefs.optional.net.FTP" />
<ant:classpath>
<ant:path refid="maven.dependency.classpath"/>
<ant:pathelement
location="${plugin.getDependencyPath('ant:ant-optional')}"/>
<ant:pathelement
location="${plugin.getDependencyPath('netcomponents:netcomponents')}"/>
</ant:classpath>
<ant:ftp server="${maven.deploy.site.address}"
userid="${maven.deploy.site.username}"
password="${maven.deploy.site.password}"
remotedir="${maven.deploy.site.dir}"
verbose="yes"
>
<ant:fileset dir="${maven.docs.dest}"/>
</ant:ftp>
</goal>
Re: problem using ftp task from maven.xml
Posted by __matthewHawthorne <ma...@apache.org>.
What type of problem? Can you provide a stack trace by running with
maven -X?
Ian Kent wrote:
> I am having problem using the optional ftp task from maven.xml.
> I have search the mail list and google with no luck.
> Please help.
>
> I have the following dependencies in my project.xml :
>
> <dependency>
> <groupId>ant</groupId>
> <artifactId>ant-optional</artifactId>
> <version>1.5.1</version>
> <url>http://jakarta.apache.org/ant/</url>
> </dependency>
>
> <dependency>
> <groupId>netcomponents</groupId>
> <artifactId>netcomponents</artifactId>
> <version>1.3.8a</version>
> <url>http://jakarta.apache.org/commons/net/</url>
> </dependency>
>
> And the following in my maven.xml :
>
> <goal name="site-ftp">
> <ant:taskdef name="ftp"
> classname="org.apache.tools.ant.taskdefs.optional.net.FTP" />
> <ant:classpath>
> <ant:path refid="maven.dependency.classpath"/>
> <ant:pathelement
> location="${plugin.getDependencyPath('ant:ant-optional')}"/>
> <ant:pathelement
> location="${plugin.getDependencyPath('netcomponents:netcomponents')}"/>
> </ant:classpath>
> <ant:ftp server="${maven.deploy.site.address}"
> userid="${maven.deploy.site.username}"
> password="${maven.deploy.site.password}"
> remotedir="${maven.deploy.site.dir}"
> verbose="yes"
> >
> <ant:fileset dir="${maven.docs.dest}"/>
> </ant:ftp>
> </goal>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org