title: The maven assembly plugin is not using the finalName for installing with attach=true?
body: <p>I have configured following assembly:</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.2-beta-5&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;${project.name}-test-assembly&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;single&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt;
                          &lt;finalName&gt;${project.name}-test&lt;/finalName&gt;
                          &lt;filters&gt;
                              &lt;filter&gt;src/assemble/test/distribution.properties&lt;/filter&gt;
                          &lt;/filters&gt;
                          &lt;descriptors&gt;
                              &lt;descriptor&gt;src/assemble/distribution.xml&lt;/descriptor&gt;
                          &lt;/descriptors&gt;
                          &lt;attach&gt;true&lt;/attach&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;${project.name}-prod-assembly&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;single&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt;
                          &lt;finalName&gt;${project.name}-prod&lt;/finalName&gt;
                          &lt;filters&gt;
                              &lt;filter&gt;src/assemble/prod/distribution.properties&lt;/filter&gt;
                          &lt;/filters&gt;
                          &lt;descriptors&gt;
                              &lt;descriptor&gt;src/assemble/distribution.xml&lt;/descriptor&gt;
                          &lt;/descriptors&gt;
                          &lt;attach&gt;true&lt;/attach&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>This produced two zip-files:</p>
  
  <ul>
  <li>distribution-prod.zip</li>
  <li>distribution-test.zip</li>
  </ul>
  
  <p>My expectation for the property <strong>attach=true</strong> is, that the two zip-files are installed with the name as given in property <strong>finalName</strong>.
  But the result is, only one file is installed (attached) to the artifact.
  The maven protocol is:</p>
  
  <ul>
  <li>distrib-0.1-SNAPSHOT.zip</li>
  <li>distrib-0.1-SNAPSHOT.zip</li>
  </ul>
  
  <p>The plugin is using the artifact-id instead of property finalName!
  Is this a bug?</p>
  
  <p>The last installation is overwriting the first one.
  What can i do to install this two files with different names?</p>
  
  <p>Thanks for your investigation.
  Roland</p>