Hi Andy,
there must be something wrong with your configuration. i gave it a try using
an (adapted version) example of the wagon-plugin
https://svn.codehaus.org/mojo/trunk/mojo/wagon-maven-plugin/src/it/ftp-download/
and it is working the way i expected it.
As you can see in the output, it first lists the entries of ftp.ibiblio.org/..
(which is empty) and then tries to upload the pom.xml file to
You can use this example and adapt it to your needs.
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.entner</groupId>
<artifactId>wagon-test</artifactId>
<packaging>pom</packaging>
<version>testing</version>
<build>
<defaultGoal>package</defaultGoal>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ftp</artifactId>
<version>1.0-beta-6</version>
</extension>
</extensions>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
<serverId>ibiblio.ftp</serverId>
<url>ftp://ftp.ibiblio.org/incoming/linux</url>
<!-- need additional settings.xml inorder to get this to work
<server>
<id>ibiblio.ftp</id>
<username>anonymous</username>
<password></password>
</server>
-->
</configuration>
<executions>
<execution>
<id>ftp-download-single</id>
<phase>package</phase>
<goals>
<goal>download</goal>
</goals>
<configuration>
<fromFile>README</fromFile>
<toDir>${downloadDirectory.base}</toDir>
</configuration>
</execution>
<execution>
<id>ftp-download-no-recursive</id>
<phase>package</phase>
<goals>
<goal>download</goal>
</goals>
<configuration>
<skip>false</skip>
<toDir>${downloadDirectory.base}/norecursive</toDir>
</configuration>
</execution>
<execution>
<id>ftp-list-no-recursive</id>
<phase>package</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<skip>false</skip>
<url>http://ftp.test.com</url>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<version>testing</version>
<downloadDirectory.base>${project.build.directory}/it</downloadDirectory.base>
</properties>
</project>
noname:wagon-test harry$ mvn install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Unnamed - org.entner:wagon-test:pom:testing
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [wagon:download {execution: ftp-download-single}]
[INFO] Skip execution.
[INFO] [wagon:download {execution: ftp-download-no-recursive}]
[INFO] Scanning remote file system: ftp://ftp.ibiblio.org/incoming/linux ...
[INFO] Nothing to download.
[INFO] [wagon:upload {execution: ftp-list-no-recursive}]
[INFO] Uploading /Users/harry/Desktop/workspace/wagon-test/pom.xml to
http://ftp.test.com/pom.xml ...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error handling resource
Embedded error: ftp.test.com
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Tue Apr 06 19:11:29 CEST 2010
[INFO] Final Memory: 18M/80M
[INFO]
------------------------------------------------------------------------
noname:wagon-test harry$
in order to run it, you have to add the server configuration to your
settings.xml
<server>
<id>ibiblio.ftp</id>
<username>anonymous</username>
<password></password>
</server>
cheers, harald