title: How to create empty folders with maven archetype?
body: <p>There is an existing issue for this approach, located on <a href="http://jira.codehaus.org/browse/ARCHETYPE-57" rel="noreferrer">Codehaus JIRA #ARCHETYPE-57</a>, but all instructions listed in this ticket failed for me. Also the blog post of marekdec <a href="http://marekdec.wordpress.com/2010/01/25/how-to-get-maven-archetype-to-generate-empty-directories/" rel="noreferrer">How to get maven archetype to generate empty directories</a> fails for me.</p>
  
  <p>The trick within the <code>archetype.xml</code> with the trailing <code>/</code> doesnt works for me:</p>
  
  <pre><code>&lt;resources&gt;
    &lt;resource&gt;src/main/webapp/&lt;/resource&gt;
  </code></pre>
  
  <h2>    </h2>
  
  <pre><code>Unable to find resource 'archetype-resources/src/main/webapp/'
  </code></pre>
  
  <p>Also the <code>fileSet</code> directory in <code>archetype-metadata.xml</code> does not work for me:</p>
  
  <pre><code>&lt;fileSet filtered="true" encoding="UTF-8"&gt;
   &lt;directory&gt;src/main/webapp/&lt;/directory&gt;
  &lt;/fileSet&gt;
  </code></pre>
  
  <p>I use the following maven-archetype-plugin to create my custom archetype.</p>
  
  <pre><code>mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5:create
  </code></pre>
  
  <p>Is there any other solution? Or did i miss something? Thanks</p>