Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/jspReport.html ============================================================================== --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/jspReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/jspReport.html Sat Oct 8 16:53:12 2016 @@ -1,438 +1,419 @@ -<!DOCTYPE html> -<!-- - | Generated by Apache Maven Doxia 1.4 at 2015-12-13 - | Rendered using Apache Maven Fluido Skin 1.4 ---> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> - <head> - <meta charset="UTF-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="author" content="Thomas Williamson" /> - <meta name="Date-Creation-yyyymmdd" content="20150119" /> - <meta name="Date-Revision-yyyymmdd" content="20151213" /> - <meta http-equiv="Content-Language" content="en" /> - <title>Apache Maven PMD Plugin – Analyzing JSP Code</title> - <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" /> - <link rel="stylesheet" href="../css/site.css" /> - <link rel="stylesheet" href="../css/print.css" media="print" /> - - - <script type="text/javascript" src="../js/apache-maven-fluido-1.4.min.js"></script> - - - -<script src="https://www.google-analytics.com/urchin.js" type="text/javascript"></script> - - -<script type="text/javascript">_uacct = "UA-140879-1"; - urchinTracker();</script> - - </head> - <body class="topBarDisabled"> - - - - - <div class="container-fluid"> - <div id="banner"> - <div class="pull-left"> - <a href="http://www.apache.org/" id="bannerLeft"> - <img src="../../../images/apache-maven-project.png" alt="Apache Maven"/> - </a> - </div> - <div class="pull-right"> <a href="../../../" id="bannerRight"> - <img src="../../../images/maven-logo-black-on-white.png" /> - </a> - </div> - <div class="clear"><hr/></div> - </div> - - <div id="breadcrumbs"> - <ul class="breadcrumb"> - - - <li class=""> - <a href="http://www.apache.org/" class="externalLink" title="Apache"> - Apache</a> - <span class="divider">/</span> - </li> - <li class=""> - <a href="../../../index.html" title="Maven"> - Maven</a> - <span class="divider">/</span> - </li> - <li class=""> - <a href="../../index.html" title="Plugins"> - Plugins</a> - <span class="divider">/</span> - </li> - <li class=""> - <a href="../" title="Apache Maven PMD Plugin"> - Apache Maven PMD Plugin</a> - <span class="divider">/</span> - </li> - <li class="active ">Analyzing JSP Code</li> - - - - <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2015-12-13</li> - <li id="projectVersion" class="pull-right"> - Version: 3.6 - </li> - - </ul> - </div> - - - <div class="row-fluid"> - <div id="leftColumn" class="span2"> - <div class="well sidebar-nav"> - - - <ul class="nav nav-list"> - <li class="nav-header">Overview</li> - - <li> - - <a href="../index.html" title="Introduction"> - <span class="none"></span> - Introduction</a> - </li> - - <li> - - <a href="../plugin-info.html" title="Goals"> - <span class="none"></span> - Goals</a> - </li> - - <li> - - <a href="../usage.html" title="Usage"> - <span class="none"></span> - Usage</a> - </li> - - <li> - - <a href="../faq.html" title="FAQ"> - <span class="none"></span> - FAQ</a> - </li> - - <li> - - <a href="http://www.apache.org/licenses/" class="externalLink" title="License"> - <span class="none"></span> - License</a> - </li> - - <li> - - <a href="../download.html" title="Download"> - <span class="none"></span> - Download</a> - </li> - <li class="nav-header">Examples</li> - - <li> - - <a href="../examples/removeReport.html" title="Remove Report"> - <span class="none"></span> - Remove Report</a> - </li> - - <li> - - <a href="../examples/targetJdk.html" title="Target JDK"> - <span class="none"></span> - Target JDK</a> - </li> - - <li> - - <a href="../examples/usingRuleSets.html" title="Using Rule Sets"> - <span class="none"></span> - Using Rule Sets</a> - </li> - - <li> - - <a href="../examples/violationChecking.html" title="Violation Checking"> - <span class="none"></span> - Violation Checking</a> - </li> - - <li> - - <a href="../examples/javascriptReport.html" title="Analyzing JavaScript"> - <span class="none"></span> - Analyzing JavaScript</a> - </li> - - <li class="active"> - - <a href="#"><span class="none"></span>Analyzing Java Server Pages</a> - </li> - - <li> - - <a href="../examples/violation-exclusions.html" title="Violations Exclusions"> - <span class="none"></span> - Violations Exclusions</a> - </li> - <li class="nav-header">Project Documentation</li> - - <li> - - <a href="../project-info.html" title="Project Information"> - <span class="icon-chevron-right"></span> - Project Information</a> - </li> - - <li> - - <a href="../project-reports.html" title="Project Reports"> - <span class="icon-chevron-right"></span> - Project Reports</a> - </li> - <li class="nav-header">Maven Projects</li> - - <li> - - <a href="../../../ant-tasks/index.html" title="Ant Tasks"> - <span class="none"></span> - Ant Tasks</a> - </li> - - <li> - - <a href="../../../archetype/index.html" title="Archetype"> - <span class="none"></span> - Archetype</a> - </li> - - <li> - - <a href="../../../doxia/index.html" title="Doxia"> - <span class="none"></span> - Doxia</a> - </li> - - <li> - - <a href="../../../jxr/index.html" title="JXR"> - <span class="none"></span> - JXR</a> - </li> - - <li> - - <a href="../../../ref/current" title="Maven"> - <span class="none"></span> - Maven</a> - </li> - - <li> - - <a href="../../../pom/index.html" title="Parent POMs"> - <span class="none"></span> - Parent POMs</a> - </li> - - <li> - - <a href="../../index.html" title="Plugins"> - <span class="none"></span> - Plugins</a> - </li> - - <li> - - <a href="../../../plugin-testing/index.html" title="Plugin Testing"> - <span class="none"></span> - Plugin Testing</a> - </li> - - <li> - - <a href="../../../plugin-tools/index.html" title="Plugin Tools"> - <span class="none"></span> - Plugin Tools</a> - </li> - - <li> - - <a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"> - <span class="none"></span> - Resource Bundles</a> - </li> - - <li> - - <a href="../../../scm/index.html" title="SCM"> - <span class="none"></span> - SCM</a> - </li> - - <li> - - <a href="../../../shared/index.html" title="Shared Components"> - <span class="none"></span> - Shared Components</a> - </li> - - <li> - - <a href="../../../skins/index.html" title="Skins"> - <span class="none"></span> - Skins</a> - </li> - - <li> - - <a href="../../../surefire/index.html" title="Surefire"> - <span class="none"></span> - Surefire</a> - </li> - - <li> - - <a href="../../../wagon/index.html" title="Wagon"> - <span class="none"></span> - Wagon</a> - </li> - <li class="nav-header">ASF</li> - - <li> - - <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"> - <span class="none"></span> - How Apache Works</a> - </li> - - <li> - - <a href="http://www.apache.org/foundation/" class="externalLink" title="Foundation"> - <span class="none"></span> - Foundation</a> - </li> - - <li> - - <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"> - <span class="none"></span> - Sponsoring Apache</a> - </li> - - <li> - - <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> - <span class="none"></span> - Thanks</a> - </li> - </ul> - - - <form id="search-form" action="https://www.google.com/search" method="get" > - - <input value="$sitesearchValue" name="sitesearch" type="hidden"/> - <input class="search-query" name="q" id="query" type="text" /> -</form> -<script type="text/javascript" src="https://www.google.com/coop/cse/brand?form=search-form"></script> - - <hr /> - - <div id="poweredBy"> - - <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> - - - <div class="g-plusone" data-href="http://maven.apache.org/plugins/maven-pmd-plugin/" data-size="tall" ></div> - - <div class="clear"></div> - <div class="clear"></div> - <div class="clear"></div> - <div class="clear"></div> - <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"> - <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /> - </a> - </div> - </div> - </div> - - - <div id="bodyColumn" class="span10" > - - <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/ apt-format.html --><div class="section"> -<h2><a name="Analyzing_JSP_Code"></a>Analyzing JSP Code</h2> -<p>The PMD plugin analyzes Java by default. You can configure it to analyze Java Server Pages files instead as shown below.</p> -<p>The example assumes that the JSP source code is stored in various subdirectories under the source directory <tt>src/main/webapp</tt> and enables the built-in JSP ruleset (<i>basic</i>).</p> -<p>Note that you have to make sure that the build-helper-maven-plugin is executed, so that the additional source directory is actually added. To generate the site report, you can include e.g. the <i>generate-sources</i> phase:</p> -<p><tt>mvn generate-sources site</tt></p> -<div class="source"><pre class="prettyprint linenums"><project> - ... - <build> - <plugins> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>1.7</version> - <configuration> - <sources> - <source>${basedir}/src/main/webapp</source> - </sources> - </configuration> - <executions> - <execution> - <goals> - <goal>add-source</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - <version>3.6</version> - <configuration> - <language>jsp</language> - <rulesets> - <ruleset>jsp-basic</ruleset> - </rulesets> - <includes> - <include>**/*.jsp</include> - </includes> - </configuration> - </plugin> - </plugins> - </reporting> - ... -</project> -</pre></div></div> - </div> - </div> - </div> - - <hr/> - - <footer> - <div class="container-fluid"> - <div class="row-fluid"> - <p >Copyright © 2005–2015 - <a href="http://www.apache.org/">The Apache Software Foundation</a>. - All rights reserved. - - </p> - </div> - - - </div> - </footer> - </body> +<!DOCTYPE html> +<!-- + | Generated by Apache Maven Doxia Site Renderer 1.7.1 at 2016-10-08 + | Rendered using Apache Maven Fluido Skin 1.5 +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <meta name="author" content="Thomas Williamson" /> + <meta name="Date-Creation-yyyymmdd" content="20150119" /> + <meta name="Date-Revision-yyyymmdd" content="20161008" /> + <meta http-equiv="Content-Language" content="en" /> + <title>Apache Maven PMD Plugin – Analyzing JSP Code</title> + <link rel="stylesheet" href="../css/apache-maven-fluido-1.5.min.css" /> + <link rel="stylesheet" href="../css/site.css" /> + <link rel="stylesheet" href="../css/print.css" media="print" /> + + + <script type="text/javascript" src="../js/apache-maven-fluido-1.5.min.js"></script> + + <!-- Google Analytics --> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> + </head> + <body class="topBarDisabled"> + + + + + <div class="container-fluid"> + <div id="banner"> + <div class="pull-left"> + <a href="https://www.apache.org/" id="bannerLeft"> + <img src="../../../images/apache-maven-project.png" alt="Apache Maven PMD Plugin"/> + </a> + </div> + <div class="pull-right"> <a href="../../../" id="bannerRight"> + <img src="../../../images/maven-logo-black-on-white.png" /> + </a> + </div> + <div class="clear"><hr/></div> + </div> + + <div id="breadcrumbs"> + <ul class="breadcrumb"> + + <li class=""> + <a href="https://www.apache.org/" class="externalLink" title="Apache"> + Apache</a> + <span class="divider">/</span> + </li> + <li class=""> + <a href="../../../index.html" title="Maven"> + Maven</a> + <span class="divider">/</span> + </li> + <li class=""> + <a href="../../index.html" title="Plugins"> + Plugins</a> + <span class="divider">/</span> + </li> + <li class=""> + <a href="../index.html" title="Apache Maven PMD Plugin"> + Apache Maven PMD Plugin</a> + <span class="divider">/</span> + </li> + <li class="active ">Analyzing JSP Code</li> + + + <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2016-10-08</li> + <li id="projectVersion" class="pull-right"> + Version: 3.7 + </li> + + </ul> + </div> + + + <div class="row-fluid"> + <div id="leftColumn" class="span2"> + <div class="well sidebar-nav"> + + <ul class="nav nav-list"> + <li class="nav-header">Overview</li> + + <li> + + <a href="../index.html" title="Introduction"> + <span class="none"></span> + Introduction</a> + </li> + + <li> + + <a href="../plugin-info.html" title="Goals"> + <span class="none"></span> + Goals</a> + </li> + + <li> + + <a href="../usage.html" title="Usage"> + <span class="none"></span> + Usage</a> + </li> + + <li> + + <a href="../faq.html" title="FAQ"> + <span class="none"></span> + FAQ</a> + </li> + + <li> + + <a href="http://www.apache.org/licenses/" class="externalLink" title="License"> + <span class="none"></span> + License</a> + </li> + + <li> + + <a href="../download.html" title="Download"> + <span class="none"></span> + Download</a> + </li> + <li class="nav-header">Examples</li> + + <li> + + <a href="../examples/multi-module-config.html" title="Multimodule Configuration"> + <span class="none"></span> + Multimodule Configuration</a> + </li> + + <li> + + <a href="../examples/removeReport.html" title="Remove Report"> + <span class="none"></span> + Remove Report</a> + </li> + + <li> + + <a href="../examples/targetJdk.html" title="Target JDK"> + <span class="none"></span> + Target JDK</a> + </li> + + <li> + + <a href="../examples/usingRuleSets.html" title="Using Rule Sets"> + <span class="none"></span> + Using Rule Sets</a> + </li> + + <li> + + <a href="../examples/violationChecking.html" title="Violation Checking"> + <span class="none"></span> + Violation Checking</a> + </li> + + <li> + + <a href="../examples/javascriptReport.html" title="Analyzing JavaScript"> + <span class="none"></span> + Analyzing JavaScript</a> + </li> + + <li class="active"> + + <a href="#"><span class="none"></span>Analyzing Java Server Pages</a> + </li> + + <li> + + <a href="../examples/violation-exclusions.html" title="Violations Exclusions"> + <span class="none"></span> + Violations Exclusions</a> + </li> + <li class="nav-header">Project Documentation</li> + + <li> + + <a href="../project-info.html" title="Project Information"> + <span class="icon-chevron-right"></span> + Project Information</a> + </li> + + <li> + + <a href="../project-reports.html" title="Project Reports"> + <span class="icon-chevron-right"></span> + Project Reports</a> + </li> + <li class="nav-header">Maven Projects</li> + + <li> + + <a href="../../../archetype/index.html" title="Archetype"> + <span class="none"></span> + Archetype</a> + </li> + + <li> + + <a href="../../../doxia/index.html" title="Doxia"> + <span class="none"></span> + Doxia</a> + </li> + + <li> + + <a href="../../../jxr/index.html" title="JXR"> + <span class="none"></span> + JXR</a> + </li> + + <li> + + <a href="../../../ref/current" title="Maven"> + <span class="none"></span> + Maven</a> + </li> + + <li> + + <a href="../../../pom/index.html" title="Parent POMs"> + <span class="none"></span> + Parent POMs</a> + </li> + + <li> + + <a href="../../index.html" title="Plugins"> + <span class="none"></span> + Plugins</a> + </li> + + <li> + + <a href="../../../plugin-testing/index.html" title="Plugin Testing"> + <span class="none"></span> + Plugin Testing</a> + </li> + + <li> + + <a href="../../../plugin-tools/index.html" title="Plugin Tools"> + <span class="none"></span> + Plugin Tools</a> + </li> + + <li> + + <a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"> + <span class="none"></span> + Resource Bundles</a> + </li> + + <li> + + <a href="../../../scm/index.html" title="SCM"> + <span class="none"></span> + SCM</a> + </li> + + <li> + + <a href="../../../shared/index.html" title="Shared Components"> + <span class="none"></span> + Shared Components</a> + </li> + + <li> + + <a href="../../../skins/index.html" title="Skins"> + <span class="none"></span> + Skins</a> + </li> + + <li> + + <a href="../../../surefire/index.html" title="Surefire"> + <span class="none"></span> + Surefire</a> + </li> + + <li> + + <a href="../../../wagon/index.html" title="Wagon"> + <span class="none"></span> + Wagon</a> + </li> + <li class="nav-header">ASF</li> + + <li> + + <a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"> + <span class="none"></span> + How Apache Works</a> + </li> + + <li> + + <a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"> + <span class="none"></span> + Foundation</a> + </li> + + <li> + + <a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"> + <span class="none"></span> + Sponsoring Apache</a> + </li> + + <li> + + <a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> + <span class="none"></span> + Thanks</a> + </li> + </ul> + + <form id="search-form" action="https://www.google.com/search" method="get" > + + <input value="$sitesearchValue" name="sitesearch" type="hidden"/> + <input class="search-query" name="q" id="query" type="text" /> +</form> +<script type="text/javascript" src="https://cse.google.com/brand?form=search-form"></script> + + <hr /> + + <div id="poweredBy"> + + <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> + + + <div class="g-plusone" data-href="https://maven.apache.org/plugins/maven-pmd-plugin/" data-size="tall" ></div> + + <div class="clear"></div> + <div class="clear"></div> + <div class="clear"></div> + <div class="clear"></div> + <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"> + <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /> + </a> + </div> + </div> + </div> + + + <div id="bodyColumn" class="span10" > + + <div class="section"> +<h2><a name="Analyzing_JSP_Code"></a>Analyzing JSP Code</h2> +<p>The PMD plugin analyzes Java by default. You can configure it to analyze Java Server Pages files instead as shown below.</p> +<p>The example assumes that the JSP source code is stored in various subdirectories under the source directory <tt>src/main/webapp</tt> and enables the built-in JSP ruleset (<i>basic</i>).</p> +<p>Note that you have to make sure that you configure <tt>compileSourceRoots</tt> and <tt>includes</tt>, so that PMD finds the JSP files.</p> +<div class="source"><pre class="prettyprint linenums"><project> + ... + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pmd-plugin</artifactId> + <version>3.7</version> + <configuration> + <language>jsp</language> + <rulesets> + <ruleset>jsp-basic</ruleset> + </rulesets> + <includes> + <include>**/*.jsp</include> + </includes> + <compileSourceRoots> + <compileSourceRoot>${basedir}/src/main/webapp</compileSourceRoot> + </compileSourceRoots> + </configuration> + </plugin> + </plugins> + </reporting> + ... +</project></pre></div> +<p><b>Note:</b> Configuring <tt>compileSourceRoots</tt> only works with Maven 3.3.9 and later. For older versions, you'll need to use <i>build-helper-maven-plugin</i> with the <tt>add-source</tt> goal in order to add the additional source directories, so that PMD finds the JSP files.</p></div> + </div> + </div> + </div> + + <hr/> + + <footer> + <div class="container-fluid"> + <div class="row-fluid"> + <p >Copyright © 2005–2016 + <a href="https://www.apache.org/">The Apache Software Foundation</a>. + All rights reserved. + </p> + </div> + + + </div> + </footer> + </body> </html> \ No newline at end of file
Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/multi-module-config.html ============================================================================== --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/multi-module-config.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/multi-module-config.html Sat Oct 8 16:53:12 2016 @@ -0,0 +1,510 @@ +<!DOCTYPE html> +<!-- + | Generated by Apache Maven Doxia Site Renderer 1.7.1 at 2016-10-08 + | Rendered using Apache Maven Fluido Skin 1.5 +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <meta name="Date-Creation-yyyymmdd" content="20160925" /> + <meta name="Date-Revision-yyyymmdd" content="20161008" /> + <meta http-equiv="Content-Language" content="en" /> + <title>Apache Maven PMD Plugin – Multimodule Configuration</title> + <link rel="stylesheet" href="../css/apache-maven-fluido-1.5.min.css" /> + <link rel="stylesheet" href="../css/site.css" /> + <link rel="stylesheet" href="../css/print.css" media="print" /> + + + <script type="text/javascript" src="../js/apache-maven-fluido-1.5.min.js"></script> + + <!-- Google Analytics --> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> + </head> + <body class="topBarDisabled"> + + + + + <div class="container-fluid"> + <div id="banner"> + <div class="pull-left"> + <a href="https://www.apache.org/" id="bannerLeft"> + <img src="../../../images/apache-maven-project.png" alt="Apache Maven PMD Plugin"/> + </a> + </div> + <div class="pull-right"> <a href="../../../" id="bannerRight"> + <img src="../../../images/maven-logo-black-on-white.png" /> + </a> + </div> + <div class="clear"><hr/></div> + </div> + + <div id="breadcrumbs"> + <ul class="breadcrumb"> + + <li class=""> + <a href="https://www.apache.org/" class="externalLink" title="Apache"> + Apache</a> + <span class="divider">/</span> + </li> + <li class=""> + <a href="../../../index.html" title="Maven"> + Maven</a> + <span class="divider">/</span> + </li> + <li class=""> + <a href="../../index.html" title="Plugins"> + Plugins</a> + <span class="divider">/</span> + </li> + <li class=""> + <a href="../index.html" title="Apache Maven PMD Plugin"> + Apache Maven PMD Plugin</a> + <span class="divider">/</span> + </li> + <li class="active ">Multimodule Configuration</li> + + + <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2016-10-08</li> + <li id="projectVersion" class="pull-right"> + Version: 3.7 + </li> + + </ul> + </div> + + + <div class="row-fluid"> + <div id="leftColumn" class="span2"> + <div class="well sidebar-nav"> + + <ul class="nav nav-list"> + <li class="nav-header">Overview</li> + + <li> + + <a href="../index.html" title="Introduction"> + <span class="none"></span> + Introduction</a> + </li> + + <li> + + <a href="../plugin-info.html" title="Goals"> + <span class="none"></span> + Goals</a> + </li> + + <li> + + <a href="../usage.html" title="Usage"> + <span class="none"></span> + Usage</a> + </li> + + <li> + + <a href="../faq.html" title="FAQ"> + <span class="none"></span> + FAQ</a> + </li> + + <li> + + <a href="http://www.apache.org/licenses/" class="externalLink" title="License"> + <span class="none"></span> + License</a> + </li> + + <li> + + <a href="../download.html" title="Download"> + <span class="none"></span> + Download</a> + </li> + <li class="nav-header">Examples</li> + + <li class="active"> + + <a href="#"><span class="none"></span>Multimodule Configuration</a> + </li> + + <li> + + <a href="../examples/removeReport.html" title="Remove Report"> + <span class="none"></span> + Remove Report</a> + </li> + + <li> + + <a href="../examples/targetJdk.html" title="Target JDK"> + <span class="none"></span> + Target JDK</a> + </li> + + <li> + + <a href="../examples/usingRuleSets.html" title="Using Rule Sets"> + <span class="none"></span> + Using Rule Sets</a> + </li> + + <li> + + <a href="../examples/violationChecking.html" title="Violation Checking"> + <span class="none"></span> + Violation Checking</a> + </li> + + <li> + + <a href="../examples/javascriptReport.html" title="Analyzing JavaScript"> + <span class="none"></span> + Analyzing JavaScript</a> + </li> + + <li> + + <a href="../examples/jspReport.html" title="Analyzing Java Server Pages"> + <span class="none"></span> + Analyzing Java Server Pages</a> + </li> + + <li> + + <a href="../examples/violation-exclusions.html" title="Violations Exclusions"> + <span class="none"></span> + Violations Exclusions</a> + </li> + <li class="nav-header">Project Documentation</li> + + <li> + + <a href="../project-info.html" title="Project Information"> + <span class="icon-chevron-right"></span> + Project Information</a> + </li> + + <li> + + <a href="../project-reports.html" title="Project Reports"> + <span class="icon-chevron-right"></span> + Project Reports</a> + </li> + <li class="nav-header">Maven Projects</li> + + <li> + + <a href="../../../archetype/index.html" title="Archetype"> + <span class="none"></span> + Archetype</a> + </li> + + <li> + + <a href="../../../doxia/index.html" title="Doxia"> + <span class="none"></span> + Doxia</a> + </li> + + <li> + + <a href="../../../jxr/index.html" title="JXR"> + <span class="none"></span> + JXR</a> + </li> + + <li> + + <a href="../../../ref/current" title="Maven"> + <span class="none"></span> + Maven</a> + </li> + + <li> + + <a href="../../../pom/index.html" title="Parent POMs"> + <span class="none"></span> + Parent POMs</a> + </li> + + <li> + + <a href="../../index.html" title="Plugins"> + <span class="none"></span> + Plugins</a> + </li> + + <li> + + <a href="../../../plugin-testing/index.html" title="Plugin Testing"> + <span class="none"></span> + Plugin Testing</a> + </li> + + <li> + + <a href="../../../plugin-tools/index.html" title="Plugin Tools"> + <span class="none"></span> + Plugin Tools</a> + </li> + + <li> + + <a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"> + <span class="none"></span> + Resource Bundles</a> + </li> + + <li> + + <a href="../../../scm/index.html" title="SCM"> + <span class="none"></span> + SCM</a> + </li> + + <li> + + <a href="../../../shared/index.html" title="Shared Components"> + <span class="none"></span> + Shared Components</a> + </li> + + <li> + + <a href="../../../skins/index.html" title="Skins"> + <span class="none"></span> + Skins</a> + </li> + + <li> + + <a href="../../../surefire/index.html" title="Surefire"> + <span class="none"></span> + Surefire</a> + </li> + + <li> + + <a href="../../../wagon/index.html" title="Wagon"> + <span class="none"></span> + Wagon</a> + </li> + <li class="nav-header">ASF</li> + + <li> + + <a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"> + <span class="none"></span> + How Apache Works</a> + </li> + + <li> + + <a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"> + <span class="none"></span> + Foundation</a> + </li> + + <li> + + <a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"> + <span class="none"></span> + Sponsoring Apache</a> + </li> + + <li> + + <a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> + <span class="none"></span> + Thanks</a> + </li> + </ul> + + <form id="search-form" action="https://www.google.com/search" method="get" > + + <input value="$sitesearchValue" name="sitesearch" type="hidden"/> + <input class="search-query" name="q" id="query" type="text" /> +</form> +<script type="text/javascript" src="https://cse.google.com/brand?form=search-form"></script> + + <hr /> + + <div id="poweredBy"> + + <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> + + + <div class="g-plusone" data-href="https://maven.apache.org/plugins/maven-pmd-plugin/" data-size="tall" ></div> + + <div class="clear"></div> + <div class="clear"></div> + <div class="clear"></div> + <div class="clear"></div> + <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"> + <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /> + </a> + </div> + </div> + </div> + + + <div id="bodyColumn" class="span10" > + + <div class="section"> +<h2><a name="Multimodule_Configuration"></a>Multimodule Configuration</h2> +<p>If you have a multimodule project with many modules and you want to share the PMD ruleset configuration, so that each module uses the same PMD rules, this is possible, but requires a little setup.</p> +<p>The setup is very similar to the one described for Checkstyle, see <a class="externalLink" href="https://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html">Multimodule Configuration for Checkstyle</a>.</p> +<p>This example will use the same mysterious project called <i>whizbang</i>. This is what the structure of that project looks like:</p> +<div class="source"><pre class="prettyprint linenums">whizbang +|-- pom.xml +|-- core +| `-- pom.xml +|-- gui +| `-- pom.xml +|-- jmx +| `-- pom.xml +`-- src</pre></div> +<div class="section"> +<h3><a name="Create_a_subproject_for_the_PMD_rulesets"></a>Create a subproject for the PMD rulesets</h3> +<p>We'll start by adding another sub project that will house our common configuration for PMD. Let's call it <i>build-tools</i>. In it we put the resources that we want to share between our whizbang modules. In this example, we will add our custom PMD ruleset to be used by the PMD Plugin. The same subproject can be used to house shared configurations for Checkstyle.</p> +<div class="source"><pre class="prettyprint linenums">whizbang +|-- pom.xml +|-- build-tools +| |-- src +| | `-- main +| | `-- resources +| | `-- whizbang +| | `-- pmd-ruleset.xml +| `-- pom.xml +|-- core +|-- gui +|-- jmx +`-- src</pre></div> +<p><b>Tip:</b> put the resources into a subdirectory that you can ensure will be unique and not conflict with anyone else.</p> +<p>The <tt>pom.xml</tt> file for <i>build-tools</i> should look like this:</p> +<div class="source"><pre class="prettyprint linenums"><project> + <modelVersion>4.0.0</modelVersion> + <groupId>com.example.whizbang</groupId> + <artifactId>build-tools</artifactId> + <version>1.0</version> + <name>Build Tools</name> +</project></pre></div> +<p>A sample <tt>pmd-ruleset.xml</tt> could look lke this:</p> +<div class="source"><pre class="prettyprint linenums"><?xml version="1.0"?> +<ruleset name="whizbang PMD ruleset" + xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"> + + <description> + This ruleset defines the PMD rules for project "whizbang". + </description> + + <rule ref="rulesets/java/basic.xml"/> + <rule ref="rulesets/java/imports.xml"/> + <rule ref="rulesets/java/unnecessary.xml"/> +</ruleset></pre></div> +<p>The ruleset references the default rulesets. For more information about rulesets, see <a class="externalLink" href="http://pmd.github.io/pmd-5.5.1/customizing/howtomakearuleset.html">How to make a new ruleset</a>.</p></div> +<div class="section"> +<h3><a name="Configure_the_other_projects_to_use_it"></a>Configure the other projects to use it</h3> +<p>Now we can include the PMD configuration in the top level <tt>pom.xml</tt>.</p> +<p><b>Note:</b> You have to specify a plugin dependency on <tt>build-tools</tt> in the <tt><build></tt> element of your <tt>pom.xml</tt>. It will not work inside the <tt><reporting></tt> element, because <tt><reporting></tt> does not support plugin dependencies. The rest of the configuration is done in the normal way in the <tt><reporting></tt> element.</p> +<div class="source"><pre class="prettyprint linenums"><project> + <modelVersion>4.0.0</modelVersion> + <groupId>com.example.whizbang</groupId> + <artifactId>whizbang-parent</artifactId> + <version>1.0</version> + <packaging>pom</packaging> + <name>WhizBang Parent</name> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pmd-plugin</artifactId> + <version>3.7</version> + <configuration> + <rulesets> + <ruleset>whizbang/pmd-ruleset.xml</ruleset> + </rulesets> + <printFailingErrors>true</printFailingErrors> + </configuration> + <executions> + <execution> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>com.example.whizbang</groupId> + <artifactId>build-tools</artifactId> + <version>1.0</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pmd-plugin</artifactId> + <version>3.7</version> + <configuration> + <rulesets> + <ruleset>whizbang/pmd-ruleset.xml</ruleset> + </rulesets> + </configuration> + </plugin> + </plugins> + </reporting> + <modules> + <module>build-tools</module> + <module>core</module> + <module>jmx</module> + <module>gui</module> + </modules> +</project></pre></div> +<p>Once you are done with that, ensure that you do not include the Maven PMD Plugin in your sub modules, as their definition and configuration, will override the top level parent pom's definition.</p> +<p>Based on the PMD Plugin configuration above, the values of <tt>rulesets</tt> will be resolved from the classpath. The <i>build-tools</i> JAR was included in the classpath when it was declared as a dependency to the plugin.</p> +<p>Lastly, kick off a build of the site.</p> +<div class="source"><pre class="prettyprint linenums">mvn site</pre></div> +<p>Or run the check goal of the PMD plugin via verify:</p> +<div class="source"><pre class="prettyprint linenums">mvn verify</pre></div> +<p>Every sub project will now use the same PMD setup and configuration.</p></div></div> + </div> + </div> + </div> + + <hr/> + + <footer> + <div class="container-fluid"> + <div class="row-fluid"> + <p >Copyright © 2005–2016 + <a href="https://www.apache.org/">The Apache Software Foundation</a>. + All rights reserved. + </p> + </div> + + + </div> + </footer> + </body> +</html> \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/removeReport.html ============================================================================== --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/removeReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/removeReport.html Sat Oct 8 16:53:12 2016 @@ -1,7 +1,7 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia 1.4 at 2015-12-13 - | Rendered using Apache Maven Fluido Skin 1.4 + | Generated by Apache Maven Doxia Site Renderer 1.7.1 at 2016-10-08 + | Rendered using Apache Maven Fluido Skin 1.5 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> @@ -9,25 +9,31 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="author" content="Dennis Lundberg" /> <meta name="Date-Creation-yyyymmdd" content="20071228" /> - <meta name="Date-Revision-yyyymmdd" content="20151213" /> + <meta name="Date-Revision-yyyymmdd" content="20161008" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache Maven PMD Plugin – Remove Report</title> - <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" /> + <link rel="stylesheet" href="../css/apache-maven-fluido-1.5.min.css" /> <link rel="stylesheet" href="../css/site.css" /> <link rel="stylesheet" href="../css/print.css" media="print" /> - <script type="text/javascript" src="../js/apache-maven-fluido-1.4.min.js"></script> + <script type="text/javascript" src="../js/apache-maven-fluido-1.5.min.js"></script> - - -<script src="https://www.google-analytics.com/urchin.js" type="text/javascript"></script> - - -<script type="text/javascript">_uacct = "UA-140879-1"; - urchinTracker();</script> - - </head> + <!-- Google Analytics --> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> + </head> <body class="topBarDisabled"> @@ -36,8 +42,8 @@ <div class="container-fluid"> <div id="banner"> <div class="pull-left"> - <a href="http://www.apache.org/" id="bannerLeft"> - <img src="../../../images/apache-maven-project.png" alt="Apache Maven"/> + <a href="https://www.apache.org/" id="bannerLeft"> + <img src="../../../images/apache-maven-project.png" alt="Apache Maven PMD Plugin"/> </a> </div> <div class="pull-right"> <a href="../../../" id="bannerRight"> @@ -49,10 +55,9 @@ <div id="breadcrumbs"> <ul class="breadcrumb"> - - + <li class=""> - <a href="http://www.apache.org/" class="externalLink" title="Apache"> + <a href="https://www.apache.org/" class="externalLink" title="Apache"> Apache</a> <span class="divider">/</span> </li> @@ -67,17 +72,16 @@ <span class="divider">/</span> </li> <li class=""> - <a href="../" title="Apache Maven PMD Plugin"> + <a href="../index.html" title="Apache Maven PMD Plugin"> Apache Maven PMD Plugin</a> <span class="divider">/</span> </li> <li class="active ">Remove Report</li> - - - <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2015-12-13</li> + + <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2016-10-08</li> <li id="projectVersion" class="pull-right"> - Version: 3.6 + Version: 3.7 </li> </ul> @@ -87,8 +91,7 @@ <div class="row-fluid"> <div id="leftColumn" class="span2"> <div class="well sidebar-nav"> - - + <ul class="nav nav-list"> <li class="nav-header">Overview</li> @@ -135,6 +138,13 @@ </li> <li class="nav-header">Examples</li> + <li> + + <a href="../examples/multi-module-config.html" title="Multimodule Configuration"> + <span class="none"></span> + Multimodule Configuration</a> + </li> + <li class="active"> <a href="#"><span class="none"></span>Remove Report</a> @@ -200,13 +210,6 @@ <li> - <a href="../../../ant-tasks/index.html" title="Ant Tasks"> - <span class="none"></span> - Ant Tasks</a> - </li> - - <li> - <a href="../../../archetype/index.html" title="Archetype"> <span class="none"></span> Archetype</a> @@ -306,40 +309,39 @@ <li> - <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"> + <a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"> <span class="none"></span> How Apache Works</a> </li> <li> - <a href="http://www.apache.org/foundation/" class="externalLink" title="Foundation"> + <a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"> <span class="none"></span> Foundation</a> </li> <li> - <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"> + <a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"> <span class="none"></span> Sponsoring Apache</a> </li> <li> - <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> + <a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> <span class="none"></span> Thanks</a> </li> </ul> - - + <form id="search-form" action="https://www.google.com/search" method="get" > <input value="$sitesearchValue" name="sitesearch" type="hidden"/> <input class="search-query" name="q" id="query" type="text" /> </form> -<script type="text/javascript" src="https://www.google.com/coop/cse/brand?form=search-form"></script> +<script type="text/javascript" src="https://cse.google.com/brand?form=search-form"></script> <hr /> @@ -348,7 +350,7 @@ <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> - <div class="g-plusone" data-href="http://maven.apache.org/plugins/maven-pmd-plugin/" data-size="tall" ></div> + <div class="g-plusone" data-href="https://maven.apache.org/plugins/maven-pmd-plugin/" data-size="tall" ></div> <div class="clear"></div> <div class="clear"></div> @@ -364,7 +366,7 @@ <div id="bodyColumn" class="span10" > - <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/ apt-format.html --><div class="section"> + <div class="section"> <h2><a name="Remove_Report"></a>Remove Report</h2> <p>You may want to generate only one of the reports, but not the other. To do this you can use the <tt><reportSets></tt> feature within your POM. Below is the default configuration for the plugin. To disable one of the reports, just copy the <tt><reportSets></tt> element below to your POM and remove the <tt><report></tt> you don't want to generate.</p> <div class="source"><pre class="prettyprint linenums"><project> @@ -373,7 +375,7 @@ <plugins> <plugin> <artifactId>maven-pmd-plugin</artifactId> - <version>3.6</version> + <version>3.7</version> <reportSets> <reportSet> <reports> @@ -386,8 +388,7 @@ </plugins> </reporting> ... -</project> -</pre></div></div> +</project></pre></div></div> </div> </div> </div> @@ -397,10 +398,9 @@ <footer> <div class="container-fluid"> <div class="row-fluid"> - <p >Copyright © 2005–2015 - <a href="http://www.apache.org/">The Apache Software Foundation</a>. - All rights reserved. - + <p >Copyright © 2005–2016 + <a href="https://www.apache.org/">The Apache Software Foundation</a>. + All rights reserved. </p> </div> Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/targetJdk.html ============================================================================== --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/targetJdk.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/targetJdk.html Sat Oct 8 16:53:12 2016 @@ -1,7 +1,7 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia 1.4 at 2015-12-13 - | Rendered using Apache Maven Fluido Skin 1.4 + | Generated by Apache Maven Doxia Site Renderer 1.7.1 at 2016-10-08 + | Rendered using Apache Maven Fluido Skin 1.5 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> @@ -9,25 +9,31 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="author" content="Dennis Lundberg" /> <meta name="Date-Creation-yyyymmdd" content="20080102" /> - <meta name="Date-Revision-yyyymmdd" content="20151213" /> + <meta name="Date-Revision-yyyymmdd" content="20161008" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache Maven PMD Plugin – Target JDK</title> - <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" /> + <link rel="stylesheet" href="../css/apache-maven-fluido-1.5.min.css" /> <link rel="stylesheet" href="../css/site.css" /> <link rel="stylesheet" href="../css/print.css" media="print" /> - <script type="text/javascript" src="../js/apache-maven-fluido-1.4.min.js"></script> + <script type="text/javascript" src="../js/apache-maven-fluido-1.5.min.js"></script> - - -<script src="https://www.google-analytics.com/urchin.js" type="text/javascript"></script> - - -<script type="text/javascript">_uacct = "UA-140879-1"; - urchinTracker();</script> - - </head> + <!-- Google Analytics --> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> + </head> <body class="topBarDisabled"> @@ -36,8 +42,8 @@ <div class="container-fluid"> <div id="banner"> <div class="pull-left"> - <a href="http://www.apache.org/" id="bannerLeft"> - <img src="../../../images/apache-maven-project.png" alt="Apache Maven"/> + <a href="https://www.apache.org/" id="bannerLeft"> + <img src="../../../images/apache-maven-project.png" alt="Apache Maven PMD Plugin"/> </a> </div> <div class="pull-right"> <a href="../../../" id="bannerRight"> @@ -49,10 +55,9 @@ <div id="breadcrumbs"> <ul class="breadcrumb"> - - + <li class=""> - <a href="http://www.apache.org/" class="externalLink" title="Apache"> + <a href="https://www.apache.org/" class="externalLink" title="Apache"> Apache</a> <span class="divider">/</span> </li> @@ -67,17 +72,16 @@ <span class="divider">/</span> </li> <li class=""> - <a href="../" title="Apache Maven PMD Plugin"> + <a href="../index.html" title="Apache Maven PMD Plugin"> Apache Maven PMD Plugin</a> <span class="divider">/</span> </li> <li class="active ">Target JDK</li> - - - <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2015-12-13</li> + + <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2016-10-08</li> <li id="projectVersion" class="pull-right"> - Version: 3.6 + Version: 3.7 </li> </ul> @@ -87,8 +91,7 @@ <div class="row-fluid"> <div id="leftColumn" class="span2"> <div class="well sidebar-nav"> - - + <ul class="nav nav-list"> <li class="nav-header">Overview</li> @@ -137,6 +140,13 @@ <li> + <a href="../examples/multi-module-config.html" title="Multimodule Configuration"> + <span class="none"></span> + Multimodule Configuration</a> + </li> + + <li> + <a href="../examples/removeReport.html" title="Remove Report"> <span class="none"></span> Remove Report</a> @@ -200,13 +210,6 @@ <li> - <a href="../../../ant-tasks/index.html" title="Ant Tasks"> - <span class="none"></span> - Ant Tasks</a> - </li> - - <li> - <a href="../../../archetype/index.html" title="Archetype"> <span class="none"></span> Archetype</a> @@ -306,40 +309,39 @@ <li> - <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"> + <a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"> <span class="none"></span> How Apache Works</a> </li> <li> - <a href="http://www.apache.org/foundation/" class="externalLink" title="Foundation"> + <a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"> <span class="none"></span> Foundation</a> </li> <li> - <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"> + <a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"> <span class="none"></span> Sponsoring Apache</a> </li> <li> - <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> + <a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> <span class="none"></span> Thanks</a> </li> </ul> - - + <form id="search-form" action="https://www.google.com/search" method="get" > <input value="$sitesearchValue" name="sitesearch" type="hidden"/> <input class="search-query" name="q" id="query" type="text" /> </form> -<script type="text/javascript" src="https://www.google.com/coop/cse/brand?form=search-form"></script> +<script type="text/javascript" src="https://cse.google.com/brand?form=search-form"></script> <hr /> @@ -348,7 +350,7 @@ <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> - <div class="g-plusone" data-href="http://maven.apache.org/plugins/maven-pmd-plugin/" data-size="tall" ></div> + <div class="g-plusone" data-href="https://maven.apache.org/plugins/maven-pmd-plugin/" data-size="tall" ></div> <div class="clear"></div> <div class="clear"></div> @@ -364,7 +366,7 @@ <div id="bodyColumn" class="span10" > - <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/ apt-format.html --><div class="section"> + <div class="section"> <h2><a name="Target_JDK"></a>Target JDK</h2> <p>There is a configuration element in the PMD plugin that lets you set which <a href="../pmd-mojo.html#targetJdk">target JDK</a> your Java code will be compiled for. Often you want this to be in sync with the configuration for maven-compiler-plugin. The best practice for this is to set up the wellknown property <tt>maven.compiler.target</tt> and the rest will work automatically. Alternatively, you can set it manually:</p> <div class="source"><pre class="prettyprint linenums"><project> @@ -373,7 +375,7 @@ <plugins> <plugin> <artifactId>maven-pmd-plugin</artifactId> - <version>3.6</version> + <version>3.7</version> <configuration> <targetJdk>1.6</targetJdk> </configuration> @@ -381,8 +383,7 @@ </plugins> </reporting> ... -</project> -</pre></div></div> +</project></pre></div></div> </div> </div> </div> @@ -392,10 +393,9 @@ <footer> <div class="container-fluid"> <div class="row-fluid"> - <p >Copyright © 2005–2015 - <a href="http://www.apache.org/">The Apache Software Foundation</a>. - All rights reserved. - + <p >Copyright © 2005–2016 + <a href="https://www.apache.org/">The Apache Software Foundation</a>. + All rights reserved. </p> </div> Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/usingRuleSets.html ============================================================================== --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/usingRuleSets.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/usingRuleSets.html Sat Oct 8 16:53:12 2016 @@ -1,7 +1,7 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia 1.4 at 2015-12-13 - | Rendered using Apache Maven Fluido Skin 1.4 + | Generated by Apache Maven Doxia Site Renderer 1.7.1 at 2016-10-08 + | Rendered using Apache Maven Fluido Skin 1.5 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> @@ -9,25 +9,31 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="author" content="Maria Odea Ching" /> <meta name="Date-Creation-yyyymmdd" content="20140310" /> - <meta name="Date-Revision-yyyymmdd" content="20151213" /> + <meta name="Date-Revision-yyyymmdd" content="20161008" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache Maven PMD Plugin – Using Rule Sets</title> - <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" /> + <link rel="stylesheet" href="../css/apache-maven-fluido-1.5.min.css" /> <link rel="stylesheet" href="../css/site.css" /> <link rel="stylesheet" href="../css/print.css" media="print" /> - <script type="text/javascript" src="../js/apache-maven-fluido-1.4.min.js"></script> + <script type="text/javascript" src="../js/apache-maven-fluido-1.5.min.js"></script> - - -<script src="https://www.google-analytics.com/urchin.js" type="text/javascript"></script> - - -<script type="text/javascript">_uacct = "UA-140879-1"; - urchinTracker();</script> - - </head> + <!-- Google Analytics --> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> + </head> <body class="topBarDisabled"> @@ -36,8 +42,8 @@ <div class="container-fluid"> <div id="banner"> <div class="pull-left"> - <a href="http://www.apache.org/" id="bannerLeft"> - <img src="../../../images/apache-maven-project.png" alt="Apache Maven"/> + <a href="https://www.apache.org/" id="bannerLeft"> + <img src="../../../images/apache-maven-project.png" alt="Apache Maven PMD Plugin"/> </a> </div> <div class="pull-right"> <a href="../../../" id="bannerRight"> @@ -49,10 +55,9 @@ <div id="breadcrumbs"> <ul class="breadcrumb"> - - + <li class=""> - <a href="http://www.apache.org/" class="externalLink" title="Apache"> + <a href="https://www.apache.org/" class="externalLink" title="Apache"> Apache</a> <span class="divider">/</span> </li> @@ -67,17 +72,16 @@ <span class="divider">/</span> </li> <li class=""> - <a href="../" title="Apache Maven PMD Plugin"> + <a href="../index.html" title="Apache Maven PMD Plugin"> Apache Maven PMD Plugin</a> <span class="divider">/</span> </li> <li class="active ">Using Rule Sets</li> - - - <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2015-12-13</li> + + <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2016-10-08</li> <li id="projectVersion" class="pull-right"> - Version: 3.6 + Version: 3.7 </li> </ul> @@ -87,8 +91,7 @@ <div class="row-fluid"> <div id="leftColumn" class="span2"> <div class="well sidebar-nav"> - - + <ul class="nav nav-list"> <li class="nav-header">Overview</li> @@ -137,6 +140,13 @@ <li> + <a href="../examples/multi-module-config.html" title="Multimodule Configuration"> + <span class="none"></span> + Multimodule Configuration</a> + </li> + + <li> + <a href="../examples/removeReport.html" title="Remove Report"> <span class="none"></span> Remove Report</a> @@ -200,13 +210,6 @@ <li> - <a href="../../../ant-tasks/index.html" title="Ant Tasks"> - <span class="none"></span> - Ant Tasks</a> - </li> - - <li> - <a href="../../../archetype/index.html" title="Archetype"> <span class="none"></span> Archetype</a> @@ -306,40 +309,39 @@ <li> - <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"> + <a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"> <span class="none"></span> How Apache Works</a> </li> <li> - <a href="http://www.apache.org/foundation/" class="externalLink" title="Foundation"> + <a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"> <span class="none"></span> Foundation</a> </li> <li> - <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"> + <a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"> <span class="none"></span> Sponsoring Apache</a> </li> <li> - <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> + <a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> <span class="none"></span> Thanks</a> </li> </ul> - - + <form id="search-form" action="https://www.google.com/search" method="get" > <input value="$sitesearchValue" name="sitesearch" type="hidden"/> <input class="search-query" name="q" id="query" type="text" /> </form> -<script type="text/javascript" src="https://www.google.com/coop/cse/brand?form=search-form"></script> +<script type="text/javascript" src="https://cse.google.com/brand?form=search-form"></script> <hr /> @@ -348,7 +350,7 @@ <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> - <div class="g-plusone" data-href="http://maven.apache.org/plugins/maven-pmd-plugin/" data-size="tall" ></div> + <div class="g-plusone" data-href="https://maven.apache.org/plugins/maven-pmd-plugin/" data-size="tall" ></div> <div class="clear"></div> <div class="clear"></div> @@ -364,9 +366,9 @@ <div id="bodyColumn" class="span10" > - <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/ apt-format.html --><div class="section"> + <div class="section"> <h2><a name="Using_Rule_Sets"></a>Using Rule Sets</h2> -<p>The PMD plugin uses three default rule sets: <i>basic.xml</i>, <i>unusedcode.xml</i> and <i>imports.xml</i>. These rule sets are bundled in the PMD code analysis tool (see the <a class="externalLink" href="http://pmd.sourceforge.net/pmd-5.3.5/pmd-java/rules/index.html">ruleset index for java</a> and the <a class="externalLink" href="http://pmd.sourceforge.net/pmd-5.3.5/pmd-javascript/rules/index.html">ruleset index for javascript</a>). To use other rule sets, you can configure it in the plugin as shown below.</p> +<p>The PMD plugin uses five default rule sets: <i>basic.xml</i>, <i>empty.xml</i>, <i>imports.xml</i>, <i>unnecessary.xml</i> and <i>unusedcode.xml</i>. These rule sets are bundled in the PMD code analysis tool (see the <a class="externalLink" href="https://pmd.github.io/pmd-5.5.1/pmd-java/rules/index.html">ruleset index for java</a>, the <a class="externalLink" href="https://pmd.github.io/pmd-5.5.1/pmd-javascript/rules/index.html">ruleset index for javascript</a> and <a class="externalLink" href="https://pmd.github.io/pmd-5.5.1/pmd-jsp/rules/index.html">ruleset index for jsp</a>). To use other rule sets, you can configure it in the plugin as shown below.</p> <p>The rule sets may reside in the classpath, filesystem or at a URL. For rule sets that are bundled with the PMD tool, you do not need to specificy the absolute path of the file. It will be resolved by the plugin. But if the rule set is a custom rule set, you need to specify its absolute path.</p> <p><b>Note:</b> Starting with PMD 5.0 and Maven PMD Plugin 3.0 the paths to the bundled rule sets for the Java language were changed from <tt>/rulesets/xyz.xml</tt> to <tt>/rulesets/java/xyz.xml</tt>. So when upgrading to Maven PMD Plugin 3.0 you may need to alter your plugin configuration.</p> <div class="source"><pre class="prettyprint linenums"><project> @@ -376,7 +378,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> - <version>3.6</version> + <version>3.7</version> <configuration> <rulesets> <!-- Two rule sets that come bundled with PMD --> @@ -392,8 +394,7 @@ </plugins> </reporting> ... -</project> -</pre></div></div> +</project></pre></div></div> </div> </div> </div> @@ -403,10 +404,9 @@ <footer> <div class="container-fluid"> <div class="row-fluid"> - <p >Copyright © 2005–2015 - <a href="http://www.apache.org/">The Apache Software Foundation</a>. - All rights reserved. - + <p >Copyright © 2005–2016 + <a href="https://www.apache.org/">The Apache Software Foundation</a>. + All rights reserved. </p> </div>