By default during the build process maven is removing the empty directories.
Do you know if a parameter can be specified in the pom to instruct maven to include empty di
According to this ticket MRESOURCES-36, there should be a element, but only for Maven Resources Plugin 2.3.
org.apache.maven.plugins
maven-resources-plugin
2.3
true
For Maven versions which included an older version of the Resources plugin:
Until this issue is fixed, here is a workaround I've been using successfully.
Add this plugin element intoproject/build/pluginsin yourpom.xml, and change the dir in the mkdir task.You can have multiple
elements for multiple directories. Themkdirtask does nothing if the directory has already been copied by the resources plugin.
org.apache.maven.plugins
maven-antrun-plugin
create-empty-directory
process-classes
run
This originally came from the openejb-standalone pom.xml in the openejb project.