title: Maven: copying directories using exec plugin
body: <p>I'm using Maven 3.0.3.  I'm having trouble using the Maven exec plugin to copy the contents of one directory to another.  Sadly, when I include this plugin in my pom.xml …</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.1.1&lt;/version&gt;
      &lt;configuration&gt;
          &lt;executable&gt;cp&lt;/executable&gt;
          &lt;arguments&gt;
              &lt;argument&gt;-r&lt;/argument&gt;
              &lt;argument&gt;web-app/*&lt;/argument&gt;
              &lt;argument&gt;src/main/webapp&lt;/argument&gt;
          &lt;/arguments&gt;
      &lt;/configuration&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;phase&gt;verify&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;exec&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>It isn't working.  I get the error below …</p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:exec (default-cli) on project jx: Result of /bin/sh -c cd /Users/davea/Documents/workspace/mycoUSA2/Technology/nna/myco2usa/jx &amp;&amp; cp -r 'web-app/*' src/main/webapp execution is: '1'. -&gt; [Help 1]
  </code></pre>
  
  <p>Does anyone know how I can modify my plugin config to copy the contents of one directory to another?  Thanks, - Dave</p>