메이븐 ANTRUN- FTP전송



<
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>

댓글

이 블로그의 인기 게시물

어쩌다 마주친 spring Error

nginx 설정정리

이클립스에서 톰캣 publish할때 에러