title: Why maven deploys jar-with-dependencies twice?
body: <p>I use maven-assembly-plugin to build jar with dependencies, then I want to deploy it into a Nexus repository.</p>
  
  <p>When I use <code>mvn deploy</code> everything works great, but when I try to use <code>mvn install deploy</code> all other modules also deploy well, but jar-with-dependencies deploys twice.</p>
  
  <p>Deploy plugin's configuration:</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.8.2&lt;/version&gt;
    &lt;configuration&gt;
      &lt;deployAtEnd&gt;true&lt;/deployAtEnd&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Assembly plugin's configuration:</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
    &lt;configuration&gt;
    &lt;descriptorRefs&gt;
      &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
    &lt;/descriptorRefs&gt;
      &lt;archive&gt;
        &lt;manifest&gt;
          &lt;mainClass&gt;com.test.Main&lt;/mainClass&gt;
        &lt;/manifest&gt;
      &lt;/archive&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p><strong>Question</strong>: Does anyone know why it is uploaded twice?</p>