FTP Plugin
Overview
FTP's artifacts from project's target directory to remote site(s). We use this plugin within the alakai release process. Hopefully it will be useful within other projects as well, i.e. non-alakai related projects.
Examples
The plugin is enabled via a build execution tag associated with the build's 'verify' phase. Note, for repeatable builds, you should 'peg' the plugin to a specific version as shown in the example below. The plugin will prompt you for indicated user's password on each remote server.
...
<build>
<plugins>
<plugin>
<groupId>org.bluestemsoftware.open.maven.plugin</groupId>
<artifactId>ftp-plugin</artifactId>
<version>1.0.0.0</version>
<executions>
<execution>
<id>ftp-artifacts</id>
<phase>verify</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<servers>
<server>
<url>alakai.fileburst.com</url>
<user>alakai</user>
<target>/httpdocs/downloads/</target>
<files>
<file>${project.build.finalName}-install.exe</file>
<file>${project.build.finalName}-install.jar</file>
<file>${project.build.finalName}-bin.tar.gz</file>
<file>${project.build.finalName}-install.pack-binaries.jar.pack.gz</file>
<file>${project.build.finalName}-install.pack-examples.jar.pack.gz</file>
<file>${project.build.finalName}-install.pack-sources.jar.pack.gz</file>
</files>
</server>
<server>
<url>alakai.org</url>
<user>site</user>
<target>/httpdocs/downloads/</target>
<files>
<file>${project.build.finalName}-install.exe.asc</file>
<file>${project.build.finalName}-install.exe.md5</file>
<file>${project.build.finalName}-install.exe.sha1</file>
<file>${project.build.finalName}-install.jar.asc</file>
<file>${project.build.finalName}-install.jar.md5</file>
<file>${project.build.finalName}-install.jar.sha1</file>
<file>${project.build.finalName}-bin.tar.gz.asc</file>
<file>${project.build.finalName}-bin.tar.gz.md5</file>
<file>${project.build.finalName}-bin.tar.gz.sha1</file>
<file>${project.build.finalName}-install.pack-binaries.jar.pack.gz.md5</file>
<file>${project.build.finalName}-install.pack-examples.jar.pack.gz.md5</file>
<file>${project.build.finalName}-install.pack-sources.jar.pack.gz.md5</file>
<file>${project.build.finalName}-install.pack-binaries.jar.pack.gz.sha1</file>
<file>${project.build.finalName}-install.pack-examples.jar.pack.gz.sha1</file>
<file>${project.build.finalName}-install.pack-sources.jar.pack.gz.sha1</file>
</files>
</server>
</servers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...