title: Maven assembly plugin: include file without taking its path folders
body: <p>I'm using maven-assembly-plugin to include files from a dependency ZIP (also generated with assembly plugin) into a final release ZIP file.</p>
  
  <p>The issue is that I want to select which files from the dependency to get, but not copying the folder path where those files are. Just the files.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;assembly&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;includes&gt;
                  &lt;include&gt;package:artifactId:zip:*&lt;/include&gt;
              &lt;/includes&gt;
              &lt;outputDirectory&gt;sql/update/01.00.00_to_01.01.00&lt;/outputDirectory&gt;
              &lt;unpack&gt;true&lt;/unpack&gt;
              &lt;unpackOptions&gt;
                  &lt;includes&gt;
                      &lt;include&gt;oracle/update/1_alter_schema.sql&lt;/include&gt;
                      &lt;include&gt;oracle/update/2_insert_data.sql&lt;/include&gt;
                  &lt;/includes&gt;
              &lt;/unpackOptions&gt;
              &lt;useProjectArtifact&gt;false&lt;/useProjectArtifact&gt;
              &lt;useTransitiveDependencies&gt;false&lt;/useTransitiveDependencies&gt;
          &lt;/dependencySet&gt;
      &lt;/dependencySet&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>This copies the required files like this:</p>
  
  <ul>
  <li>sql/update/01.00.00_to_01.01.00/<em>oracle/update</em>/1_alter_schema.sql </li>
  <li>sql/update/01.00.00_to_01.01.00/<em>oracle/update</em>/2_insert_data.sql</li>
  </ul>
  
  <p>I would like to copy just the files without the original <em>oracle/update/</em> folder, resulting in this folder structure:</p>
  
  <ul>
  <li>sql/update/01.00.00_to_01.01.00/1_alter_schema.sql</li>
  <li>sql/update/01.00.00_to_01.01.00/2_insert_data.sql</li>
  </ul>
  
  <p>The dependency ZIP contains many files used by different projects, therefore the structure to differentiate oracle from sql-server files makes sense there, but for this distribution I don't need those folders, just the files.</p>
  
  <p>Does somebody knows if this is possible with maven-assembly-plugin?</p>
  
  <p>Many thanks in advance!</p>