title: maven-assembly-plugin: How to change the output directory?
body: <p>I want to create a zip file containing the jar files and some resource files.
  But I have some problems to tell the assembly plugin to take files from a source folder and to put it into a target folder without retaining the sources folder structure. </p>
  
  <p>In detail:
  My files are placed in ../target/lib and they should be zipped to ../app/lib.
  This is an extract from my xml file which should do that job:</p>
  
  <pre><code>    &lt;fileSet&gt;
        &lt;directory&gt;${project.basedir}&lt;/directory&gt;
        &lt;outputDirectory&gt;app/lib&lt;/outputDirectory&gt;
        &lt;includes&gt;
          &lt;include&gt;target/lib/*.*&lt;/include&gt;
        &lt;/includes&gt;
      &lt;/fileSet&gt;
  </code></pre>
  
  <p>But what happens is:
  The files are placed to ../app/lib/target/lib/</p>
  
  <p>How can I tell the maven-assembly-plugin to omit the source file structure and just take the files?</p>