You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by neeraj daffodil <ne...@gmail.com> on 2006/09/07 13:34:18 UTC

FTP deployment of ear in maven1.0.2

hi all i want to deploy the ear file in remote ftp server by using following
code in maven.xml

<goal name="ftpcopy">
  <ftp server="203.187.242.74"
       userid="neeraj"
       password="hrhk">

    <fileset dir="C:\Program
Files\xampp\htdocs\repository\com.daffodil.dak.gwt\ears">
 <include name="**/*.ear"/>

 </fileset>

  </ftp>
  </goal>

After this i got the following result

 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

BUILD SUCCESSFUL
Total time: 3 seconds
Finished at: Thu Sep 07 16:49:34 GMT+05:30 2006

but nothing is deployed in the remote server

after that i tried this

<goal name="ftpcopy">
  <ftp server="203.187.242.74"
       userid="neeraj"
       password="hrhk">

    <fileset dir="C:\Program
Files\xampp\htdocs\repository\com.daffodil.dak.gwt\ears">
 <include name="**/*.ear"/>

 </fileset>
 <echo>Testing FTP end .... </echo>


  </ftp>
  </goal>

and got the result

 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

ftpcopy:
<ftp password="hrhk" userid="neeraj" server="203.187.242.74">    [echo]
Testing FTP end ....
BUILD SUCCESSFUL
Total time: 3 seconds

nothing deployed and why this come i do not know ,can any one know why this
is happend and how i can achieve my task

any link and any kind of help is most welcome

Regards

Neeraj Singh Bisht

+91 09811921970

Re: FTP deployment of ear in maven1.0.2

Posted by Arnaud HERITIER <ah...@gmail.com>.
There was some known bugs with ftp tasks in maven 1.0.X.
It was resolved in m1.1

In m1.0 you have to add as dependencies CommonsNet, and some other jars (see
the ant:ftp task doc)


On 9/7/06, neeraj daffodil <ne...@gmail.com> wrote:
>
> hi all i want to deploy the ear file in remote ftp server by using
> following
> code in maven.xml
>
> <goal name="ftpcopy">
>   <ftp server="203.187.242.74"
>        userid="neeraj"
>        password="hrhk">
>
>     <fileset dir="C:\Program
> Files\xampp\htdocs\repository\com.daffodil.dak.gwt\ears">
> <include name="**/*.ear"/>
>
> </fileset>
>
>   </ftp>
>   </goal>
>
> After this i got the following result
>
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
>
> BUILD SUCCESSFUL
> Total time: 3 seconds
> Finished at: Thu Sep 07 16:49:34 GMT+05:30 2006
>
> but nothing is deployed in the remote server
>
> after that i tried this
>
> <goal name="ftpcopy">
>   <ftp server="203.187.242.74"
>        userid="neeraj"
>        password="hrhk">
>
>     <fileset dir="C:\Program
> Files\xampp\htdocs\repository\com.daffodil.dak.gwt\ears">
> <include name="**/*.ear"/>
>
> </fileset>
> <echo>Testing FTP end .... </echo>
>
>
>   </ftp>
>   </goal>
>
> and got the result
>
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
>
> build:start:
>
> ftpcopy:
> <ftp password="hrhk" userid="neeraj" server="203.187.242.74">    [echo]
> Testing FTP end ....
> BUILD SUCCESSFUL
> Total time: 3 seconds
>
> nothing deployed and why this come i do not know ,can any one know why
> this
> is happend and how i can achieve my task
>
> any link and any kind of help is most welcome
>
> Regards
>
> Neeraj Singh Bisht
>
> +91 09811921970
>
>