How to create empty folders with maven archetype?

Posted by chrsk on Stack Overflow See other posts from Stack Overflow or by chrsk
Published on 2010-05-07T07:38:46Z Indexed on 2010/05/07 7:48 UTC
Read the original article Hit count: 407

Filed under:
|

There is an existing issue for this approach, located on Codehaus JIRA #ARCHETYPE-57, but all instructions listed in this ticket failed for me. Also the blog post of marekdec How to get maven archetype to generate empty directories fails for me.

The trick within the archetype.xml with the trailing / doesnt works for me:

<resources>
  <resource>src/main/webapp/</resource>

Unable to find resource 'archetype-resources/src/main/webapp/'

Also the fileSet directory in archetype-metadata.xml does not work for me:

<fileSet filtered="true" encoding="UTF-8">
 <directory>src/main/webapp/</directory>
</fileSet>

Is there any other solution? Or did i miss something? Thanks

© Stack Overflow or respective owner

Related posts about maven

Related posts about archetypes