title: Maven creating flat zip assembly
body: <p>To Maven gurus out there:
  I'm trying to package non-java project artifacts (.NET) into a single zip file. I'm having 2 problems:</p>
  
  <p>If I change packaging in my POM to zip <code>&lt;packaging&gt;zip&lt;/packaging&gt;</code>, I get this error message: <code>[INFO] Cannot find lifecycle mapping for packaging: 'zip'.
  Component descriptor cannot be found in the component repository: org.apache.mav
  en.lifecycle.mapping.LifecycleMappingzip.</code> OK, no big deal - I changed it to <code>&lt;packaging&gt;pom&lt;/packaging&gt;</code> to get rid of useless jar that is otherwise created in the target dir</p>
  
  <p>My main problem is that files I'm packaging into ZIP are nested within few directories but I need put these into top directory of ZIP. Here's my assembly file:</p>
  
  <pre><code> &lt;assembly&gt;
    &lt;id&gt;bin&lt;/id&gt;
    &lt;formats&gt;
      &lt;format&gt;zip&lt;/format&gt;
    &lt;/formats&gt;
    &lt;fileSets&gt;
      &lt;fileSet&gt;
        &lt;directory&gt;${basedir}/${project.artifactId}&lt;/directory&gt;
        &lt;includes&gt;
          &lt;include&gt;**/Bin/Release/*.dll&lt;/include&gt;
          &lt;include&gt;**/Bin/Release/*.pdb&lt;/include&gt;
        &lt;/includes&gt;
      &lt;/fileSet&gt;
    &lt;/fileSets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>When I run this - I'll get ZIP file but files will be nested starting with C:\ followed by full path. To give you idea - project dumps it's binaries into the following structure
  <code>ProjectFoo\ProjectFoo\subproject1\Bin\Release\foo.dll</code> and I need <code>ZIP\foo.dll</code></p>
  
  <p>Here's assembly plugin configuration:</p>
  
  <pre><code>&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;zip&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;
  </code></pre>
  
  <p></p>
  
  <p>Maybe I just need to use antrun and execute ant zip task?</p>