title: PMD/CPD: Ignore bits of code using comments
body: <p>Is there a way to tell PMD to ignore checking parts of code for duplication?</p>
  
  <p>For example, can I do something like this:</p>
  
  <pre><code>// CPD-Ignore-On
  ...
  // CPD-Ignore-Off
  </code></pre>
  
  <p>Currently I have PMD set up like this using Maven, but don't see any arguments that would like me do what I want unless I am missing something.</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;version&gt;2.5&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;minimumTokens&gt;40&lt;/minimumTokens&gt;
                  &lt;targetJdk&gt;1.5&lt;/targetJdk&gt;
                  &lt;ignoreIdentifiers&gt;true&lt;/ignoreIdentifiers&gt;
                  &lt;ignoreLiterals&gt;true&lt;/ignoreLiterals&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>