title: Maven ftp site plugin
body: <p>I want to upload my site directly into my ftp server. I'm tring to configure my pom.xml but I've some problem with plugin. I've read many guides on-line but none is unique, or at least there are strong differences.
  Have you any tip or trick?</p>
  
  <pre><code>&lt;profile&gt;
    &lt;id&gt;deploy&lt;/id&gt;
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;inherited&gt;false&lt;/inherited&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.6&lt;/version&gt;
          &lt;configuration&gt;
            &lt;target&gt;
              &lt;ftp action="send" server="server"
                remotedir="/a/b" userid="usr"
                password="pw" depends="no"
                verbose="yes" binary="yes"&gt;
                &lt;fileset dir="modules/my-module/target"&gt;
                  &lt;include name="my-static-file.zip" /&gt;
                &lt;/fileset&gt;
              &lt;/ftp&gt;
              &lt;taskdef name="ftp"              classname="org.apache.tools.ant.taskdefs.optional.net.FTP"
                classpathref="maven.plugin.classpath" /&gt;
            &lt;/target&gt;
          &lt;/configuration&gt;
          &lt;dependencies&gt;
            &lt;dependency&gt;
              &lt;groupId&gt;commons-net&lt;/groupId&gt;
              &lt;artifactId&gt;commons-net&lt;/artifactId&gt;
              &lt;version&gt;1.4.1&lt;/version&gt;
            &lt;/dependency&gt;
            &lt;dependency&gt;
              &lt;groupId&gt;ant&lt;/groupId&gt;
              &lt;artifactId&gt;ant-commons-net&lt;/artifactId&gt;
              &lt;version&gt;1.6.5&lt;/version&gt;
            &lt;/dependency&gt;
            &lt;dependency&gt;
              &lt;groupId&gt;ant&lt;/groupId&gt;
              &lt;artifactId&gt;ant-jsch&lt;/artifactId&gt;
              &lt;version&gt;1.6.5&lt;/version&gt;
            &lt;/dependency&gt;
            &lt;dependency&gt;
              &lt;groupId&gt;jsch&lt;/groupId&gt;
              &lt;artifactId&gt;jsch&lt;/artifactId&gt;
              &lt;version&gt;0.1.29&lt;/version&gt;
            &lt;/dependency&gt;
          &lt;/dependencies&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/profile&gt;
  </code></pre>