Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.1
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
It would be great if this plugin would support multiple source folders added by http://mojo.codehaus.org/build-helper-maven-plugin/ (or similar), and by default inspect sources from these folders instead of just $
{project.build.sourceDirectory}. Correspondingly with respect to test sources if those are configured to be included.
There are other plugins available solving this problem (somehow), eg:
Maybe they can give some inspiration for how to make this possible?
Issue Links
- is duplicated by
-
MCHECKSTYLE-77
Allow multiple sources directories in input
-
Many other plugins have the same limitation, and after looking at the pmd-plugin, I found a way to solve my issue temporarily simply letting <sourceDirectory> point to the parent project src/main instead of pointing to src/main/java.
This, however, breaks the xref-links since the src/main is not the actual source folder.
In my case, I have an additional source folder src/main/java-generated holding generated source code which I wan't to be separated from the hand written source in order to delete it whenever I run mvn clean...