title: Can I create empty directories while packaging using maven-assembly-plugin?
body: <p>I want to create empty directory structure while doing the packaging using maven-assembly-plugin. I am successful in including all the files, but not creating the empty ones,</p>
  
  <pre><code>opt/SP/myprod/bin/*  (contains files)
  opt/SP/myprod/lib/*  (contains files)
  opt/SP/myprod/conf/* (contains files)
  var/SP/myprod/run    (Empty directories)
  var/SP/myprod/log    (Empty directories)
  var/SP/myprod/tmp    (Empty directories)
  </code></pre>
  
  <p>The below one is my assembly file,</p>
  
  <pre><code>&lt;id&gt;stage&lt;/id&gt;
  &lt;formats&gt;
      &lt;format&gt;tar.gz&lt;/format&gt;
      &lt;format&gt;zip&lt;/format&gt;
  &lt;/formats&gt;
  
  &lt;fileSets filtered="true" encoding="UTF-8"&gt;
  
      &lt;fileSet&gt;
          &lt;directory&gt;${run.dir}&lt;/directory&gt;
          &lt;fileMode&gt;755&lt;/fileMode&gt;
      &lt;/fileSet&gt;
  
      &lt;fileSet&gt;
          &lt;directory&gt;${tmp.dir}&lt;/directory&gt;
          &lt;fileMode&gt;755&lt;/fileMode&gt;
      &lt;/fileSet&gt;
  
      &lt;fileSet&gt;
          &lt;directory&gt;${log.dir}&lt;/directory&gt;
          &lt;fileMode&gt;755&lt;/fileMode&gt;
      &lt;/fileSet&gt;
  
      &lt;fileSet&gt;
          &lt;directory&gt;${basedir}/config&lt;/directory&gt;
          &lt;outputDirectory&gt;${install.dir}/config&lt;/outputDirectory&gt;
          &lt;fileMode&gt;755&lt;/fileMode&gt;
      &lt;/fileSet&gt;
  
      &lt;fileSet&gt;
          &lt;directory&gt;${basedir}/bin&lt;/directory&gt;
          &lt;outputDirectory&gt;${install.dir}/bin&lt;/outputDirectory&gt;
          &lt;fileMode&gt;755&lt;/fileMode&gt;
      &lt;/fileSet&gt;
  
      &lt;fileSet&gt;
          &lt;directory&gt;${basedir}/images&lt;/directory&gt;
          &lt;outputDirectory&gt;${install.dir}/images&lt;/outputDirectory&gt;
          &lt;fileMode&gt;755&lt;/fileMode&gt;
      &lt;/fileSet&gt;
  
      &lt;fileSet&gt;
          &lt;directory&gt;${basedir}/package-scripts&lt;/directory&gt;
          &lt;outputDirectory&gt;${install.dir}/package-scripts&lt;/outputDirectory&gt;
          &lt;fileMode&gt;755&lt;/fileMode&gt;
      &lt;/fileSet&gt;
  
      &lt;fileSet&gt;
          &lt;directory&gt;${project.build.directory}&lt;/directory&gt;
          &lt;outputDirectory&gt;${install.dir}/lib&lt;/outputDirectory&gt;
          &lt;includes&gt;
              &lt;include&gt;myfile.jar&lt;/include&gt;
          &lt;/includes&gt;
          &lt;fileMode&gt;755&lt;/fileMode&gt;
      &lt;/fileSet&gt;
  
      &lt;fileSet&gt;
          &lt;directory&gt;${project.build.directory}/lib&lt;/directory&gt;
          &lt;outputDirectory&gt;${install.dir}/lib&lt;/outputDirectory&gt;
          &lt;fileMode&gt;755&lt;/fileMode&gt;
      &lt;/fileSet&gt;
  
  &lt;/fileSets&gt;
  </code></pre>
  
  <p>So, I tried the simple "directory" tag as recommended in one of the blog, but no luck.</p>
  
  <p>Could any one help me please?</p>