Resolution: Won't Fix
Affects Version/s: None
Fix Version/s: None
Number of attachments :
It would be great, if the build-helper plugin would support removing (re)sources just like it supports adding them.
This would be useful to workaround plugins which do not support configuration of the source roots or resources and will add to the wrong source roots when used in a non-default phase. The JAXB2 plugin, for example, does not support generating code during the generate-test-sources phase, since it will add its output directory to the compile source roots. Using the build-helper plugin, it already is possible to add that output directory to the test compile source roots and use the JAXB2 plugin during the generate-test-sources phase, but then still the output directory is added to the compile source roots and test classes are visible to the javadoc plugin, for example. The build-helper plugin could be used to add a directory to the test source roots and to remove that same directory from the compile source roots.