You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Durbha, Praveen (GE Healthcare)" <Pr...@ge.com> on 2008/11/03 23:26:03 UTC
Setting up an ANT FTP Task using maven-antrun plugin
HI,
I am trying to set up an ANT FTP task using maven-antrun-plugin as
below..but it errors out with the following error..
I have the oro.jar and commons-net.jar in my C:\ant\lib folder..
Thanks!
Embedded error: Could not create task or type of type: ftp.
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<configuration>
<tasks>
<ftp server="gbi-test" userid="gbitestuser"
password="testgbi123">
<fileset
dir="C:\dev\views\gbi_view\cbs_hlp\target\gbi_backups"/>
</ftp>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
RE: Setting up an ANT FTP Task using maven-antrun plugin
Posted by "Durbha, Praveen (GE Healthcare)" <Pr...@ge.com>.
Thanks Wayne, that worked wonderfully!
-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com]
Sent: Monday, November 03, 2008 4:31 PM
To: Maven Users List
Subject: Re: Setting up an ANT FTP Task using maven-antrun plugin
> I am trying to set up an ANT FTP task using maven-antrun-plugin as
> below..but it errors out with the following error..
>
> I have the oro.jar and commons-net.jar in my C:\ant\lib folder..
You will need to add plugin dependencies to the maven-antrun-plugin
itself to specify the jars necessary for the ftp task to be successful.
This is detailed in the documentation for the plugin:
http://maven.apache.org/plugins/maven-antrun-plugin/examples/customTasks
.html
Alternatively, you may want to consider using the maven-deploy-plugin
instead.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Setting up an ANT FTP Task using maven-antrun plugin
Posted by Wayne Fay <wa...@gmail.com>.
> I am trying to set up an ANT FTP task using maven-antrun-plugin as
> below..but it errors out with the following error..
>
> I have the oro.jar and commons-net.jar in my C:\ant\lib folder..
You will need to add plugin dependencies to the maven-antrun-plugin
itself to specify the jars necessary for the ftp task to be
successful. This is detailed in the documentation for the plugin:
http://maven.apache.org/plugins/maven-antrun-plugin/examples/customTasks.html
Alternatively, you may want to consider using the maven-deploy-plugin instead.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org