<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>ftp</id>
<phase>pre-site</phase>
<configuration>
<tasks>
<echo>FTP Make Directory : "/${ftp.path}/${project.artifactId}"</echo>
<ftp action="mkdir" server="localhost"
remotedir="/${ftp.path}/${project.artifactId}"
userid="admin" password="admin" depends="yes"
verbose="no" chmod="777">
</ftp>
<echo>FTP Delete Files : "/${ftp.path}/${project.artifactId}"</echo>
<ftp action="del" server="localhost"
remotedir="/${ftp.path}/${project.artifactId}"
userid="admin" password="admin"
skipFailedTransfers="true" ignoreNoncriticalErrors="true">
<fileset>
<include name="**/"/>
</fileset>
</ftp>
<echo>FTP Remove Directory : "/${ftp.path}/${project.artifactId}"</echo>
<ftp action="rmdir" server="localhost"
remotedir="/${ftp.path}/${project.artifactId}"
userid="admin" password="admin"
skipFailedTransfers="true" ignoreNoncriticalErrors="true">
<fileset>
<include name="**/"/>
</fileset>
</ftp>
<echo>FTP Make Directory : "/${ftp.path}/${project.artifactId}"</echo>
<ftp action="mkdir" server="localhost"
remotedir="/${ftp.path}/${project.artifactId}"
userid="admin" password="admin" depends="yes"
verbose="no" chmod="777">
</ftp>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-commons-net</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>1.4.1</version>
</dependency>
</dependencies>
</plugin>
댓글
댓글 쓰기