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>
I use the following maven-archetype-plugin to create my custom archetype.
mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5:create
Is there any other solution? Or did i miss something? Thanks