1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
<build>
....
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>deploy</phase>
<configuration>
<tasks>
<echo>Deploy to FTP</echo>
<ftp server="serveur_xxx"
port="21"
remotedir="/incoming/pub"
userid="..."
password="..."
passive="yes"
depends="yes"
binary="yes">
<fileset dir="./target/assembly">
<include name="**/*"/>
</fileset>
</ftp>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugins>
....
<build> |