title: Jenkins + PMD Failure
body: <p>I recently set up Jenkins, it is setup to run (Java) unit tests after every commit. That works fine. However, I then tried to add support for PMD. </p>
  
  <p>It runs successfully, 0 unit test errors, 210 pmd warning (which is strange because it says it completed with 0 warnings on the status page)</p>
  
  <p>Here is the last part of the consold log:</p>
  
  <p>Tests run: 99, Failures: 0, Errors: 0, Skipped: 0</p>
  
  <pre><code>[JENKINS] Recording test results
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - 
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - --- maven-jar-plugin:2.4:jar (default-jar) @ krunch ---
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - 
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-jar-plugin:2.4:jar (default-jar) @ krunch ---
  [pool-1-thread-1] INFO org.codehaus.plexus.archiver.jar.JarArchiver - Building jar: /var/lib/jenkins/workspace/krunch/target/krunch-0.0.1-SNAPSHOT.jar
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - 
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - &gt;&gt;&gt; maven-pmd-plugin:3.0.1:check (default) @ krunch &gt;&gt;&gt;
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - 
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - --- maven-pmd-plugin:3.0.1:pmd (pmd) @ krunch ---
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - 
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-pmd-plugin:3.0.1:pmd (pmd) @ krunch ---
  [PMD] Finding all files that match the pattern pmd.xml
  [PMD] Parsing 1 files in /var/lib/jenkins/workspace/krunch/target
  [PMD] Successfully parsed file /var/lib/jenkins/workspace/krunch/target/pmd.xml of module krunch with 210 warnings.
  [CHECKSTYLE] No report found for mojo check
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - 
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - &lt;&lt;&lt; maven-pmd-plugin:3.0.1:check (default) @ krunch &lt;&lt;&lt;
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - 
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - --- maven-pmd-plugin:3.0.1:check (default) @ krunch ---
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - 
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-pmd-plugin:3.0.1:check (default) @ krunch ---
  [CHECKSTYLE] No report found for mojo check
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - ------------------------------------------------------------------------
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - BUILD FAILURE
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - ------------------------------------------------------------------------
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - Total time: 1:58.654s
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - Finished at: Fri Aug 16 14:19:47 UTC 2013
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - Final Memory: 38M/718M
  [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - ------------------------------------------------------------------------
  [JENKINS] Archiving /var/lib/jenkins/workspace/krunch/pom.xml to /var/lib/jenkins/jobs/krunch/modules/krunch$krunch/builds/2013-08-16_14-17-43/archive/krunch/krunch/0.0.1-SNAPSHOT/krunch-0.0.1-SNAPSHOT.pom
  [JENKINS] Archiving /var/lib/jenkins/workspace/krunch/target/krunch-0.0.1-SNAPSHOT.jar to /var/lib/jenkins/jobs/krunch/modules/krunch$krunch/builds/2013-08-16_14-17-43/archive/krunch/krunch/0.0.1-SNAPSHOT/krunch-0.0.1-SNAPSHOT.jar
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - BUILD FAILURE
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - Total time: 2:00.924s
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - Finished at: Fri Aug 16 14:19:49 UTC 2013
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - Final Memory: 38M/717M
  [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------
  channel stopped
  Finished: FAILURE
  </code></pre>
  
  <p>Here is my current POM (sorry for the mess, i've been hacking at it for a while)</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.9&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;downloadSources&gt;true&lt;/downloadSources&gt;
                  &lt;downloadJavadocs&gt;true&lt;/downloadJavadocs&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.0&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;1.7&lt;/source&gt;
                          &lt;target&gt;1.6&lt;/target&gt;
                          &lt;compilerId&gt;eclipse&lt;/compilerId&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.codehaus.plexus&lt;/groupId&gt;
                      &lt;artifactId&gt;plexus-compiler-eclipse&lt;/artifactId&gt;
                      &lt;version&gt;2.1&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/plugin&gt;
          &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;3.0.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;check&lt;/goal&gt;
                          &lt;goal&gt;cpd-check&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
      &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;resources&lt;/directory&gt;
          &lt;/resource&gt;
  
      &lt;/resources&gt;
  &lt;/build&gt;
  
  
  &lt;reporting&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jxr-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3&lt;/version&gt;
          &lt;/plugin&gt;
  
          &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;3.0.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;linkXRef&gt;false&lt;/linkXRef&gt;
                  &lt;targetJdk&gt;1.6&lt;/targetJdk&gt;
                  &lt;rulesets&gt;
                      &lt;ruleset&gt;/rulesets/basic.xml&lt;/ruleset&gt;
                  &lt;/rulesets&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/reporting&gt;
  </code></pre>
  
  <p>*I have looked at at least 200 web pages and just can't seem to find any documentation that works. Let me know if you need more/less info.</p>