[ https://jira.codehaus.org/browse/MCHECKSTYLE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=353712#comment-353712 ]
Anthony Whitford commented on MCHECKSTYLE-70: --------------------------------------------- This change that now applies Checkstyle to generated-source is a major problem for me too. I thought that I could work around it by being explicit like: {code:xml} <configuration> <sourceDirectories> <sourceDirectory>${basedir}/src/main/java</sourceDirectory> </sourceDirectories> <testSourceDirectories> <testSourceDirectory>${basedir}/src/test/java</testSourceDirectory> </testSourceDirectories> </configuration> {code} but this doesn't seem to make it work. Note that for the PMD plugin, it appears that it has an [{{excludeRoots}}|http://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#excludeRoots] configuration property, and I use it like: {code:xml} <compileSourceRoots>${project.compileSourceRoots}</compileSourceRoots> <excludeRoots> <excludeRoot>target/generated-sources/jaxb</excludeRoot> <excludeRoot>target/generated-sources/xjc</excludeRoot> <excludeRoot>target/generated-sources/wsimport</excludeRoot> </excludeRoots> {code} > Support for multiple source folders > ----------------------------------- > > Key: MCHECKSTYLE-70 > URL: https://jira.codehaus.org/browse/MCHECKSTYLE-70 > Project: Maven Checkstyle Plugin > Issue Type: Improvement > Affects Versions: 2.1 > Reporter: Jan Palmquist > Assignee: Robert Scholte > Priority: Minor > Fix For: 2.13 > > > 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: > * http://mojo.codehaus.org/jdepend-maven-plugin/ > * http://mojo.codehaus.org/findbugs-maven-plugin/ > Maybe they can give some inspiration for how to make this possible? -- This message was sent by Atlassian JIRA (v6.1.6#6162)