title: How do I include an empty directory in a maven assembly?
body: <p>In what must be a common occurence, I need to include an empty directory in an assembly. In my case it is logs/.</p>
  
  <p>I've tried different variations in the assembly descriptor like:</p>
  
  <pre><code>&lt;fileSet&gt;
    &lt;directory&gt;${basedir}/target&lt;/directory&gt;
    &lt;includes&gt;
      &lt;include&gt;doesntexist&lt;/include&gt;
    &lt;/includes&gt;
    &lt;outputDirectory&gt;/logs&lt;/outputDirectory&gt;
    &lt;fileMode&gt;0644&lt;/fileMode&gt;
  &lt;/fileSet&gt;
  </code></pre>
  
  <p>and the directory just gets pruned.</p>
  
  <p>I tried to exclude as well, but that still included lots of stuff:</p>
  
  <pre><code>&lt;fileSet&gt;
    &lt;directory&gt;${basedir}/target&lt;/directory&gt;
    &lt;excludes&gt;
      &lt;exclude&gt;*&lt;/exclude&gt;
    &lt;/excludes&gt;
    &lt;outputDirectory&gt;/logs&lt;/outputDirectory&gt;
    &lt;fileMode&gt;0644&lt;/fileMode&gt;
  &lt;/fileSet&gt;
  </code></pre>