Details
-
Type:
Wish
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
It would be great, if the build-helper plugin would support removing (re)sources just like it supports adding them.
remove-source
remove-test-source
remove-resource
remove-test-resource
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.
Issue Links
- is duplicated by
-
MBUILDHELPER-26
remove-source mojo?
-
based on comments on dev@mojo, sounds like this is best fixed at the source