How to create empty folders with maven archetype?
- by chrsk
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