title: How to rename result assembly to have in installed in .m2
body: <p>I have multimudule project. One of module is assembly, having descriptor to put  core (library) and examples in one zip.     </p>
  
  <pre><code>&lt;assembly&gt;
  &lt;id&gt;assembly&lt;/id&gt;
  &lt;formats&gt;
      &lt;format&gt;zip&lt;/format&gt;
      &lt;format&gt;dir&lt;/format&gt;
  &lt;/formats&gt;
  &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;
  
  &lt;dependencySets&gt;
      &lt;dependencySet&gt;
          &lt;useTransitiveDependencies&gt;false&lt;/useTransitiveDependencies&gt;
          &lt;outputDirectory&gt;/&lt;/outputDirectory&gt;
      &lt;/dependencySet&gt;
  &lt;/dependencySets&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is my assemly, and this is plugin configuration</p>
  
  <pre><code>&lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;descriptors&gt;
                      &lt;descriptor&gt;assembly.xml&lt;/descriptor&gt;
                  &lt;/descriptors&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;package-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;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt; 
  </code></pre>
  
  <p>I have resulting zip installed in my .m2 folder fine but the name is assembly-ccp-.... I need to rename it to my-project, it could be done with 2 lines in plugin:</p>
  
  <pre><code>&lt;finalName&gt;my-project&lt;/finalName&gt;
  &lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt;
  </code></pre>
  
  <p>It is good in target folder (i can see my-project.zip), but now resulting zip is not installed in my .m2 folder. So, the question is how to make it installed in my .m2 folder?
  (running from parent project with: clean install)</p>
  
  <p>Found output:</p>
  
  <pre><code>[INFO] Building Assebly
  [INFO]    task-segment: [clean, install]
  [INFO] ------------------------------------------------------------------------
  [INFO] [clean:clean {execution: default-clean}]
  [INFO] Deleting directory /home/dmitry/mbus/trunk/assembly/target
  [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
  [INFO] Preparing source:jar
  [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
  [INFO] No goals needed for project - skipping
  [INFO] [source:jar {execution: default}]
  [INFO] [assembly:single {execution: package-assembly}]
  [INFO] Reading assembly descriptor: assembly.xml
  [INFO] Processing DependencySet (output=/)
  [WARNING] Cannot include project artifact: com.comcast.xcal.mbus:assembly:pom:CCP-LATEST-SNAPSHOT; it doesn't have an associated file or directory.
  [INFO] Building zip: /home/dmitry/mbus/trunk/assembly/target/my-project.zip
  [WARNING] Configuration options: 'appendAssemblyId' is set to false, and 'classifier' is missing.
  Instead of attaching the assembly file: /home/dmitry/mbus/trunk/assembly/target/my-project.zip, it will become the file for main project artifact.
  NOTE: If multiple descriptors or descriptor-formats are provided for this project, the value of this file will be non-deterministic!
  [INFO] Processing DependencySet (output=/)
  [INFO] Copying files to /home/dmitry/mbus/trunk/assembly/target/my-project.dir
  [WARNING] Assembly file: /home/dmitry/mbus/trunk/assembly/target/my-project.dir is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment.
  [INFO] [install:install {execution: default-install}]
  [INFO] Installing /home/dmitry/mbus/trunk/assembly/pom.xml to /home/dmitry/.m2/repository/com/mbus/assembly/CCP-LATEST-SNAPSHOT/assembly-CCP-LATEST-SNAPSHOT.pom
  [INFO] [javadoc:jar {execution: default}]
  [INFO] Not executing Javadoc as the project is not a Java classpath-capable package
  [INFO] 
  [INFO] 
  </code></pre>