Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.3
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
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 ![]()
Issue Links
- depends upon
-
MSHARED-68
Parameter to copy empty directory.
-
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