gavioto / m2e-extensions

Automatically exported from code.google.com/p/m2e-extensions
0 stars 0 forks source link

PMD not ignoring generated-sources #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. create a target/generated-sources directory
2. Put a file in there which violates a PMD rule
3. add generated-sources as a source directory
4. Save/Build

PMD will mark up the file with violations.

Note, we tried adding target/generated-sources as a excludes but it puts it as 
src/main/java/target/generated-sources.  (We patched our local copy to just 
always exclude mavenProject.getBuild().getDirectory() for now).

Original issue reported on code.google.com by jatw...@linuxstuff.org on 23 Sep 2010 at 10:53

GoogleCodeExporter commented 9 years ago
I've committed this patch as of f0453cdde3 - it shouldn't break others; and if 
it does we can easily roll it back (change is in 
pmd.MavenPluginConfigurationTranslator)

Original comment by mr.id...@gmail.com on 20 Dec 2010 at 5:26