[ http://jira.codehaus.org/browse/MRESOURCES-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86205 ]
Peter Anning commented on MRESOURCES-36: ---------------------------------------- Not insane at all we have a valid reason for wanting to do the same thing. I have patched the resources plugin to take a new parameter includeEmptyDirectories just add the following configuration: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-zip-plugin</artifactId> <version>2.2</version> <extensions>true</extensions> <configuration> <includeEmptyDirs>true</includeEmptyDirs> </configuration> </plugin> If the directory is empty then it will appear in the output. If the directory is not empty and a filtering rule excludes all its files it will _NOT_ appear in the output. Peter > resource copy to target/classes: empty directories are ignored > -------------------------------------------------------------- > > Key: MRESOURCES-36 > URL: http://jira.codehaus.org/browse/MRESOURCES-36 > Project: Maven 2.x Resources Plugin > Issue Type: Improvement > Affects Versions: 2.2 > Reporter: Martin Vysny > > Hi, > I have several directories located in the src/test/resources and I > need them to be copied to target/test-classes. This is of course handled > by maven-resources-plugin, however it does not copy empty directories. I > know it sounds insane to access empty dirs using classloader but I have > my reasons ;) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira