Deprecation Notice

This Wagon provider is deprecated and will be removed in version 4.0.0.

Maven Wagon FTP

This component is an implementation of Wagon provider for FTP access. It uses commons-net as lower level layer.

It enables Maven to use remote repositories stored in FTP servers. It doesn't allow deployment of directories.

Features

  • Get files from FTP Server
  • Deploy files to FTP server

Configuration

  • passiveMode default: true
  • controlEncoding default: "ISO-8859-1", set from org.apache.commons.net.ftp.FTP.DEFAULT_CONTROL_ENCODING
  • securityProtocol default: TLS, FTPS security protocol, TLS or SSL
  • implicit default: false
  • endpointChecking default: true

Sample Configuration

pom.xml

<project>
    ...
    <distributionManagement>
        ...
        <site>
            <id>ftp.server.id</id>
            <!--<url>ftp://ftp.example.com</url>-->
            <url>ftps://secure.example.com</url>
        </site>
    </distributionManagement>
    ...
    <build>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ftp</artifactId>
            </extension>
        </extensions>
        ...
    </build>
    ...
</project>

settings.xml

<settings>
    ...
    <servers>
        ...
        <server>
            <id>ftp.server.id</id>
            <username>username</username>
            <password>password</password>
            <configuration>
                <endpointChecking>false</endpointChecking>
            </configuration>
        </server>
    </servers>
<settings>