You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benoit Xhenseval <be...@yahoo.com> on 2006/07/19 21:41:23 UTC

[M1] Using FTP in Maven 1.1... the answer....

Don't you love when the person who sends the question comes up with the answer... as if the process of asking the question triggers some brain activity...

You need to add more dependencies in your project.xml for Maven 1.1
        <dependency>
            <groupId>netcomponents</groupId>
            <artifactId>NetComponents</artifactId>
            <version>1.3.8a</version>
            <properties>
                <classloader>root</classloader>
            </properties>
        </dependency>
        <dependency>
            <groupId>ant</groupId>
            <artifactId>ant-commons-net</artifactId>
            <version>1.6.5</version>
            <properties>
                <classloader>root</classloader>
            </properties>
        </dependency>
        <dependency>
            <groupId>commons-net</groupId>
            <artifactId>commons-net</artifactId>
            <version>1.4.1</version>
            <properties>
                <classloader>root</classloader>
            </properties>
        </dependency>

  <goal name="ftp">
    <taskdef name="ftp" classname="org.apache.tools.ant.taskdefs.optional.net.FTP"/>
    <ant:ftp server="yourserver.domain.com" userid="foo" password="bar" 
             action="list" listing="list.txt">
      <fileset>
        <include name="*.html"/>
      </fileset>
    </ant:ftp>

  </goal>
Benoit

Re: [M1] Using FTP in Maven 1.1... the answer....

Posted by Jamie Bisotti <jb...@gmail.com>.
On 7/19/06, Benoit Xhenseval <be...@yahoo.com> wrote:
>
> Don't you love when the person who sends the question comes up with the
> answer... as if the process of asking the question triggers some brain
> activity...
>
> You need to add more dependencies in your project.xml for Maven 1.1
>         <dependency>
>             <groupId>netcomponents</groupId>
>             <artifactId>NetComponents</artifactId>
>             <version>1.3.8a</version>
>             <properties>
>                 <classloader>root</classloader>
>             </properties>
>         </dependency>
>         <dependency>
>             <groupId>ant</groupId>
>             <artifactId>ant-commons-net</artifactId>
>             <version>1.6.5</version>
>             <properties>
>                 <classloader>root</classloader>
>             </properties>
>         </dependency>
>         <dependency>
>             <groupId>commons-net</groupId>
>             <artifactId>commons-net</artifactId>
>             <version>1.4.1</version>
>             <properties>
>                 <classloader>root</classloader>
>             </properties>
>         </dependency>
>
>   <goal name="ftp">
>     <taskdef name="ftp" classname="
> org.apache.tools.ant.taskdefs.optional.net.FTP"/>
>     <ant:ftp server="yourserver.domain.com" userid="foo" password="bar"
>              action="list" listing="list.txt">
>       <fileset>
>         <include name="*.html"/>
>       </fileset>
>     </ant:ftp>
>
>   </goal>
> Benoit
>
>
FYI...Commons-net should be a drop-in replacement for NetComponents; you
shouldn't need both.  Though the original post is not included, so maybe you
already addressed that.

-- 
Jamie Bisotti