Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-beta-1
-
None
-
None
Description
As soon as you use excludes in your resources, the default excludes are overwritten. So you have to add them all "by hand" in your pom.
I think this is due to a wrong call order in the resource plugin:
DirectoryScanner scanner = new DirectoryScanner();
scanner.addDefaultExcludes();
...
if (excludes)
scanner.setExcludes(...) <!-- This overwrites the defaults -->
Moving scanner.addDefaultExcludes() at the end of this code block solves the problem.
Of course in this case you don't have a change to not use the default excludes