title: How to get PMD maven plugin to skip generated source code?
body: <p>So I'm creating a maven plugin using the maven-plugin-plugin. The HelpMojo in maven-plugin-plugin generates a java source file.</p>
  
  <p>Unfortunately, PMD is picking this up and complaining about it. Is there a way to have PMD ignore just a single source file? Thanks!</p>
  
  <p>Maven PMD Configuration:</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-pmd-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;pmd-verify&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;check&lt;/goal&gt;
                          &lt;goal&gt;cpd-check&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;printFailingErrors&gt;true&lt;/printFailingErrors&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>