I am trying to eliminate our CI and I did not know that the PMD reports violated the generated code How to save (not Src-gen:
) Lt; ExcludeRoots & gt; under section mvn help: effect-pom was used to verify my configuration, and POM looks like I want I think this indicates the correct folder.
& lt; plugins & gt; & lt; group & gt; org.apache.maven Plugins & lt; / group & gt; & lt; ar TifactId & gt; Maven-PMD-plugin & lt; / artifactId> & lt; version & gt; $ {PMD-Maven-plugin.version} & lt; / version & gt; & lt; configuration & gt; LT; linkXref & gt; False & lt; / linkXref & gt; & lt; sourceEncoding & gt; $ {project.build.sourceEncoding} & lt; / sourceEncoding & gt; & lt; minimumTokens & gt; $ {pmd.minimum .tokens} & lt; / minTokens & gt; & lt; targetJdk & gt; $ {pmd.target.jdk} & lt; / targetJdk & gt; & lt; exclude & gt; & lt; To exit & gt; ** / * R.java & lt; / Exclude & gt; & Lt; To exit & gt; ** / * Manifest.java & lt; / Exclude & gt; & Lt; ExcludeRoots & gt; & Lt; ExcludeRoot & gt; $ {Basedir} / src generation & lt; / ExcludeRoot & gt; & Lt; / ExcludeRoots & gt; & Lt; / Not included & gt; By looking at this example (end of page),
& lt; Excluded & gt; Must be under .
If it does not help, instead of & lt; Cancel Cancel & gt; ** / src-gen / ** & lt; / ExcludeRoot & gt; Try .
No comments:
Post a Comment