title: Running Maven PMD locally using Sonar ruleset
body: <p>I'm attempting to run pmd locally using Maven. In project I run </p>
  
  <pre><code>mvn jxr:jxr pmd:pmd
  </code></pre>
  
  <p>but receive error : </p>
  
  <pre><code>net.sourceforge.pmd.RuleSetNotFoundException: Can't find resource 'rulesets/basic.xml' for rule 'UnusedNullCheckInEquals'.  Make sure the resource is a valid file or URL and is on the CLASSPATH
  </code></pre>
  
  <p>Here is a snippet of the rules file which was exported : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ruleset&gt;
    &lt;rule ref="rulesets/basic.xml/UnusedNullCheckInEquals"&gt;
      &lt;priority&gt;3&lt;/priority&gt;
    &lt;/rule&gt;
  &lt;/ruleset&gt;
  </code></pre>
  
  <p>I've updated pom file to reference custom ruleset : </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;3.2&lt;/version&gt;
          &lt;configuration&gt;
              &lt;linkXref&gt;true&lt;/linkXref&gt;
              &lt;rulesets&gt;
                  &lt;ruleset&gt;c:\\pmd\\export.xml&lt;/ruleset&gt;
              &lt;/rulesets&gt;
  
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>To export the ruleset so can run pmd locally using Maven is it required to export this file (basic.xml) &amp; all other xml files which together comprise the "Sonar Way" quality profile ? If so where can these files be accessed on Sonar ?</p>