title: PMD rule set is not getting downloaded/updated through MAVEN
body: <p>I tried to integrate PMD in one of my project (I am using MAVEN Build tool)
  When I try to integrate, I can see XML configuration files are mandatory.
  I have tried to download PMD plugin - I expected global ruleset files might be available in PMD plug in, but they are not.
  I used below link: 
  <a href="https://sourceforge.net/projects/pmd/?source=typ_redirect" rel="nofollow">https://sourceforge.net/projects/pmd/?source=typ_redirect</a></p>
  
  <p>After googling, I have seen one link to get ruleset
  <a href="http://grepcode.com/file/repo1.maven.org/maven2/pmd/pmd/4.3" rel="nofollow">http://grepcode.com/file/repo1.maven.org/maven2/pmd/pmd/4.3</a>
  I cant download all XML files.</p>
  
  <p>Is there any way to download/update through build or can we get all XML files in one location anywhere? I tried my level best to search in google and couldn't figure it out.</p>
  
  <p>I attached pom.xml here. Can you please let me know how to add my ruleset automatically whenever PMD updated automatically?</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.scm&lt;/groupId&gt;
    &lt;artifactId&gt;parent&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
    &lt;name&gt;SCM-PRODUCT&lt;/name&gt;
    &lt;description&gt;SCM Product for learning purpose&lt;/description&gt;
    &lt;properties&gt;
      &lt;java.version&gt;1.7&lt;/java.version&gt;
      &lt;hibernate.validator.version&gt;5.2.4.Final&lt;/hibernate.validator.version&gt;
      &lt;javax.el-api.version&gt;2.2.4&lt;/javax.el-api.version&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;checkstyle-config-url&gt;
        D:/rules/checkstyle/2.0/checkstyle-2.0.xml
     &lt;/checkstyle-config-url&gt;
      &lt;checkstyle.version&gt;6.18&lt;/checkstyle.version&gt;
  
      &lt;log4j.version&gt;1.2.17&lt;/log4j.version&gt;
      &lt;!-- TEST CASES RELATED BEGINS--&gt;
  
      &lt;junit.version&gt;4.12&lt;/junit.version&gt;     
  
      &lt;!-- TEST CASES RELATED ENDS HERE--&gt;
  
      &lt;!-- STATIC CODE ANALYSIS PROPERTIES --&gt;
      &lt;findbugs.plugin.version&gt;3.0.3&lt;/findbugs.plugin.version&gt; &lt;!-- Reports on common code mistakes and pitfalls --&gt;
      &lt;checkstyle.plugin.version&gt;5.0&lt;/checkstyle.plugin.version&gt; &lt;!-- Checks Code Style for Developers --&gt;
      &lt;pmd.plugin.version&gt;3.6&lt;/pmd.plugin.version&gt; &lt;!-- Source Code Analyzer --&gt;
  
      &lt;doxia.module.markdown.version&gt;1.3&lt;/doxia.module.markdown.version&gt;
      &lt;javadoc.plugin&gt;2.8.1&lt;/javadoc.plugin&gt; &lt;!-- Generates JavaDoc --&gt;
      &lt;jxr.plugin&gt;2.3&lt;/jxr.plugin&gt; &lt;!-- Cross reference report of project source code --&gt;
  
      &lt;!-- REPORTING TOOL PROPERTIES --&gt;
      &lt;project.info.reports.plugin&gt;2.4&lt;/project.info.reports.plugin&gt; &lt;!-- A plethora of miscellaneous report: info, ci, dependencies, scm, plugins, etc. --&gt;
      &lt;site.plugin&gt;3.1&lt;/site.plugin&gt;
      &lt;sonar.plugin&gt;3.2-RC3&lt;/sonar.plugin&gt; &lt;!-- Analysis and metrics on code over time --&gt;
      &lt;surefire.plugin&gt;2.12&lt;/surefire.plugin&gt; &lt;!-- Reports Test Results --&gt;
      &lt;taglist.plugin&gt;2.4&lt;/taglist.plugin&gt; &lt;!-- Reports on Tags such as @todo and //TODO --&gt;
      &lt;versions.plugin&gt;1.3.1&lt;/versions.plugin&gt;
      &lt;maven-compiler-plugin&gt;3.1&lt;/maven-compiler-plugin&gt;
      &lt;cobertura.plugin&gt;2.5.1&lt;/cobertura.plugin&gt; &lt;!-- Reports Test Coverage --&gt;
  
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
    &lt;/properties&gt;
    &lt;modules&gt;
      &lt;module&gt;services&lt;/module&gt;
      &lt;module&gt;presentation&lt;/module&gt;
      &lt;module&gt;service_validator&lt;/module&gt;
      &lt;module&gt;jsonvo&lt;/module&gt;
    &lt;/modules&gt;
    &lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
              &lt;version&gt;${hibernate.validator.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.el&lt;/groupId&gt;
              &lt;artifactId&gt;javax.el-api&lt;/artifactId&gt;
              &lt;version&gt;${javax.el-api.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.validation&lt;/groupId&gt;
              &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
              &lt;version&gt;1.1.0.Final&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;${junit.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- http://mvnrepository.com/artifact/log4j/log4j --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;${log4j.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- http://mvnrepository.com/artifact/net.sourceforge.pmd/pmd --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.sourceforge.pmd&lt;/groupId&gt;
              &lt;artifactId&gt;pmd&lt;/artifactId&gt;
              &lt;version&gt;5.4.2&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
    &lt;/dependencyManagement&gt;
    &lt;build&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugin&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${maven-compiler-plugin}&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;${java.version}&lt;/source&gt;
                      &lt;target&gt;${java.version}&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-checkstyle-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.17&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;includeTests&gt;true&lt;/includeTests&gt;
                      &lt;rulesets&gt;
                          &lt;ruleset&gt;${checkstyle-config-url}&lt;/ruleset&gt;
                      &lt;/rulesets&gt;
                      &lt;minimumTokens&gt;100&lt;/minimumTokens&gt;
                      &lt;targetJdk&gt;${java.version}&lt;/targetJdk&gt;
                      &lt;failOnViolation&gt;true&lt;/failOnViolation&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                      &lt;phase&gt;test&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;check&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
                  &lt;/executions&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;${pmd.plugin.version}&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;targetJdk&gt;${java.version}&lt;/targetJdk&gt;
                      &lt;minimumTokens&gt;20&lt;/minimumTokens&gt;
                      &lt;skipEmptyReport&gt;false&lt;/skipEmptyReport&gt;
                      &lt;failOnViolation&gt;true&lt;/failOnViolation&gt;
                      &lt;printFailingErrors&gt;true&lt;/printFailingErrors&gt;
                      &lt;!--&lt;includeTests&gt;true&lt;/includeTests&gt;--&gt;
                      &lt;rulesets&gt;
                          &lt;ruleset&gt;${pom.basedir}/pmd-rulesets.xml&lt;/ruleset&gt;
                      &lt;/rulesets&gt;
                      &lt;!-- 
                      &lt;excludeRoots&gt;
                          &lt;excludeRoot&gt;target/generated-sources/antlr&lt;/excludeRoot&gt;
                          &lt;excludeRoot&gt;target/generated-sources/antlr/com/puppycrawl/tools/checkstyle/grammars/javadoc&lt;/excludeRoot&gt;
                      &lt;/excludeRoots&gt;
                       --&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;pmd&lt;/goal&gt;
                              &lt;goal&gt;cpd&lt;/goal&gt;
                              &lt;goal&gt;cpd-check&lt;/goal&gt;
                              &lt;goal&gt;check&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;findbugs-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${findbugs.plugin.version}&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;effort&gt;Max&lt;/effort&gt;
                      &lt;threshold&gt;Low&lt;/threshold&gt;
                      &lt;excludeFilterFile&gt;config/findbugs-exclude.xml&lt;/excludeFilterFile&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
      &lt;plugins&gt;
  
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt; 
  </code></pre>