title: maven deploy: how to restrict to deploy only the artifacts? (multi-module environment)
body: <p>I have a project with two modules: client and server. In the parent pom.xml I added info for the deployment phase, so as to deploy to a local directory:</p>
  
  <pre><code>&lt;project&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;org.my&lt;/groupId&gt;
    &lt;artifactId&gt;myTest&lt;/artifactId&gt;
    &lt;version&gt;0.1&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
    &lt;name&gt;myTest&lt;/name&gt;
    &lt;modules&gt;
      &lt;module&gt;server&lt;/module&gt;
      &lt;module&gt;client&lt;/module&gt;
    &lt;/modules&gt;
  
  &lt;!-- for: mvn deploy --&gt;
  &lt;distributionManagement&gt;
      &lt;repository&gt; 
          &lt;id&gt; myRepo &lt;/id&gt;
          &lt;url&gt; file:myDeployDir &lt;/url&gt;
      &lt;/repository&gt;
  &lt;/distributionManagement&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>When I run <code>mvn deploy</code> not only server-0.1.jar and client-0.1.jar get copied to <code>myDeploy</code> but a sum of 33 (!) files: *pom *sha1 *md5 *xml for pom, metadata and jar.</p>
  
  <p>How can I set that only server-0.1.jar and client-0.1.jar should be copied?</p>
  
  <p>Thanks!</p>