svn commit: r1024105 [30/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs
Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugins/pmd/PmdViolationCheckMojoTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugins/pmd/PmdViolationCheckMojoTest.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugins/pmd/PmdViolationCheckMojoTest.html Sun Jan 21 17:23:18 2018 @@ -0,0 +1,171 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +PmdViolationCheckMojoTest xref + + + +View Javadoc +1 package org.apache.maven.plugins.pmd; +2 +3 /* +4* Licensed to the Apache Software Foundation (ASF) under one +5* or more contributor license agreements. See the NOTICE file +6* distributed with this work for additional information +7* regarding copyright ownership. The ASF licenses this file +8* to you under the Apache License, Version 2.0 (the +9* "License"); you may not use this file except in compliance +10 * with the License. You may obtain a copy of the License at +11 * +12 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +13 * +14 * Unless required by applicable law or agreed to in writing, +15 * software distributed under the License is distributed on an +16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +17 * KIND, either express or implied. See the License for the +18 * specific language governing permissions and limitations +19 * under the License. +20 */ +21 +22 import java.io.File; +23 +24 import org.apache.maven.plugin.MojoFailureException; +25 import org.apache.maven.plugin.testing.AbstractMojoTestCase; +26 +27 /** +28 * @author a href="mailto:och...@apache.org; target="alexandria_uri">mailto:och...@apache.org"Maria Odea Ching/a +29 * @version $Id$ +30 */ +31 public class PmdViolationCheckMojoTest +32 extends AbstractMojoTestCase +33 { +34 /** +35 * {@inheritDoc} +36 */ +37 @Override +38 protected void setUp() +39 throws Exception +40 { +41 super.setUp(); +42 } +43 +44 public void testDefaultConfiguration() +45 throws Exception +46 { +47 try +48 { +49 final File testPom = +50 new File( getBasedir(), +51 "src/test/resources/unit/default-configuration/pmd-check-default-configuration-plugin-config.xml" ); +52 final PmdViolationCheckMojo mojo = (PmdViolationCheckMojo) lookupMojo( "check", testPom ); +53 mojo.execute(); +54 +55 fail( "MojoFailureException should be thrown." ); +56 } +57 catch ( final Exception e ) +58 { +59 assertTrue( true ); +60 } +61 } +62 +63 public void testNotFailOnViolation() +64 throws Exception +65 { +66 File testPom = +67 new File( getBasedir(), +68 "src/test/resources/unit/default-configuration/default-configuration-plugin-config.xml" ); +69 final PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); +70 mojo.execute(); +71 +72 testPom = +73 new File( getBasedir(), +74 "src/test/resources/unit/default-configuration/pmd-check-notfailonviolation-plugin-config.xml" ); +75 final PmdViolationCheckMojo pmdViolationMojo = (PmdViolationCheckMojo) lookupMojo( "check", testPom ); +76 pmdViolationMojo.execute(); +77 +78 assertTrue( true ); +79 } +80 +81 public void testFailurePriority() +82 throws Exception +83 { +84 File testPom = +85 new File( getBasedir(), +86 "src/test/resources/unit/default-configuration/default-configuration-plugin-config.xml" ); +87 final PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); +88 mojo.execute(); +89 +90 testPom = +91 new File( getBasedir(), +92 "src/test/resources/unit/default-configuration/pmd-check-failonpriority-plugin-config.xml" ); +93 PmdViolationCheckMojo pmdViolationMojo = (PmdViolationCheckMojo) lookupMojo( "check", testPom ); +94 pmdViolationMojo.execute(); +95 +96 testPom = +97 new File( getBasedir(), +98 "src/test/resources/unit/default-configuration/pmd-check-failandwarnonpriority-plugin-config.xml" ); +99 pmdViolationMojo = (PmdViolationCheckMojo) lookupMojo( "check", testPom ); +100 try +101 { +102 pmdViolationMojo.execute();
[maven-pmd-plugin] branch master updated: [maven-release-plugin] prepare for next development iteration
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git The following commit(s) were added to refs/heads/master by this push: new 3def117 [maven-release-plugin] prepare for next development iteration 3def117 is described below commit 3def117d9ec60be8c02fa1b7b883540e7f81586a Author: Andreas Dangel <adan...@apache.org> AuthorDate: Sun Jan 21 18:08:55 2018 +0100 [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index dc1b2cf..c50cf3c 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ under the License. maven-pmd-plugin - 3.9.0 + 3.10.0-SNAPSHOT maven-plugin Apache Maven PMD Plugin @@ -67,7 +67,7 @@ under the License. scm:git:https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git scm:git:https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git https://github.com/apache/maven-pmd-plugin/tree/${project.scm.tag} -maven-pmd-plugin-3.9.0 +HEAD JIRA -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] annotated tag maven-pmd-plugin-3.9.0 created (now 926859a)
This is an automated email from the ASF dual-hosted git repository. adangel pushed a change to annotated tag maven-pmd-plugin-3.9.0 in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git. at 926859a (tag) tagging d404bf7bd117a4916b338301c15721e78c802e4e (commit) replaces maven-pmd-plugin-3.8 by Andreas Dangel on Sun Jan 21 18:08:40 2018 +0100 - Log - [maven-release-plugin] copy for tag maven-pmd-plugin-3.9.0 --- No new revisions were added by this update. -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] branch master updated: [maven-release-plugin] prepare release maven-pmd-plugin-3.9.0
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git The following commit(s) were added to refs/heads/master by this push: new d404bf7 [maven-release-plugin] prepare release maven-pmd-plugin-3.9.0 d404bf7 is described below commit d404bf7bd117a4916b338301c15721e78c802e4e Author: Andreas Dangel <adan...@apache.org> AuthorDate: Sun Jan 21 18:07:59 2018 +0100 [maven-release-plugin] prepare release maven-pmd-plugin-3.9.0 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 1adc6bc..dc1b2cf 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ under the License. maven-pmd-plugin - 3.9.0-SNAPSHOT + 3.9.0 maven-plugin Apache Maven PMD Plugin @@ -67,7 +67,7 @@ under the License. scm:git:https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git scm:git:https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git https://github.com/apache/maven-pmd-plugin/tree/${project.scm.tag} -HEAD +maven-pmd-plugin-3.9.0 JIRA -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] branch master updated: [MPMD-247] Upgrade to PMD 6.0.1
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git The following commit(s) were added to refs/heads/master by this push: new e1a91c8 [MPMD-247] Upgrade to PMD 6.0.1 e1a91c8 is described below commit e1a91c89cc67df82df34c706c2e51037429006b8 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Sun Jan 21 17:20:27 2018 +0100 [MPMD-247] Upgrade to PMD 6.0.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2813959..1adc6bc 100644 --- a/pom.xml +++ b/pom.xml @@ -91,7 +91,7 @@ under the License. 1.7 ${javaVersion} ${javaVersion} -6.0.0 +6.0.1 3.4 2.8 3.5 -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] branch master updated: [MPMD-251] Invalid report XML is generated with includeXmlInSite=true
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git The following commit(s) were added to refs/heads/master by this push: new d57e632 [MPMD-251] Invalid report XML is generated with includeXmlInSite=true d57e632 is described below commit d57e632e34f938f0ccda095a9b4e02bacdc738f1 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Thu Jan 18 11:10:30 2018 +0100 [MPMD-251] Invalid report XML is generated with includeXmlInSite=true Use the same fix for CPD --- .../org/apache/maven/plugins/pmd/CpdReport.java| 1 + .../apache/maven/plugins/pmd/CpdReportTest.java| 63 +- ...pd-report-include-xml-in-site-plugin-config.xml | 62 + 3 files changed, 114 insertions(+), 12 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java b/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java index f139e06..99ddb34 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java @@ -378,6 +378,7 @@ public class CpdReport try ( Writer writer = new OutputStreamWriter( new FileOutputStream( targetFile ), getOutputEncoding() ) ) { writer.write( buffer ); +writer.flush(); if ( includeXmlInSite ) { diff --git a/src/test/java/org/apache/maven/plugins/pmd/CpdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/CpdReportTest.java index 6cb23a4..88a794c 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/CpdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/CpdReportTest.java @@ -186,18 +186,10 @@ public class CpdReportTest return str.toString(); } -public void testWriteNonHtml() -throws Exception +private CPD prepareMockCpd( String duplicatedCodeFragment ) { -File testPom = -new File( getBasedir(), - "src/test/resources/unit/default-configuration/cpd-default-configuration-plugin-config.xml" ); -CpdReport mojo = (CpdReport) lookupMojo( "cpd", testPom ); -assertNotNull( mojo ); - TokenEntry tFirstEntry = new TokenEntry( "public java", "MyClass.java", 2 ); TokenEntry tSecondEntry = new TokenEntry( "public java", "MyClass3.java", 2 ); -String duplicatedCodeFragment = "// - duplicated code example -"; SourceCode sourceCodeFirst = new SourceCode(new SourceCode.StringCodeLoader( PMD.EOL + duplicatedCodeFragment + PMD.EOL, "MyClass.java")); SourceCode sourceCodeSecond = new SourceCode(new SourceCode.StringCodeLoader( @@ -220,21 +212,68 @@ public class CpdReportTest CPD tCpd = new MockCpd( cpdConfiguration, tList.iterator() ); tCpd.go(); +return tCpd; +} + +public void testWriteNonHtml() +throws Exception +{ +File testPom = +new File( getBasedir(), + "src/test/resources/unit/default-configuration/cpd-default-configuration-plugin-config.xml" ); +CpdReport mojo = (CpdReport) lookupMojo( "cpd", testPom ); +assertNotNull( mojo ); + +String duplicatedCodeFragment = "// - duplicated code example -"; +CPD tCpd = prepareMockCpd( duplicatedCodeFragment ); mojo.writeNonHtml( tCpd ); -File tReport = new File( "target/test/unit/default-configuration/target/cpd.xml" ); -// parseDocument( new BufferedInputStream( new FileInputStream( report ) ) ); +File tReport = new File( getBasedir(), "target/test/unit/default-configuration/target/cpd.xml" ); DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document pmdCpdDocument = builder.parse( tReport ); assertNotNull( pmdCpdDocument ); -String str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/cpd.xml" ) ); +String str = readFile( tReport ); assertTrue( lowerCaseContains( str, "MyClass.java" ) ); assertTrue( lowerCaseContains( str, "MyClass3.java" ) ); assertTrue( lowerCaseContains( str, duplicatedCodeFragment ) ); } +/** + * verify the cpd.xml file is included in the site when requested. + * @throws Exception + */ +public void testIncludeXmlInSite() +throws Exception +{ +File testPom = +new File( getBasedir(), + "src/test/resources/unit/default-configuration/cpd-report-include-xml-in-site-plugin-config.xml" ); +CpdReport mojo = (CpdReport) lookup
[maven-pmd-plugin] branch master updated (b727446 -> 8968785)
This is an automated email from the ASF dual-hosted git repository. adangel pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git. from b727446 [MPMD-128] Xref link generation regression with Maven 3 new 3972a79 [MPMD-251] Invalid report XML is generated with includeXmlInSite=true new 8968785 [MPMD-251] Invalid report XML is generated with includeXmlInSite=true The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../org/apache/maven/plugins/pmd/PmdReport.java| 13 --- .../apache/maven/plugins/pmd/PmdReportTest.java| 27 +- ...d-report-include-xml-in-site-plugin-config.xml} | 8 ++- 3 files changed, 38 insertions(+), 10 deletions(-) copy src/test/resources/unit/default-configuration/{default-configuration-plugin-config.xml => pmd-report-include-xml-in-site-plugin-config.xml} (87%) -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] 02/02: [MPMD-251] Invalid report XML is generated with includeXmlInSite=true
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 89687854bc1c965f26adbc78410f75e631f66088 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Thu Jan 18 10:43:40 2018 +0100 [MPMD-251] Invalid report XML is generated with includeXmlInSite=true Use the renderer's flush method --- src/main/java/org/apache/maven/plugins/pmd/PmdReport.java | 14 ++ .../java/org/apache/maven/plugins/pmd/PmdReportTest.java | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index fe39380..2a8a897 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -233,9 +233,16 @@ public class PmdReport return getBundle( locale ).getString( "report.pmd.description" ); } -public void setRulesets( String[] rules ) +/** + * Configures the PMD rulesets to be used directly. + * Note: Usually the rulesets are configured via the property. + * + * @param rulesets the PMD rulesets to be used. + * @see #rulesets + */ +public void setRulesets( String[] rulesets ) { -rulesets = rules; +this.rulesets = Arrays.copyOf( rulesets, rulesets.length ); } /** @@ -596,7 +603,7 @@ public class PmdReport r.start(); r.renderFileReport( report ); r.end(); -writer.flush(); +r.flush(); if ( includeXmlInSite ) { @@ -650,7 +657,6 @@ public class PmdReport { try { -@SuppressWarnings( "unchecked" ) List classpath = includeTests ? project.getTestClasspathElements() : project.getCompileClasspathElements(); getLog().debug( "Using aux classpath: " + classpath ); diff --git a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java index e108f96..72afd01 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java @@ -370,7 +370,7 @@ public class PmdReportTest assertTrue( pmdXmlTarget.contains( "" ) ); // check that pmd.xml file has the closing element -String pmdXml = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.xml" ) ); +String pmdXml = readFile( generatedXmlFile ); assertTrue( pmdXml.contains( "" ) ); } -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
[maven-pmd-plugin] 01/02: [MPMD-251] Invalid report XML is generated with includeXmlInSite=true
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 3972a7995964d31d92fc0db37b4c3aa1810a73e8 Author: Brad Flood <bfl...@keyholesoftware.com> AuthorDate: Thu Jan 18 10:25:41 2018 +0100 [MPMD-251] Invalid report XML is generated with includeXmlInSite=true Submitted by: Brad Flood <bfl...@keyholesoftware.com> Closes apache/maven-plugins#127 --- .../org/apache/maven/plugins/pmd/PmdReport.java| 1 + .../apache/maven/plugins/pmd/PmdReportTest.java| 27 +- ...md-report-include-xml-in-site-plugin-config.xml | 62 ++ 3 files changed, 89 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index e5a193d..fe39380 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -596,6 +596,7 @@ public class PmdReport r.start(); r.renderFileReport( report ); r.end(); +writer.flush(); if ( includeXmlInSite ) { diff --git a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java index 9fa5891..e108f96 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java @@ -350,6 +350,31 @@ public class PmdReportTest } /** + * verify the pmd.xml file is included in the site when requested. + * @throws Exception + */ +public void testIncludeXmlInSite() +throws Exception +{ +File testPom = new File( getBasedir(), "src/test/resources/unit/default-configuration/pmd-report-include-xml-in-site-plugin-config.xml" ); +PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); +mojo.execute(); + +File generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.html" ); +assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); +// verify the pmd file is included in site +File generatedXmlFile = new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.xml" ); +assertTrue( FileUtils.fileExists( generatedXmlFile.getAbsolutePath() ) ); + +String pmdXmlTarget = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/pmd.xml" ) ); +assertTrue( pmdXmlTarget.contains( "" ) ); + +// check that pmd.xml file has the closing element +String pmdXml = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.xml" ) ); +assertTrue( pmdXml.contains( "" ) ); +} + +/** * Read the contents of the specified file object into a string * * @param file the file to be read @@ -374,7 +399,7 @@ public class PmdReportTest } /** - * Verify the correct working of the localtionTemp method + * Verify the correct working of the locationTemp method * * @throws Exception */ diff --git a/src/test/resources/unit/default-configuration/pmd-report-include-xml-in-site-plugin-config.xml b/src/test/resources/unit/default-configuration/pmd-report-include-xml-in-site-plugin-config.xml new file mode 100644 index 000..dc0e98d --- /dev/null +++ b/src/test/resources/unit/default-configuration/pmd-report-include-xml-in-site-plugin-config.xml @@ -0,0 +1,62 @@ + + + + 4.0.0 + def.configuration + default-configuration + jar + 1.0-SNAPSHOT + 2006 + Maven PMD Plugin Default Configuration Test + http://maven.apache.org + +default-configuration + + +org.apache.maven.plugins +maven-pmd-plugin + + + ${basedir}/target/test/unit/default-configuration/target/site + ${basedir}/target/test/unit/default-configuration/target + xml + UTF-8 + true + + + + +pmd +pmd +3.6 + + + + + + + + +org.apache.maven.plugins +maven-jxr-plugin + + + + -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
[maven-pmd-plugin] branch master updated: [MPMD-128] Xref link generation regression with Maven 3
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git The following commit(s) were added to refs/heads/master by this push: new b727446 [MPMD-128] Xref link generation regression with Maven 3 b727446 is described below commit b727446e42e9fe8cd3086b4e0838856656fa07c6 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Wed Jan 10 19:47:12 2018 +0100 [MPMD-128] Xref link generation regression with Maven 3 Submitted by: Marc Rohlfs * Added integration test and adjusted to current PMD/m-pmd-p version --- src/it/MPMD-128-xref-link/invoker.properties | 18 +++ src/it/MPMD-128-xref-link/pom.xml | 63 ++ .../src/main/config/pmd/rules.xml | 26 + .../src/main/java/mpmd128/App.java | 35 src/it/MPMD-128-xref-link/verify.groovy| 27 ++ 5 files changed, 169 insertions(+) diff --git a/src/it/MPMD-128-xref-link/invoker.properties b/src/it/MPMD-128-xref-link/invoker.properties new file mode 100644 index 000..67f758a --- /dev/null +++ b/src/it/MPMD-128-xref-link/invoker.properties @@ -0,0 +1,18 @@ +# 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. + +invoker.goals = clean site \ No newline at end of file diff --git a/src/it/MPMD-128-xref-link/pom.xml b/src/it/MPMD-128-xref-link/pom.xml new file mode 100644 index 000..32dcaba --- /dev/null +++ b/src/it/MPMD-128-xref-link/pom.xml @@ -0,0 +1,63 @@ + + + + +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/maven-v4_0_0.xsd;> + 4.0.0 + org.apache.maven.plugins.pmd.it + MPMD-128-xref-link + 1.0-SNAPSHOT + MPMD-128-xref-link + + +UTF-8 + + + + + +org.apache.maven.plugins +maven-site-plugin +@sitePluginVersion@ + + + + + + + + org.apache.maven.plugins + maven-pmd-plugin + @project.version@ + + + src/main/config/pmd/rules.xml + + + + + org.apache.maven.plugins + maven-jxr-plugin + 2.3 + + + + diff --git a/src/it/MPMD-128-xref-link/src/main/config/pmd/rules.xml b/src/it/MPMD-128-xref-link/src/main/config/pmd/rules.xml new file mode 100644 index 000..048122e --- /dev/null +++ b/src/it/MPMD-128-xref-link/src/main/config/pmd/rules.xml @@ -0,0 +1,26 @@ + + +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;> + + + \ No newline at end of file diff --git a/src/it/MPMD-128-xref-link/src/main/java/mpmd128/App.java b/src/it/MPMD-128-xref-link/src/main/java/mpmd128/App.java new file mode 100644 index 000..8637a5f --- /dev/null +++ b/src/it/MPMD-128-xref-link/src/main/java/mpmd128/App.java @@ -0,0 +1,35 @@ +package mpmd128; + +/* + * 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. + */ + +/** + * Hello world! + * + */ +public class App +{ + +public static void main( String[] args ) +{ +System.out.println( "Hello World!" ); +return; // Unnecessary retu
[maven-pmd-plugin] 02/04: [MPMD-249] The plugin documentation point to old (deprecated) rulesets
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 54edc6da05bf84997b761e5ca047335011d5ac2c Author: Andreas Dangel <adan...@apache.org> AuthorDate: Wed Jan 10 18:47:19 2018 +0100 [MPMD-249] The plugin documentation point to old (deprecated) rulesets Update more documentation --- src/main/java/org/apache/maven/plugins/pmd/CpdReport.java | 5 +++-- src/site/apt/examples/usingRuleSets.apt.vm| 10 -- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java b/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java index e943b24..f139e06 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java @@ -55,8 +55,9 @@ import net.sourceforge.pmd.cpd.Renderer; import net.sourceforge.pmd.cpd.XMLRenderer; /** - * Creates a report for PMD's CPD tool. See http://pmd.sourceforge.net/cpd.html;>http://pmd.sourceforge.net/cpd.html for more detail. + * Creates a report for PMD's CPD tool. See + * https://pmd.github.io/latest/pmd_userdocs_cpd.html;>Finding duplicated code + * for more details. * * @author Mike Perham * @version $Id$ diff --git a/src/site/apt/examples/usingRuleSets.apt.vm b/src/site/apt/examples/usingRuleSets.apt.vm index e38d3e5..7ac4e5f 100644 --- a/src/site/apt/examples/usingRuleSets.apt.vm +++ b/src/site/apt/examples/usingRuleSets.apt.vm @@ -3,7 +3,7 @@ -- Maria Odea Ching -- - 2017-11-11 + 2018-01-10 -- ~~ Licensed to the Apache Software Foundation (ASF) under one @@ -68,9 +68,8 @@ Using Rule Sets ${project.version} - -/rulesets/java/braces.xml -/rulesets/java/naming.xml + +/category/java/bestpractices.xml d:\rulesets\strings.xml @@ -92,7 +91,7 @@ The default ruleset If you use a different language, you'll need to specify your own custom ruleset. The current version of the ruleset can be found in version control: - {{http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml}} + {{https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/main/resources/rulesets/java/maven-pmd-plugin-default.xml;hb=HEAD}} +-+ @@ -132,7 +131,6 @@ The default ruleset - -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
[maven-pmd-plugin] 04/04: Fix PMD, remove unnecessary suppress warnings
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 1b2dbbc4b3d77725c79428f5c2cf9bb6f4be965c Author: Andreas Dangel <adan...@apache.org> AuthorDate: Wed Jan 10 18:50:37 2018 +0100 Fix PMD, remove unnecessary suppress warnings --- .../apache/maven/plugins/pmd/AbstractPmdReport.java| 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java index ec2b056..af11911 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java @@ -274,7 +274,6 @@ public abstract class AbstractPmdReport else { // Not yet generated - check if the report is on its way -@SuppressWarnings( "unchecked" ) List reportPlugins = project.getReportPlugins(); for ( ReportPlugin plugin : reportPlugins ) { @@ -347,18 +346,15 @@ public abstract class AbstractPmdReport { testSourceRoots = project.getTestCompileSourceRoots(); } -if ( includeTests ) +if ( includeTests && testSourceRoots != null ) { -if ( testSourceRoots != null ) +for ( String root : testSourceRoots ) { -for ( String root : testSourceRoots ) +File sroot = new File( root ); +if ( sroot.exists() ) { -File sroot = new File( root ); -if ( sroot.exists() ) -{ -String testXref = constructXRefLocation( true ); -directories.add( new PmdFileInfo( project, sroot, testXref ) ); -} +String testXref = constructXRefLocation( true ); +directories.add( new PmdFileInfo( project, sroot, testXref ) ); } } } @@ -366,7 +362,6 @@ public abstract class AbstractPmdReport { for ( MavenProject localProject : reactorProjects ) { -@SuppressWarnings( "unchecked" ) List localCompileSourceRoots = localProject.getCompileSourceRoots(); for ( String root : localCompileSourceRoots ) { @@ -379,7 +374,6 @@ public abstract class AbstractPmdReport } if ( includeTests ) { -@SuppressWarnings( "unchecked" ) List localTestCompileSourceRoots = localProject.getTestCompileSourceRoots(); for ( String root : localTestCompileSourceRoots ) { -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
[maven-pmd-plugin] 01/04: [MPMD-249] The plugin documentation point to old (deprecated) rulesets
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 5fe94972bc3ede9310aac8ff52970f7074e0f66b Author: Andreas Dangel <adan...@apache.org> AuthorDate: Wed Jan 10 18:13:33 2018 +0100 [MPMD-249] The plugin documentation point to old (deprecated) rulesets Use https for the link --- src/main/java/org/apache/maven/plugins/pmd/PmdReport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index 20b2e5e..e5a193d 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -119,7 +119,7 @@ public class PmdReport /** * The PMD rulesets to use. See the - * http://pmd.github.io/latest/pmd_rules_java.html;>Stock Java Rulesets for a + * https://pmd.github.io/latest/pmd_rules_java.html;>Stock Java Rulesets for a * list of available rules. * Defaults to a custom ruleset provided by this maven plugin * (/rulesets/java/maven-pmd-plugin-default.xml). -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
[maven-pmd-plugin] branch master updated (a7d7d69 -> 1b2dbbc)
This is an automated email from the ASF dual-hosted git repository. adangel pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git. from a7d7d69 [MPMD-243] excludeFromFailureFile configuration does not work new 5fe9497 [MPMD-249] The plugin documentation point to old (deprecated) rulesets new 54edc6d [MPMD-249] The plugin documentation point to old (deprecated) rulesets new a73773a Fix maven pmd ruleset: the rule EmptyStaticInitializer doesn't exist anymore (has been merged into EmptyInitializer) new 1b2dbbc Fix PMD, remove unnecessary suppress warnings The 4 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../apache/maven/plugins/pmd/AbstractPmdReport.java| 18 ++ .../java/org/apache/maven/plugins/pmd/CpdReport.java | 5 +++-- .../java/org/apache/maven/plugins/pmd/PmdReport.java | 2 +- src/main/resources/rulesets/maven.xml | 1 - src/site/apt/examples/usingRuleSets.apt.vm | 10 -- 5 files changed, 14 insertions(+), 22 deletions(-) -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] 03/04: Fix maven pmd ruleset: the rule EmptyStaticInitializer doesn't exist anymore (has been merged into EmptyInitializer)
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit a73773a825bb9869b361a318770b00ab16d46716 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Wed Jan 10 18:47:46 2018 +0100 Fix maven pmd ruleset: the rule EmptyStaticInitializer doesn't exist anymore (has been merged into EmptyInitializer) --- src/main/resources/rulesets/maven.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/resources/rulesets/maven.xml b/src/main/resources/rulesets/maven.xml index c7918f6..706d8ee 100644 --- a/src/main/resources/rulesets/maven.xml +++ b/src/main/resources/rulesets/maven.xml @@ -74,7 +74,6 @@ under the License. - -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
[maven-pmd-plugin] branch master updated: [MPMD-243] excludeFromFailureFile configuration does not work
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git The following commit(s) were added to refs/heads/master by this push: new a7d7d69 [MPMD-243] excludeFromFailureFile configuration does not work a7d7d69 is described below commit a7d7d69820ecfeb294c55dfccea704876940f9d1 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Tue Jan 9 08:27:14 2018 +0100 [MPMD-243] excludeFromFailureFile configuration does not work Add integration test --- .../config/pmd-exclude.properties | 18 ++ .../config/ruleset.xml | 30 ++ .../invoker.properties | 19 ++ src/it/MPMD-243-excludeFromFailureFile/pom.xml | 70 ++ .../src/main/java/com/example/A.java | 28 + .../com/example/ClassWithLotsOfStaticImports.java | 34 +++ .../MPMD-243-excludeFromFailureFile/verify.groovy | 23 +++ 7 files changed, 222 insertions(+) diff --git a/src/it/MPMD-243-excludeFromFailureFile/config/pmd-exclude.properties b/src/it/MPMD-243-excludeFromFailureFile/config/pmd-exclude.properties new file mode 100644 index 000..c1cf9f0 --- /dev/null +++ b/src/it/MPMD-243-excludeFromFailureFile/config/pmd-exclude.properties @@ -0,0 +1,18 @@ +# 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. + +com.example.ClassWithLotsOfStaticImports=TooManyStaticImports diff --git a/src/it/MPMD-243-excludeFromFailureFile/config/ruleset.xml b/src/it/MPMD-243-excludeFromFailureFile/config/ruleset.xml new file mode 100644 index 000..c337933 --- /dev/null +++ b/src/it/MPMD-243-excludeFromFailureFile/config/ruleset.xml @@ -0,0 +1,30 @@ + + +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;> + + +MPMD-243 + + + + diff --git a/src/it/MPMD-243-excludeFromFailureFile/invoker.properties b/src/it/MPMD-243-excludeFromFailureFile/invoker.properties new file mode 100644 index 000..1e595ef --- /dev/null +++ b/src/it/MPMD-243-excludeFromFailureFile/invoker.properties @@ -0,0 +1,19 @@ +# 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. + +invoker.goals = clean pmd:check +invoker.maven.version = 3+ diff --git a/src/it/MPMD-243-excludeFromFailureFile/pom.xml b/src/it/MPMD-243-excludeFromFailureFile/pom.xml new file mode 100644 index 000..a9fa11b --- /dev/null +++ b/src/it/MPMD-243-excludeFromFailureFile/pom.xml @@ -0,0 +1,70 @@ + + + + +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;> + 4.0.0 + + org.apache.maven.plugin.pmd.its + MPMD-243-excludeFromFailureFile + 1.0-SNAPSHOT + jar + + +Test that the option excludeFromFailureFile is actually honored + + + +UTF-8 +1.7 +1.7 + + + + + +@project.groupId@ +@project.artifactId@ +@project.version@ + + true + false + true + + +${basedir}/config/ruleset.xml + + + + +default-cli + +
[maven-pmd-plugin] branch MPMD-246 deleted (was e4be7da)
This is an automated email from the ASF dual-hosted git repository. adangel pushed a change to branch MPMD-246 in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git. was e4be7da [MPMD-246] Output details of processing errors This change permanently discards the following revisions: discard e4be7da [MPMD-246] Output details of processing errors discard 5942db6 [MPMD-246] Output details of processing errors discard 39b03da [MPMD-246] Output details of processing errors -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] 01/05: [MPMD-244] Maven PMD plugin fails but no reason is given for the failure
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 4712a949be2018c739ee7bc890cc91b1cedfb4a8 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Mon Dec 18 19:53:58 2017 +0100 [MPMD-244] Maven PMD plugin fails but no reason is given for the failure Added new parameter "showPmdLog", which helps in analyzing issues within PMD. This integrates the PMD log into the maven log. --- pom.xml| 7 +++ src/it/MPMD-244-logging/invoker.properties | 19 +++ src/it/MPMD-244-logging/logging-disabled/pom.xml | 61 ++ .../logging-disabled/src/main/java/BrokenFile.java | 26 + src/it/MPMD-244-logging/logging-enabled/pom.xml| 61 ++ .../logging-enabled/src/main/java/BrokenFile.java | 26 + src/it/MPMD-244-logging/pom.xml| 42 +++ src/it/MPMD-244-logging/verify.groovy | 26 + .../maven/plugins/pmd/AbstractPmdReport.java | 34 .../org/apache/maven/plugins/pmd/CpdReport.java| 2 + .../org/apache/maven/plugins/pmd/PmdReport.java| 2 + 11 files changed, 306 insertions(+) diff --git a/pom.xml b/pom.xml index 499a099..2813959 100644 --- a/pom.xml +++ b/pom.xml @@ -142,6 +142,13 @@ under the License. ${pmdVersion} + + +org.slf4j +jul-to-slf4j +1.7.25 + + org.apache.maven.doxia diff --git a/src/it/MPMD-244-logging/invoker.properties b/src/it/MPMD-244-logging/invoker.properties new file mode 100644 index 000..1e595ef --- /dev/null +++ b/src/it/MPMD-244-logging/invoker.properties @@ -0,0 +1,19 @@ +# 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. + +invoker.goals = clean pmd:check +invoker.maven.version = 3+ diff --git a/src/it/MPMD-244-logging/logging-disabled/pom.xml b/src/it/MPMD-244-logging/logging-disabled/pom.xml new file mode 100644 index 000..46f0e2b --- /dev/null +++ b/src/it/MPMD-244-logging/logging-disabled/pom.xml @@ -0,0 +1,61 @@ + + + + + + 4.0.0 + + +org.apache.maven.plugins.pmd.its +MPMD-244-logging +1.0-SNAPSHOT + + MPMD-244-logging-disabled + + +UTF-8 + + + + + + + + + +@project.groupId@ +@project.artifactId@ +@project.version@ + + true + false + + + +test-compile + + check + + + + + + + diff --git a/src/it/MPMD-244-logging/logging-disabled/src/main/java/BrokenFile.java b/src/it/MPMD-244-logging/logging-disabled/src/main/java/BrokenFile.java new file mode 100644 index 000..1c5335a --- /dev/null +++ b/src/it/MPMD-244-logging/logging-disabled/src/main/java/BrokenFile.java @@ -0,0 +1,26 @@ +/* + * 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. + */ + +public class BrokenFile +{ + +// This file has a parse error, so PMD will fail to parse it +broken!! + +} diff --git a/src/it/MPMD-244-logging/logging-enabled/pom.xml b/src/it/MPMD-244-logging/logging-enabled/pom.xml new file mode 100644 index 000..355992c --- /dev/null +++ b/src/it/MPMD-244-logging/logging-enabled/pom.xml @@ -0,0 +1,61 @@ + + + + + + 4.0.0 + + +org.apache.maven
[maven-pmd-plugin] 04/05: [MPMD-246] Output details of processing errors
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit fb7511f5f36b38d30b1f4cce58bb914d56d1ad4d Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:58:08 2017 +0100 [MPMD-246] Output details of processing errors Add new parameter "renderProcessingErrors" --- .../org/apache/maven/plugins/pmd/PmdReport.java| 17 +++- .../apache/maven/plugins/pmd/PmdReportTest.java| 36 ...md-processing-error-no-report-plugin-config.xml | 50 ++ 3 files changed, 102 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index bfc149c..20b2e5e 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -206,6 +206,18 @@ public class PmdReport private String analysisCacheLocation; /** + * Also render processing errors into the HTML report. + * Processing errors are problems, that PMD encountered while executing the rules. + * It can be parsing errors or exceptions during rule execution. + * Processing errors indicate a bug in PMD and the information provided help in + * reporting and fixing bugs in PMD. + * + * @since 3.9.0 + */ +@Parameter( property = "pmd.renderProcessingErrors", defaultValue = "true" ) +private boolean renderProcessingErrors = true; + +/** * {@inheritDoc} */ public String getName( Locale locale ) @@ -507,7 +519,10 @@ public class PmdReport PmdReportGenerator doxiaRenderer = new PmdReportGenerator( getLog(), sink, getBundle( locale ), aggregate ); doxiaRenderer.setFiles( filesToProcess ); doxiaRenderer.setViolations( renderer.getViolations() ); -doxiaRenderer.setProcessingErrors( renderer.getErrors() ); +if ( renderProcessingErrors ) +{ +doxiaRenderer.setProcessingErrors( renderer.getErrors() ); +} try { diff --git a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java index 614c58f..9fa5891 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java @@ -505,6 +505,42 @@ public class PmdReportTest } } +public void testPMDProcessingErrorWithDetailsNoReport() +throws Exception +{ +File testPom = new File( getBasedir(), + "src/test/resources/unit/processing-error/pmd-processing-error-no-report-plugin-config.xml" ); +PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); + +PrintStream originalOut = System.out; +ByteArrayOutputStream logging = new ByteArrayOutputStream(); +System.setOut( new PrintStream( logging ) ); + +try { +mojo.execute(); +String output = logging.toString(); +assertTrue ( output.contains( "There are 1 PMD processing errors:" ) ); + +File generatedFile = new File( getBasedir(), "target/test/unit/parse-error/target/pmd.xml" ); +assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); +String str = readFile( generatedFile ); +assertTrue( str.contains( "Error while parsing" ) ); +// The parse exception must be in the XML report +assertTrue( str.contains( "ParseException: Encountered \"\" at line 23, column 5." ) ); + +generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.html" ); +renderer( mojo, generatedFile ); +assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); +str = readFile( generatedFile ); +// The parse exception must NOT be in the HTML report, since reportProcessingErrors is false +assertFalse( str.contains( "ParseException: Encountered \"\" at line 23, column 5." ) ); + +} finally { +System.setOut( originalOut ); +System.out.println( logging.toString() ); +} +} + public void testPMDExcludeRootsShouldExcludeSubdirectories() throws Exception { File testPom = new File(getBasedir(), "src/test/resources/unit/exclude-roots/pmd-exclude-roots-plugin-config.xml"); PmdReport mojo = (PmdReport) lookupMojo ("pmd", testPom); diff --git a/src/test/resources/unit/processing-error/pmd-processing-error-no-report-plugin-config.xml b/src/test/resources/unit/processing-error/pmd-processing-error-no-repor
[maven-pmd-plugin] 02/05: [MPMD-246] Output details of processing errors
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit f9c4942d2a49441b13bc5df83c632bad78fcb73f Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:57:09 2017 +0100 [MPMD-246] Output details of processing errors Output detail error message when debug logging is enabled. In any case, add the processing errors to the xml report. --- .../maven/plugins/pmd/PmdCollectingRenderer.java | 11 - .../org/apache/maven/plugins/pmd/PmdReport.java| 4 +- .../apache/maven/plugins/pmd/PmdReportTest.java| 31 ++ .../pmd-processing-error-skip-plugin-config.xml| 49 ++ 4 files changed, 92 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdCollectingRenderer.java b/src/main/java/org/apache/maven/plugins/pmd/PmdCollectingRenderer.java index 9402639..e55b779 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdCollectingRenderer.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdCollectingRenderer.java @@ -104,14 +104,19 @@ public class PmdCollectingRenderer extends AbstractRenderer /** * Gets the errors as a single string. Each error is in its own line. + * @param withDetails if true then add the error details additionally (contains e.g. the stacktrace) * @return the errors as string */ -public String getErrorsAsString() +public String getErrorsAsString( boolean withDetails ) { List errorsAsString = new ArrayList<>( errors.size() ); for ( ProcessingError error : errors ) { errorsAsString.add( error.getFile() + ": " + error.getMsg() ); +if ( withDetails ) +{ +errorsAsString.add( error.getDetail() ); +} } return StringUtils.join( errorsAsString.toArray(), System.getProperty( "line.separator" ) ); } @@ -127,6 +132,10 @@ public class PmdCollectingRenderer extends AbstractRenderer { report.addRuleViolation( v ); } +for ( ProcessingError e : errors ) +{ +report.addError( e ); +} return report; } diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index 0351988..9b63b9d 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -422,11 +422,11 @@ public class PmdReport if ( !skipPmdError ) { getLog().error( "PMD processing errors:" ); -getLog().error( renderer.getErrorsAsString() ); +getLog().error( renderer.getErrorsAsString( getLog().isDebugEnabled() ) ); throw new MavenReportException( "Found " + renderer.getErrors().size() + " PMD processing errors" ); } getLog().warn( "There are " + renderer.getErrors().size() + " PMD processing errors:" ); -getLog().warn( renderer.getErrorsAsString() ); +getLog().warn( renderer.getErrorsAsString( getLog().isDebugEnabled() ) ); } removeExcludedViolations( renderer.getViolations() ); diff --git a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java index 2ac342a..ee3bd1e 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java @@ -20,9 +20,11 @@ package org.apache.maven.plugins.pmd; */ import java.io.BufferedReader; +import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileReader; import java.io.IOException; +import java.io.PrintStream; import java.net.ServerSocket; import java.net.URL; import java.nio.charset.StandardCharsets; @@ -467,6 +469,35 @@ public class PmdReportTest } } +public void testPMDProcessingErrorWithDetailsSkipped() +throws Exception +{ +File testPom = new File( getBasedir(), + "src/test/resources/unit/processing-error/pmd-processing-error-skip-plugin-config.xml" ); +PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); + +PrintStream originalOut = System.out; +ByteArrayOutputStream logging = new ByteArrayOutputStream(); +System.setOut( new PrintStream( logging ) ); + +try { +mojo.execute(); +String output = logging.toString(); +assertTrue ( output.contains( "There are 1 PMD processing errors:" ) ); + +File generatedFile = new File( getBasedir(), "target/test/unit/parse-error/target/pmd
[maven-pmd-plugin] 03/05: [MPMD-246] Output details of processing errors
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit a4ec98393cf1a8db3dcfffc9cfa623481fd7ba83 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:57:35 2017 +0100 [MPMD-246] Output details of processing errors Render processing errors in HTML report --- .../org/apache/maven/plugins/pmd/PmdReport.java| 1 + .../maven/plugins/pmd/PmdReportGenerator.java | 168 - src/main/resources/pmd-report.properties | 3 + src/main/resources/pmd-report_de.properties| 3 + .../apache/maven/plugins/pmd/PmdReportTest.java| 23 ++- 5 files changed, 151 insertions(+), 47 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index 9b63b9d..bfc149c 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -507,6 +507,7 @@ public class PmdReport PmdReportGenerator doxiaRenderer = new PmdReportGenerator( getLog(), sink, getBundle( locale ), aggregate ); doxiaRenderer.setFiles( filesToProcess ); doxiaRenderer.setViolations( renderer.getViolations() ); +doxiaRenderer.setProcessingErrors( renderer.getErrors() ); try { diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReportGenerator.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReportGenerator.java index 54fa04f..152064a 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReportGenerator.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReportGenerator.java @@ -29,13 +29,15 @@ import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.ResourceBundle; - -import net.sourceforge.pmd.RuleViolation; +import java.util.Set; import org.apache.maven.doxia.sink.Sink; import org.apache.maven.plugin.logging.Log; import org.codehaus.plexus.util.StringUtils; +import net.sourceforge.pmd.Report.ProcessingError; +import net.sourceforge.pmd.RuleViolation; + /** * Render the PMD violations into Doxia events. * @@ -52,7 +54,9 @@ public class PmdReportGenerator private ResourceBundle bundle; -private HashSet violations = new HashSet<>(); +private Set violations = new HashSet<>(); + +private List processingErrors = new ArrayList<>(); private boolean aggregate; @@ -86,6 +90,16 @@ public class PmdReportGenerator return new ArrayList<>( violations ); } +public void setProcessingErrors( Collection errors ) +{ +this.processingErrors = new ArrayList<>( errors ); +} + +public List getProcessingErrors() +{ +return processingErrors; +} + // public List getMetrics() // { // return metrics; @@ -96,26 +110,46 @@ public class PmdReportGenerator // this.metrics = metrics; // } -private void startFileSection( String currentFilename, PmdFileInfo fileInfo ) +private String shortenFilename( String filename, PmdFileInfo fileInfo ) { -sink.section2(); -sink.sectionTitle2(); - -// prepare the filename -this.currentFilename = currentFilename; +String result = filename; if ( fileInfo != null && fileInfo.getSourceDirectory() != null ) { -this.currentFilename = -StringUtils.substring( currentFilename, fileInfo.getSourceDirectory().getAbsolutePath().length() + 1 ); +result = +StringUtils.substring( result, fileInfo.getSourceDirectory().getAbsolutePath().length() + 1 ); } -this.currentFilename = StringUtils.replace( this.currentFilename, "\\", "/" ); +result = StringUtils.replace( result, "\\", "/" ); -String title = this.currentFilename; if ( aggregate && fileInfo != null && fileInfo.getProject() != null ) { -title = fileInfo.getProject().getName() + " - " + this.currentFilename; +result = fileInfo.getProject().getName() + " - " + result; } -sink.text( title ); + +return result; +} + +private PmdFileInfo determineFileInfo( String filename ) throws IOException +{ +File canonicalFilename = new File( filename ).getCanonicalFile(); +PmdFileInfo fileInfo = files.get( canonicalFilename ); +if ( fileInfo == null ) +{ +log.warn( "Couldn't determine PmdFileInfo for file " + filename + " (canonical: " + canonicalFilename ++ "). XRef links won't be available." ); +} + +return fileInfo; +} + +private void startFileSecti
[maven-pmd-plugin] 05/05: [MPMD-244] Maven PMD plugin fails but no reason is given for the failure
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 8ea1ca954d32740a464e1285efa458d44898235c Author: Andreas Dangel <adan...@apache.org> AuthorDate: Mon Dec 18 20:11:44 2017 +0100 [MPMD-244] Maven PMD plugin fails but no reason is given for the failure Fix integration test --- src/it/MPMD-244-logging/verify.groovy | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/it/MPMD-244-logging/verify.groovy b/src/it/MPMD-244-logging/verify.groovy index f213605..1e906a6 100644 --- a/src/it/MPMD-244-logging/verify.groovy +++ b/src/it/MPMD-244-logging/verify.groovy @@ -22,5 +22,7 @@ assert buildLog.exists() assert buildLog.text.contains( "PMD processing errors" ) assert buildLog.text.contains( "Error while parsing" ) String currentDir = basedir.getCanonicalPath() -assert buildLog.text.contains( "net.sourceforge.pmd.PMDException: Error while parsing ${currentDir}/logging-enabled/src/main/java/BrokenFile.java" ) -assert ! buildLog.text.contains( "net.sourceforge.pmd.PMDException: Error while parsing ${currentDir}/logging-disabled/src/main/java/BrokenFile.java" ) +// logging disabled: the pmd exception is only output through the processing error reporting (since MPMD-246) +assert 1 == buildLog.text.count( "net.sourceforge.pmd.PMDException: Error while parsing ${currentDir}/logging-disabled/src/main/java/BrokenFile.java" ) +// logging enabled: the pmd exception is output twice: through the processing error reporting (since MPMD-246) and through PMD's own logging +assert 2 == buildLog.text.count( "net.sourceforge.pmd.PMDException: Error while parsing ${currentDir}/logging-enabled/src/main/java/BrokenFile.java" ) -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
[maven-pmd-plugin] branch master updated (2051d09 -> 8ea1ca9)
This is an automated email from the ASF dual-hosted git repository. adangel pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git. from 2051d09 [MPMD-248] cpd-check goal leaks file handle new 4712a94 [MPMD-244] Maven PMD plugin fails but no reason is given for the failure new f9c4942 [MPMD-246] Output details of processing errors new a4ec983 [MPMD-246] Output details of processing errors new fb7511f [MPMD-246] Output details of processing errors new 8ea1ca9 [MPMD-244] Maven PMD plugin fails but no reason is given for the failure The 5 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: pom.xml| 7 + .../invoker.properties | 1 - .../logging-disabled}/pom.xml | 12 +- .../src/main/java/BrokenFile.java | 0 .../logging-enabled}/pom.xml | 12 +- .../logging-enabled}/src/main/java/BrokenFile.java | 0 .../pom.xml| 11 +- .../verify.groovy | 6 +- .../maven/plugins/pmd/AbstractPmdReport.java | 34 + .../org/apache/maven/plugins/pmd/CpdReport.java| 2 + .../maven/plugins/pmd/PmdCollectingRenderer.java | 11 +- .../org/apache/maven/plugins/pmd/PmdReport.java| 22 ++- .../maven/plugins/pmd/PmdReportGenerator.java | 168 - src/main/resources/pmd-report.properties | 3 + src/main/resources/pmd-report_de.properties| 3 + .../apache/maven/plugins/pmd/PmdReportTest.java| 86 ++- ...d-processing-error-no-report-plugin-config.xml} | 3 +- ...=> pmd-processing-error-skip-plugin-config.xml} | 2 +- 18 files changed, 317 insertions(+), 66 deletions(-) copy src/it/{MPMD-219-pmd-processing-error => MPMD-244-logging}/invoker.properties (96%) copy src/it/{MPMD-219-pmd-processing-error => MPMD-244-logging/logging-disabled}/pom.xml (83%) copy src/it/{MPMD-219-pmd-processing-error => MPMD-244-logging/logging-disabled}/src/main/java/BrokenFile.java (100%) copy src/it/{MPMD-219-pmd-processing-error => MPMD-244-logging/logging-enabled}/pom.xml (83%) copy src/it/{MPMD-219-pmd-processing-error => MPMD-244-logging/logging-enabled}/src/main/java/BrokenFile.java (100%) copy src/it/{MPMD-234-analysis-cache => MPMD-244-logging}/pom.xml (85%) copy src/it/{MPMD-219-pmd-processing-error => MPMD-244-logging}/verify.groovy (62%) copy src/test/resources/unit/processing-error/{pmd-processing-error-plugin-config.xml => pmd-processing-error-no-report-plugin-config.xml} (94%) copy src/test/resources/unit/processing-error/{pmd-processing-error-plugin-config.xml => pmd-processing-error-skip-plugin-config.xml} (97%) -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] branch master updated: [MPMD-248] cpd-check goal leaks file handle
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git The following commit(s) were added to refs/heads/master by this push: new 2051d09 [MPMD-248] cpd-check goal leaks file handle 2051d09 is described below commit 2051d099a4f724fc17a02f6cac8c3bd92184 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Sun Dec 17 14:51:47 2017 +0100 [MPMD-248] cpd-check goal leaks file handle --- .../java/org/apache/maven/plugins/pmd/CpdViolationCheckMojo.java | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/CpdViolationCheckMojo.java b/src/main/java/org/apache/maven/plugins/pmd/CpdViolationCheckMojo.java index 64ffbb4..1175dfb 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/CpdViolationCheckMojo.java +++ b/src/main/java/org/apache/maven/plugins/pmd/CpdViolationCheckMojo.java @@ -114,9 +114,12 @@ public class CpdViolationCheckMojo protected List getErrorDetails( File cpdFile ) throws XmlPullParserException, IOException { -CpdXpp3Reader reader = new CpdXpp3Reader(); -CpdErrorDetail details = reader.read( new FileReader( cpdFile ), false ); -return details.getDuplications(); +try ( FileReader fileReader = new FileReader( cpdFile ) ) +{ +CpdXpp3Reader reader = new CpdXpp3Reader(); +CpdErrorDetail details = reader.read( fileReader, false ); +return details.getDuplications(); +} } @Override -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] branch master updated: Now really find a free port. Wiremock internally just uses port 8080 if no port is given
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git The following commit(s) were added to refs/heads/master by this push: new 4db6385 Now really find a free port. Wiremock internally just uses port 8080 if no port is given 4db6385 is described below commit 4db638500610b9ce28f4e7bc9248309db7302082 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Sun Dec 17 13:12:55 2017 +0100 Now really find a free port. Wiremock internally just uses port 8080 if no port is given --- .../java/org/apache/maven/plugins/pmd/PmdReportTest.java| 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java index f1a9b58..2ac342a 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java @@ -23,6 +23,7 @@ import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; +import java.net.ServerSocket; import java.net.URL; import java.nio.charset.StandardCharsets; import java.util.Locale; @@ -147,7 +148,8 @@ public class PmdReportTest PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); // Additional test case for MPMD-174 (https://issues.apache.org/jira/browse/MPMD-174). -WireMockServer mockServer = new WireMockServer(); +int port = determineFreePort(); +WireMockServer mockServer = new WireMockServer( port ); mockServer.start(); String sonarRuleset = @@ -207,6 +209,15 @@ public class PmdReportTest mockServer.stop(); } +private int determineFreePort() +{ +try (ServerSocket socket = new ServerSocket(0)) { +return socket.getLocalPort(); +} catch (IOException e) { +throw new RuntimeException( "Couldn't find a free port.", e ); +} +} + /** * With custom rulesets * -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] branch master updated: Use random port for wiremock based unit test
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git The following commit(s) were added to refs/heads/master by this push: new be28365 Use random port for wiremock based unit test be28365 is described below commit be28365b7930e146326c3fb6fa62d126c4a0e210 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Sun Dec 17 12:19:21 2017 +0100 Use random port for wiremock based unit test --- src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java index b539e79..f1a9b58 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java @@ -147,7 +147,7 @@ public class PmdReportTest PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); // Additional test case for MPMD-174 (https://issues.apache.org/jira/browse/MPMD-174). -WireMockServer mockServer = new WireMockServer( 3456 ); +WireMockServer mockServer = new WireMockServer(); mockServer.start(); String sonarRuleset = -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] branch master updated: [MPMD-245] targetJdk property should use maven.compiler.source by default
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git The following commit(s) were added to refs/heads/master by this push: new bfff835 [MPMD-245] targetJdk property should use maven.compiler.source by default bfff835 is described below commit bfff835d630466ed77ba5fe28f482e7a1c254282 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Sun Dec 17 11:36:46 2017 +0100 [MPMD-245] targetJdk property should use maven.compiler.source by default --- src/main/java/org/apache/maven/plugins/pmd/PmdReport.java | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index 7034ad0..9db12c4 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -82,14 +82,14 @@ public class PmdReport extends AbstractPmdReport { /** - * The target JDK to analyze based on. Should match the target used in the compiler plugin. Valid values are - * currently 1.3, 1.4, 1.5, 1.6, 1.7 and - * 1.8. + * The target JDK to analyze based on. Should match the source used in the compiler plugin. Valid values are + * currently 1.3, 1.4, 1.5, 1.6, 1.7, + * 1.8 and 9. * * Note: this parameter is only used if the language parameter is set to java. * */ -@Parameter( property = "targetJdk", defaultValue = "${maven.compiler.target}" ) +@Parameter( property = "targetJdk", defaultValue = "${maven.compiler.source}" ) private String targetJdk; /** -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] branch MPMD-246 created (now e4be7da)
This is an automated email from the ASF dual-hosted git repository. adangel pushed a change to branch MPMD-246 in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git. at e4be7da [MPMD-246] Output details of processing errors This branch includes the following new commits: new 39b03da [MPMD-246] Output details of processing errors new 5942db6 [MPMD-246] Output details of processing errors new e4be7da [MPMD-246] Output details of processing errors The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] 02/03: [MPMD-246] Output details of processing errors
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch MPMD-246 in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 5942db6a30f77c0012bd53019431daf725ffc455 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:57:35 2017 +0100 [MPMD-246] Output details of processing errors Render processing errors in HTML report --- .../org/apache/maven/plugins/pmd/PmdReport.java| 1 + .../maven/plugins/pmd/PmdReportGenerator.java | 168 - src/main/resources/pmd-report.properties | 3 + src/main/resources/pmd-report_de.properties| 3 + .../apache/maven/plugins/pmd/PmdReportTest.java| 23 ++- 5 files changed, 151 insertions(+), 47 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index edd8714..4152070 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -505,6 +505,7 @@ public class PmdReport PmdReportGenerator doxiaRenderer = new PmdReportGenerator( getLog(), sink, getBundle( locale ), aggregate ); doxiaRenderer.setFiles( filesToProcess ); doxiaRenderer.setViolations( renderer.getViolations() ); +doxiaRenderer.setProcessingErrors( renderer.getErrors() ); try { diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReportGenerator.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReportGenerator.java index 54fa04f..152064a 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReportGenerator.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReportGenerator.java @@ -29,13 +29,15 @@ import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.ResourceBundle; - -import net.sourceforge.pmd.RuleViolation; +import java.util.Set; import org.apache.maven.doxia.sink.Sink; import org.apache.maven.plugin.logging.Log; import org.codehaus.plexus.util.StringUtils; +import net.sourceforge.pmd.Report.ProcessingError; +import net.sourceforge.pmd.RuleViolation; + /** * Render the PMD violations into Doxia events. * @@ -52,7 +54,9 @@ public class PmdReportGenerator private ResourceBundle bundle; -private HashSet violations = new HashSet<>(); +private Set violations = new HashSet<>(); + +private List processingErrors = new ArrayList<>(); private boolean aggregate; @@ -86,6 +90,16 @@ public class PmdReportGenerator return new ArrayList<>( violations ); } +public void setProcessingErrors( Collection errors ) +{ +this.processingErrors = new ArrayList<>( errors ); +} + +public List getProcessingErrors() +{ +return processingErrors; +} + // public List getMetrics() // { // return metrics; @@ -96,26 +110,46 @@ public class PmdReportGenerator // this.metrics = metrics; // } -private void startFileSection( String currentFilename, PmdFileInfo fileInfo ) +private String shortenFilename( String filename, PmdFileInfo fileInfo ) { -sink.section2(); -sink.sectionTitle2(); - -// prepare the filename -this.currentFilename = currentFilename; +String result = filename; if ( fileInfo != null && fileInfo.getSourceDirectory() != null ) { -this.currentFilename = -StringUtils.substring( currentFilename, fileInfo.getSourceDirectory().getAbsolutePath().length() + 1 ); +result = +StringUtils.substring( result, fileInfo.getSourceDirectory().getAbsolutePath().length() + 1 ); } -this.currentFilename = StringUtils.replace( this.currentFilename, "\\", "/" ); +result = StringUtils.replace( result, "\\", "/" ); -String title = this.currentFilename; if ( aggregate && fileInfo != null && fileInfo.getProject() != null ) { -title = fileInfo.getProject().getName() + " - " + this.currentFilename; +result = fileInfo.getProject().getName() + " - " + result; } -sink.text( title ); + +return result; +} + +private PmdFileInfo determineFileInfo( String filename ) throws IOException +{ +File canonicalFilename = new File( filename ).getCanonicalFile(); +PmdFileInfo fileInfo = files.get( canonicalFilename ); +if ( fileInfo == null ) +{ +log.warn( "Couldn't determine PmdFileInfo for file " + filename + " (canonical: " + canonicalFilename ++ "). XRef links won't be available." ); +} + +return fileInfo; +} + +private void startFileSecti
[maven-pmd-plugin] 01/03: [MPMD-246] Output details of processing errors
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch MPMD-246 in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 39b03dae27b8821390ff20dfcfbf20473399d610 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:57:09 2017 +0100 [MPMD-246] Output details of processing errors Output detail error message when debug logging is enabled. In any case, add the processing errors to the xml report. --- .../maven/plugins/pmd/PmdCollectingRenderer.java | 11 - .../org/apache/maven/plugins/pmd/PmdReport.java| 4 +- .../apache/maven/plugins/pmd/PmdReportTest.java| 31 ++ .../pmd-processing-error-skip-plugin-config.xml| 49 ++ 4 files changed, 92 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdCollectingRenderer.java b/src/main/java/org/apache/maven/plugins/pmd/PmdCollectingRenderer.java index 9402639..e55b779 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdCollectingRenderer.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdCollectingRenderer.java @@ -104,14 +104,19 @@ public class PmdCollectingRenderer extends AbstractRenderer /** * Gets the errors as a single string. Each error is in its own line. + * @param withDetails if true then add the error details additionally (contains e.g. the stacktrace) * @return the errors as string */ -public String getErrorsAsString() +public String getErrorsAsString( boolean withDetails ) { List errorsAsString = new ArrayList<>( errors.size() ); for ( ProcessingError error : errors ) { errorsAsString.add( error.getFile() + ": " + error.getMsg() ); +if ( withDetails ) +{ +errorsAsString.add( error.getDetail() ); +} } return StringUtils.join( errorsAsString.toArray(), System.getProperty( "line.separator" ) ); } @@ -127,6 +132,10 @@ public class PmdCollectingRenderer extends AbstractRenderer { report.addRuleViolation( v ); } +for ( ProcessingError e : errors ) +{ +report.addError( e ); +} return report; } diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index 7034ad0..edd8714 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -420,11 +420,11 @@ public class PmdReport if ( !skipPmdError ) { getLog().error( "PMD processing errors:" ); -getLog().error( renderer.getErrorsAsString() ); +getLog().error( renderer.getErrorsAsString( getLog().isDebugEnabled() ) ); throw new MavenReportException( "Found " + renderer.getErrors().size() + " PMD processing errors" ); } getLog().warn( "There are " + renderer.getErrors().size() + " PMD processing errors:" ); -getLog().warn( renderer.getErrorsAsString() ); +getLog().warn( renderer.getErrorsAsString( getLog().isDebugEnabled() ) ); } removeExcludedViolations( renderer.getViolations() ); diff --git a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java index b539e79..22f9f16 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java @@ -20,9 +20,11 @@ package org.apache.maven.plugins.pmd; */ import java.io.BufferedReader; +import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileReader; import java.io.IOException; +import java.io.PrintStream; import java.net.URL; import java.nio.charset.StandardCharsets; import java.util.Locale; @@ -456,6 +458,35 @@ public class PmdReportTest } } +public void testPMDProcessingErrorWithDetailsSkipped() +throws Exception +{ +File testPom = new File( getBasedir(), + "src/test/resources/unit/processing-error/pmd-processing-error-skip-plugin-config.xml" ); +PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); + +PrintStream originalOut = System.out; +ByteArrayOutputStream logging = new ByteArrayOutputStream(); +System.setOut( new PrintStream( logging ) ); + +try { +mojo.execute(); +String output = logging.toString(); +assertTrue ( output.contains( "There are 1 PMD processing errors:" ) ); + +File generatedFile = new File( getBasedir(), "target/test/unit/parse-error/target/pmd.xml"
[maven-pmd-plugin] 03/03: [MPMD-246] Output details of processing errors
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch MPMD-246 in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit e4be7da1cd940f6499fb2525e0aee87e31814b7e Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:58:08 2017 +0100 [MPMD-246] Output details of processing errors Add new parameter "renderProcessingErrors" --- .../org/apache/maven/plugins/pmd/PmdReport.java| 17 +++- .../apache/maven/plugins/pmd/PmdReportTest.java| 36 ...md-processing-error-no-report-plugin-config.xml | 50 ++ 3 files changed, 102 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index 4152070..ae2a96a 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -206,6 +206,18 @@ public class PmdReport private String analysisCacheLocation; /** + * Also render processing errors into the HTML report. + * Processing errors are problems, that PMD encountered while executing the rules. + * It can be parsing errors or exceptions during rule execution. + * Processing errors indicate a bug in PMD and the information provided help in + * reporting and fixing bugs in PMD. + * + * @since 3.9.0 + */ +@Parameter( property = "pmd.renderProcessingErrors", defaultValue = "true" ) +private boolean renderProcessingErrors = true; + +/** * {@inheritDoc} */ public String getName( Locale locale ) @@ -505,7 +517,10 @@ public class PmdReport PmdReportGenerator doxiaRenderer = new PmdReportGenerator( getLog(), sink, getBundle( locale ), aggregate ); doxiaRenderer.setFiles( filesToProcess ); doxiaRenderer.setViolations( renderer.getViolations() ); -doxiaRenderer.setProcessingErrors( renderer.getErrors() ); +if ( renderProcessingErrors ) +{ +doxiaRenderer.setProcessingErrors( renderer.getErrors() ); +} try { diff --git a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java index 9096c8c..0ba7bbc 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java @@ -494,6 +494,42 @@ public class PmdReportTest } } +public void testPMDProcessingErrorWithDetailsNoReport() +throws Exception +{ +File testPom = new File( getBasedir(), + "src/test/resources/unit/processing-error/pmd-processing-error-no-report-plugin-config.xml" ); +PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); + +PrintStream originalOut = System.out; +ByteArrayOutputStream logging = new ByteArrayOutputStream(); +System.setOut( new PrintStream( logging ) ); + +try { +mojo.execute(); +String output = logging.toString(); +assertTrue ( output.contains( "There are 1 PMD processing errors:" ) ); + +File generatedFile = new File( getBasedir(), "target/test/unit/parse-error/target/pmd.xml" ); +assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); +String str = readFile( generatedFile ); +assertTrue( str.contains( "Error while parsing" ) ); +// The parse exception must be in the XML report +assertTrue( str.contains( "ParseException: Encountered \"\" at line 23, column 5." ) ); + +generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.html" ); +renderer( mojo, generatedFile ); +assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); +str = readFile( generatedFile ); +// The parse exception must NOT be in the HTML report, since reportProcessingErrors is false +assertFalse( str.contains( "ParseException: Encountered \"\" at line 23, column 5." ) ); + +} finally { +System.setOut( originalOut ); +System.out.println( logging.toString() ); +} +} + public void testPMDExcludeRootsShouldExcludeSubdirectories() throws Exception { File testPom = new File(getBasedir(), "src/test/resources/unit/exclude-roots/pmd-exclude-roots-plugin-config.xml"); PmdReport mojo = (PmdReport) lookupMojo ("pmd", testPom); diff --git a/src/test/resources/unit/processing-error/pmd-processing-error-no-report-plugin-config.xml b/src/test/resources/unit/processing-error/pmd-processing-error-no-repor
[maven-pmd-plugin] 06/07: [MPMD-247] Upgrade to PMD 6.0.0
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 866374ad0221da0046b9552f05fd28af6e11da72 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:55:49 2017 +0100 [MPMD-247] Upgrade to PMD 6.0.0 Remove rule EmptyStaticInitializer from default ruleset, since it has been merged into EmptyInitializer --- src/main/resources/rulesets/java/maven-pmd-plugin-default.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml b/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml index aba662e..86bf7a2 100644 --- a/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml +++ b/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml @@ -69,7 +69,6 @@ under the License. - -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
[maven-pmd-plugin] 05/07: [MPMD-247] Upgrade to PMD 6.0.0
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit 4d5e9f981c3d4566a4aa07f420175254fb2d6895 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:55:25 2017 +0100 [MPMD-247] Upgrade to PMD 6.0.0 Adjust remaining old ruleset references --- src/it/MPMD-205-pmd-js-check/pom.xml| 6 +++--- src/it/MPMD-206-sourceDirectories-js/pom.xml| 6 +++--- .../org/apache/maven/plugins/pmd/PmdReportTest.java | 21 - .../custom-configuration-plugin-config.xml | 4 +--- .../javascript-configuration-plugin-config.xml | 6 +++--- .../jsp-configuration-plugin-config.xml | 6 +- 6 files changed, 31 insertions(+), 18 deletions(-) diff --git a/src/it/MPMD-205-pmd-js-check/pom.xml b/src/it/MPMD-205-pmd-js-check/pom.xml index 7d03e2b..f3382e1 100644 --- a/src/it/MPMD-205-pmd-js-check/pom.xml +++ b/src/it/MPMD-205-pmd-js-check/pom.xml @@ -59,9 +59,9 @@ under the License. javascript -ecmascript-basic -ecmascript-braces -ecmascript-unnecessary +/category/ecmascript/bestpractices.xml +/category/ecmascript/codestyle.xml +/category/ecmascript/errorprone.xml **/*.js diff --git a/src/it/MPMD-206-sourceDirectories-js/pom.xml b/src/it/MPMD-206-sourceDirectories-js/pom.xml index 7526304..4819272 100644 --- a/src/it/MPMD-206-sourceDirectories-js/pom.xml +++ b/src/it/MPMD-206-sourceDirectories-js/pom.xml @@ -43,9 +43,9 @@ under the License. javascript -ecmascript-basic -ecmascript-braces -ecmascript-unnecessary +/category/ecmascript/bestpractices.xml +/category/ecmascript/codestyle.xml +/category/ecmascript/errorprone.xml **/*.js diff --git a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java index 22f7280..b539e79 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/PmdReportTest.java @@ -117,14 +117,13 @@ public class PmdReportTest assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); // these are the rulesets, that have been applied... -generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-basic.xml" ); +generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/bestpractices.xml" ); assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-braces.xml" ); +generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/codestyle.xml" ); assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -generatedFile = -new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-unnecessary.xml" ); +generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/errorprone.xml" ); assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.html" ); @@ -418,7 +417,19 @@ public class PmdReportTest assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); // these are the rulesets, that have been applied... -generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/jsp-basic.xml" ); +generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/bestpractices.xml" ); +assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); + +generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/codestyle.xml" ); +assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); + +generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/design.xml" ); +assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); + +generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/errorprone.xml" ); +assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); + +generatedFile = new
[maven-pmd-plugin] branch master updated (a9c1a4f -> b455472)
This is an automated email from the ASF dual-hosted git repository. adangel pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git. from a9c1a4f moved to git new f1f79c2 [MPMD-247] Upgrade to PMD 6.0.0 new f165857 [MPMD-247] Upgrade to PMD 6.0.0 new c0cff37 [MPMD-247] Upgrade to PMD 6.0.0 new d1f37ce [MPMD-247] Upgrade to PMD 6.0.0 new 4d5e9f9 [MPMD-247] Upgrade to PMD 6.0.0 new 866374a [MPMD-247] Upgrade to PMD 6.0.0 new b455472 Merge branch 'MPMD-247' The 7 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: pom.xml| 9 +- src/it/MPMD-205-pmd-js-check/pom.xml | 6 +- src/it/MPMD-206-sourceDirectories-js/pom.xml | 6 +- .../src/main/pmd/ruleset.xml | 1 + .../mod-1/src/main/config/pmd/latin-1.xml | 8 +- .../mod-1/src/main/config/pmd/utf-8.xml| 8 +- src/it/multi-module/mod-2/rulesets/java/basic.xml | 8 +- .../multi-module/mod-3/src/main/config/pmd/abs.xml | 8 +- .../multi-module/mod-3/src/main/config/pmd/rel.xml | 8 +- .../org/apache/maven/plugins/pmd/PmdReport.java| 22 +++-- .../rulesets/java/maven-pmd-plugin-default.xml | 93 ++ src/main/resources/rulesets/maven.xml | 94 ++- src/site/apt/examples/javascriptReport.apt.vm | 13 ++- src/site/apt/examples/jspReport.apt.vm | 14 ++- src/site/apt/examples/multi-module-config.apt.vm | 30 -- .../apt/examples/upgrading-PMD-at-runtime.apt.vm | 2 +- src/site/apt/examples/usingRuleSets.apt.vm | 104 +++-- src/site/apt/index.apt.vm | 18 +++- src/site/apt/usage.apt.vm | 4 +- .../apache/maven/plugins/pmd/PmdReportTest.java| 29 +++--- .../custom-configuration-plugin-config.xml | 4 +- .../resources/rulesets/custom.xml | 30 +++--- .../javascript-configuration-plugin-config.xml | 6 +- .../jsp-configuration-plugin-config.xml| 6 +- .../rulesets/sonar-way-ruleset.xml | 9 +- 25 files changed, 407 insertions(+), 133 deletions(-) create mode 100644 src/main/resources/rulesets/java/maven-pmd-plugin-default.xml -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].
[maven-pmd-plugin] 07/07: Merge branch 'MPMD-247'
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit b45547248cf595434f823a227e924394f0b043bc Merge: a9c1a4f 866374a Author: Andreas Dangel <adan...@apache.org> AuthorDate: Sat Dec 16 17:28:55 2017 +0100 Merge branch 'MPMD-247' pom.xml| 9 +- src/it/MPMD-205-pmd-js-check/pom.xml | 6 +- src/it/MPMD-206-sourceDirectories-js/pom.xml | 6 +- .../src/main/pmd/ruleset.xml | 1 + .../mod-1/src/main/config/pmd/latin-1.xml | 8 +- .../mod-1/src/main/config/pmd/utf-8.xml| 8 +- src/it/multi-module/mod-2/rulesets/java/basic.xml | 8 +- .../multi-module/mod-3/src/main/config/pmd/abs.xml | 8 +- .../multi-module/mod-3/src/main/config/pmd/rel.xml | 8 +- .../org/apache/maven/plugins/pmd/PmdReport.java| 22 +++-- .../rulesets/java/maven-pmd-plugin-default.xml | 93 ++ src/main/resources/rulesets/maven.xml | 94 ++- src/site/apt/examples/javascriptReport.apt.vm | 13 ++- src/site/apt/examples/jspReport.apt.vm | 14 ++- src/site/apt/examples/multi-module-config.apt.vm | 30 -- .../apt/examples/upgrading-PMD-at-runtime.apt.vm | 2 +- src/site/apt/examples/usingRuleSets.apt.vm | 104 +++-- src/site/apt/index.apt.vm | 18 +++- src/site/apt/usage.apt.vm | 4 +- .../apache/maven/plugins/pmd/PmdReportTest.java| 29 +++--- .../custom-configuration-plugin-config.xml | 4 +- .../resources/rulesets/custom.xml | 30 +++--- .../javascript-configuration-plugin-config.xml | 6 +- .../jsp-configuration-plugin-config.xml| 6 +- .../rulesets/sonar-way-ruleset.xml | 9 +- 25 files changed, 407 insertions(+), 133 deletions(-) -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
[maven-pmd-plugin] 01/07: [MPMD-247] Upgrade to PMD 6.0.0
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit f1f79c2eb58204a922af7ee73691f13922cdd5f2 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:52:33 2017 +0100 [MPMD-247] Upgrade to PMD 6.0.0 --- pom.xml | 9 +++-- src/main/java/org/apache/maven/plugins/pmd/PmdReport.java | 12 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 6ada382..499a099 100644 --- a/pom.xml +++ b/pom.xml @@ -91,9 +91,10 @@ under the License. 1.7 ${javaVersion} ${javaVersion} -5.6.1 +6.0.0 3.4 2.8 +3.5 @@ -249,6 +250,10 @@ under the License. ${javaVersion} + + +module-info + true @@ -281,7 +286,7 @@ under the License. org.codehaus.mojo animal-sniffer-maven-plugin -1.12 +1.16 org.codehaus.mojo.signature diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index 5d8cb8f..3d4abf0 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -66,6 +66,7 @@ import net.sourceforge.pmd.renderers.HTMLRenderer; import net.sourceforge.pmd.renderers.Renderer; import net.sourceforge.pmd.renderers.TextRenderer; import net.sourceforge.pmd.renderers.XMLRenderer; +import net.sourceforge.pmd.util.ResourceLoader; import net.sourceforge.pmd.util.datasource.DataSource; import net.sourceforge.pmd.util.datasource.FileDataSource; @@ -388,11 +389,14 @@ public class PmdReport } String encoding = getSourceEncoding(); -if ( StringUtils.isEmpty( encoding ) && !filesToProcess.isEmpty() ) +if ( StringUtils.isEmpty( encoding ) ) { -getLog().warn( "File encoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING - + ", i.e. build is platform dependent!" ); encoding = ReaderFactory.FILE_ENCODING; +if ( !filesToProcess.isEmpty() ) +{ +getLog().warn( "File encoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING + + ", i.e. build is platform dependent!" ); +} } pmdConfiguration.setSourceEncoding( encoding ); @@ -468,7 +472,7 @@ public class PmdReport private void processFilesWithPMD( PMDConfiguration pmdConfiguration, List dataSources ) throws MavenReportException { -RuleSetFactory ruleSetFactory = new RuleSetFactory( RuleSetFactory.class.getClassLoader(), +RuleSetFactory ruleSetFactory = new RuleSetFactory( new ResourceLoader(), RulePriority.valueOf( this.minimumPriority ), false, true ); RuleContext ruleContext = new RuleContext(); -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
[maven-pmd-plugin] 02/07: [MPMD-247] Upgrade to PMD 6.0.0
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit f165857ecde4f4034a5112dc8af5b1431dbf5ac8 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:53:11 2017 +0100 [MPMD-247] Upgrade to PMD 6.0.0 Make use of new ruleset category structure --- .../src/main/pmd/ruleset.xml | 1 + .../mod-1/src/main/config/pmd/latin-1.xml | 8 +++--- .../mod-1/src/main/config/pmd/utf-8.xml| 8 +++--- src/it/multi-module/mod-2/rulesets/java/basic.xml | 8 +++--- .../multi-module/mod-3/src/main/config/pmd/abs.xml | 8 +++--- .../multi-module/mod-3/src/main/config/pmd/rel.xml | 8 +++--- .../resources/rulesets/custom.xml | 30 -- .../rulesets/sonar-way-ruleset.xml | 9 --- 8 files changed, 39 insertions(+), 41 deletions(-) diff --git a/src/it/MPMD-89-232-typeresolution/src/main/pmd/ruleset.xml b/src/it/MPMD-89-232-typeresolution/src/main/pmd/ruleset.xml index adaa539..fcd6bc4 100644 --- a/src/it/MPMD-89-232-typeresolution/src/main/pmd/ruleset.xml +++ b/src/it/MPMD-89-232-typeresolution/src/main/pmd/ruleset.xml @@ -23,5 +23,6 @@ under the License. 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;> +Custom Ruleset for test case MPMD-89 and MPMP-232 diff --git a/src/it/multi-module/mod-1/src/main/config/pmd/latin-1.xml b/src/it/multi-module/mod-1/src/main/config/pmd/latin-1.xml index e4319a2..58cd8d2 100644 --- a/src/it/multi-module/mod-1/src/main/config/pmd/latin-1.xml +++ b/src/it/multi-module/mod-1/src/main/config/pmd/latin-1.xml @@ -18,13 +18,11 @@ specific language governing permissions and limitations under the License. --> http://pmd.sf.net/ruleset/1.0.0; -xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; -xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd; -xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd;> + 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;> This ruleset is encoded with ISO-8859-1 to check proper encoding handling. - + diff --git a/src/it/multi-module/mod-1/src/main/config/pmd/utf-8.xml b/src/it/multi-module/mod-1/src/main/config/pmd/utf-8.xml index 335c06b..32ad786 100644 --- a/src/it/multi-module/mod-1/src/main/config/pmd/utf-8.xml +++ b/src/it/multi-module/mod-1/src/main/config/pmd/utf-8.xml @@ -18,12 +18,10 @@ specific language governing permissions and limitations under the License. --> http://pmd.sf.net/ruleset/1.0.0; -xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; -xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd; -xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd;> +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;> This ruleset is encoded with UTF-8 to check proper encoding handling. - + diff --git a/src/it/multi-module/mod-2/rulesets/java/basic.xml b/src/it/multi-module/mod-2/rulesets/java/basic.xml index 7facb8b..1bf2692 100644 --- a/src/it/multi-module/mod-2/rulesets/java/basic.xml +++ b/src/it/multi-module/mod-2/rulesets/java/basic.xml @@ -18,12 +18,10 @@ specific language governing permissions and limitations under the License. --> http://pmd.sf.net/ruleset/1.0.0; -xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; -xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd; -xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd;> +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;> The relative path of this ruleset matches the built-in ruleset "basic". - + diff --git a/src/it/multi-module/mod-3/src/main/config/pmd/abs.xml b/src/it/multi-module/mod-3/src/main/config/pmd/abs.xml index 1457b47..5dae0d9 100644 --- a/src/it/multi-module/mod-3/src/main/config/pmd/abs.xml +++ b/src/it/multi-module/mod-3/src/main/config/pmd/abs.xml @@ -18,12 +18,10 @@ specific language gov
[maven-pmd-plugin] 04/07: [MPMD-247] Upgrade to PMD 6.0.0
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit d1f37cef8e1a34da615ca52b42bfe506884fa810 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:55:00 2017 +0100 [MPMD-247] Upgrade to PMD 6.0.0 * Provide a new default ruleset: maven-pmd-plugin-default.xml * Update documentation --- .../org/apache/maven/plugins/pmd/PmdReport.java| 10 +- .../rulesets/java/maven-pmd-plugin-default.xml | 94 +++ src/site/apt/examples/javascriptReport.apt.vm | 13 ++- src/site/apt/examples/jspReport.apt.vm | 14 ++- src/site/apt/examples/multi-module-config.apt.vm | 30 -- .../apt/examples/upgrading-PMD-at-runtime.apt.vm | 2 +- src/site/apt/examples/usingRuleSets.apt.vm | 104 +++-- src/site/apt/index.apt.vm | 18 +++- src/site/apt/usage.apt.vm | 4 +- .../apache/maven/plugins/pmd/PmdReportTest.java| 8 +- 10 files changed, 252 insertions(+), 45 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index 3d4abf0..7034ad0 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -119,13 +119,13 @@ public class PmdReport /** * The PMD rulesets to use. See the - * http://pmd.github.io/pmd-5.5.1/pmd-java/rules/index.html;>Stock Java Rulesets for a - * list of some included. Defaults to the java-basic, java-empty, java-imports, java-unnecessary - * and java-unusedcode rulesets. + * http://pmd.github.io/latest/pmd_rules_java.html;>Stock Java Rulesets for a + * list of available rules. + * Defaults to a custom ruleset provided by this maven plugin + * (/rulesets/java/maven-pmd-plugin-default.xml). */ @Parameter -private String[] rulesets = new String[] { "java-basic", "java-empty", "java-imports", -"java-unnecessary", "java-unusedcode" }; +private String[] rulesets = new String[] { "/rulesets/java/maven-pmd-plugin-default.xml" }; /** * Controls whether the project's compile/test classpath should be passed to PMD to enable its type resolution diff --git a/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml b/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml new file mode 100644 index 000..aba662e --- /dev/null +++ b/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml @@ -0,0 +1,94 @@ + + +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;> + + +The default ruleset used by the Maven PMD Plugin, when no other ruleset is specified. +It contains the rules of the old (pre PMD 6.0.0) rulesets java-basic, java-empty, java-imports, +java-unnecessary, java-unusedcode. + +This ruleset might be used as a starting point for an own customized ruleset [0]. + +[0] https://pmd.github.io/latest/pmd_userdocs_understanding_rulesets.html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/site/apt/examples/javascriptReport.apt.vm b/src/site/apt/examples/javascriptReport.apt.vm index 7adf7b4..5159d64 100644 --- a/src/site/apt/examples/javascriptReport.apt.vm +++ b/src/site/apt/examples/javascriptReport.apt.vm @@ -3,7 +3,7 @@ -- Andreas Dangel -- - 2012-05-23 + 2017-11-11 -- ~~ Licensed to the Apache Software Foundation (ASF) under one @@ -31,10 +31,13 @@ Analyzing JavaScript Code The PMD plugin analyzes Java by default. You can configure it to analyze JavaScript files instead as shown below. The example assumes that the JavaScript source code is stored in the subdirectory <<>> and - enables three built-in rulesets (, , ). + enables all rules from the "Best Practices", "Codestyle", and "Error Prone" categories. Note that you have to make sure that you configure <<>> and <<>>, so that PMD finds the JavaScript files. + + See {{{https://pmd.github.io/pmd-${pmdVersion}/pmd_rules_ecmascript.html}JavaScript Rule Index}} for the list + of available rules. +-+ @@ -48,9 +51,9 @@ Analyzing JavaScript Code ja
[maven-pmd-plugin] 03/07: [MPMD-247] Upgrade to PMD 6.0.0
This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git commit c0cff37cc6cdab4faef654746e21cad25fcc9f33 Author: Andreas Dangel <adan...@apache.org> AuthorDate: Fri Dec 15 19:53:36 2017 +0100 [MPMD-247] Upgrade to PMD 6.0.0 Upgrade /rulesets/maven.xml --- src/main/resources/rulesets/maven.xml | 94 ++- 1 file changed, 71 insertions(+), 23 deletions(-) diff --git a/src/main/resources/rulesets/maven.xml b/src/main/resources/rulesets/maven.xml index 1a5ee2d..c7918f6 100644 --- a/src/main/resources/rulesets/maven.xml +++ b/src/main/resources/rulesets/maven.xml @@ -18,34 +18,82 @@ specific language governing permissions and limitations under the License. --> http://pmd.sf.net/ruleset/1.0.0; - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; - xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd; - xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd;> +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;> - + - + +This ruleset checks the code for discouraged programming constructs. + - - - - - - - - + + + + + + + - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.
svn commit: r1813596 - /maven/plugins/trunk/maven-pmd-plugin/pom.xml
Author: adangel Date: Sat Oct 28 08:55:54 2017 New Revision: 1813596 URL: http://svn.apache.org/viewvc?rev=1813596=rev Log: [MPMD-240] Migrate plugin to Maven 3.0 Version has now 3 segements and is 3.9.0-SNAPSHOT Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1813596=1813595=1813596=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Sat Oct 28 08:55:54 2017 @@ -30,7 +30,7 @@ under the License. maven-pmd-plugin - 3.9-SNAPSHOT + 3.9.0-SNAPSHOT maven-plugin Apache Maven PMD Plugin
svn commit: r1813594 - /maven/plugins/trunk/maven-pmd-plugin/pom.xml
Author: adangel Date: Sat Oct 28 08:22:19 2017 New Revision: 1813594 URL: http://svn.apache.org/viewvc?rev=1813594=rev Log: [MPMD-240] Migrate plugin to Maven 3.0 maven-compat now only needed for tests Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1813594=1813593=1813594=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Sat Oct 28 08:22:19 2017 @@ -109,11 +109,6 @@ under the License. ${mavenVersion} - org.apache.maven - maven-compat - ${mavenVersion} - - org.apache.maven.plugin-tools maven-plugin-annotations provided @@ -189,6 +184,12 @@ under the License. + org.apache.maven + maven-compat + ${mavenVersion} + test + + org.apache.maven.plugin-testing maven-plugin-testing-harness 2.1
svn commit: r1813592 [1/2] - in /maven/plugins/trunk/maven-pmd-plugin/src: it/MPMD-163/ it/MPMD-165/ it/MPMD-172/ it/MPMD-181-benchmark/ it/MPMD-181-no-benchmark/ it/MPMD-187/ it/MPMD-205-pmd-js-check
Author: adangel Date: Sat Oct 28 08:22:07 2017 New Revision: 1813592 URL: http://svn.apache.org/viewvc?rev=1813592=rev Log: [MPMD-240] Migrate plugin to Maven 3.0 Housekeeping: * renaming package to o.a.m.plugin*s*.pmd * Rename the groupIds of the integration tests from o.a.m.plugin... to o.a.m.plugins... Added: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/ maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/ maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdViolationCheckMojo.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/CpdReport.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/CpdReportGenerator.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/CpdReportGenerator.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/CpdViolationCheckMojo.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/CpdViolationCheckMojo.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/ExcludeDuplicationsFromFile.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/ExcludeDuplicationsFromFile.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/ExcludeFromFile.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/ExcludeViolationsFromFile.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/ExcludeViolationsFromFile.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/PmdCollectingRenderer.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdCollectingRenderer.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/PmdFileInfo.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdFileInfo.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/PmdReportGenerator.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReportGenerator.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/PmdViolationCheckMojo.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugins/pmd/ViolationDetails.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/ViolationDetails.java maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugins/ maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugins/pmd/ maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugins/pmd/AbstractPmdReportTest.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/AbstractPmdReportTest.java maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugins/pmd/CpdReportTest.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugins/pmd/CpdViolationCheckMojoTest.java - copied, changed from r1813591, maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdViolationCheckMojoTest.java maven/plugins/trunk/maven-pmd
svn commit: r1813593 - /maven/plugins/trunk/maven-pmd-plugin/pom.xml
Author: adangel Date: Sat Oct 28 08:22:14 2017 New Revision: 1813593 URL: http://svn.apache.org/viewvc?rev=1813593=rev Log: [MPMD-240] Migrate plugin to Maven 3.0 Upgrade maven-reporting-impl and doxia Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1813593=1813592=1813593=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Sat Oct 28 08:22:14 2017 @@ -81,7 +81,7 @@ under the License. 3.0 -1.4 +1.7 1.7 ${javaVersion} @@ -119,6 +119,28 @@ under the License. provided + + + net.sourceforge.pmd + pmd-core + ${pmdVersion} + + + net.sourceforge.pmd + pmd-java + ${pmdVersion} + + + net.sourceforge.pmd + pmd-javascript + ${pmdVersion} + + + net.sourceforge.pmd + pmd-jsp + ${pmdVersion} + + org.apache.maven.doxia @@ -135,15 +157,10 @@ under the License. doxia-site-renderer ${doxiaVersion} - - - dom4j - dom4j - - @@ -155,7 +172,7 @@ under the License. org.apache.maven.reporting maven-reporting-impl - 2.3 + 3.0.0 @@ -170,28 +187,6 @@ under the License. 3.0.24 - - - net.sourceforge.pmd - pmd-core - ${pmdVersion} - - - net.sourceforge.pmd - pmd-java - ${pmdVersion} - - - net.sourceforge.pmd - pmd-javascript - ${pmdVersion} - - - net.sourceforge.pmd - pmd-jsp - ${pmdVersion} - - org.apache.maven.plugin-testing
svn commit: r1813592 [2/2] - in /maven/plugins/trunk/maven-pmd-plugin/src: it/MPMD-163/ it/MPMD-165/ it/MPMD-172/ it/MPMD-181-benchmark/ it/MPMD-181-no-benchmark/ it/MPMD-187/ it/MPMD-205-pmd-js-check
Modified: maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/jsp-configuration-plugin-config.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/jsp-configuration-plugin-config.xml?rev=1813592=1813591=1813592=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/jsp-configuration-plugin-config.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/jsp-configuration-plugin-config.xml Sat Oct 28 08:22:07 2017 @@ -33,7 +33,7 @@ under the License. org.apache.maven.plugins maven-pmd-plugin - + ${basedir}/target/test/unit/default-configuration/target/site ${basedir}/target/test/unit/default-configuration/target xml Modified: maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-failandwarnonpriority-plugin-config.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-failandwarnonpriority-plugin-config.xml?rev=1813592=1813591=1813592=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-failandwarnonpriority-plugin-config.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-failandwarnonpriority-plugin-config.xml Sat Oct 28 08:22:07 2017 @@ -33,7 +33,7 @@ under the License. org.apache.maven.plugins maven-pmd-plugin - + ${basedir}/target/test/unit/default-configuration/target true 3 Modified: maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-failonpriority-plugin-config.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-failonpriority-plugin-config.xml?rev=1813592=1813591=1813592=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-failonpriority-plugin-config.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-failonpriority-plugin-config.xml Sat Oct 28 08:22:07 2017 @@ -33,7 +33,7 @@ under the License. org.apache.maven.plugins maven-pmd-plugin - + ${basedir}/target/test/unit/default-configuration/target true 1 Modified: maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-notfailonviolation-plugin-config.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-notfailonviolation-plugin-config.xml?rev=1813592=1813591=1813592=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-notfailonviolation-plugin-config.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-notfailonviolation-plugin-config.xml Sat Oct 28 08:22:07 2017 @@ -33,7 +33,7 @@ under the License. org.apache.maven.plugins maven-pmd-plugin - + ${basedir}/target/test/unit/default-configuration/target false false Modified: maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-pmd-exclusions-configuration-plugin-config.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-pmd-exclusions-configuration-plugin-config.xml?rev=1813592=1813591=1813592=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-pmd-exclusions-configuration-plugin-config.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-check-pmd-exclusions-configuration-plugin-config.xml Sat Oct 28 08:22:07 2017 @@ -33,7 +33,7 @@ under the License. org.apache.maven.plugins maven-pmd-plugin - + ${basedir}/target/test/unit/default-configuration/target true 4 Modified: maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-report-pmd-exclusions-configuration-plugin-config.xml URL:
svn commit: r1813591 - /maven/plugins/trunk/maven-pmd-plugin/pom.xml
Author: adangel Date: Sat Oct 28 08:21:15 2017 New Revision: 1813591 URL: http://svn.apache.org/viewvc?rev=1813591=rev Log: [MPMD-240] Migrate plugin to Maven 3.0 Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1813591=1813590=1813591=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Sat Oct 28 08:21:15 2017 @@ -80,7 +80,7 @@ under the License. -2.2.1 +3.0 1.4 1.7 @@ -110,7 +110,7 @@ under the License. org.apache.maven - maven-project + maven-compat ${mavenVersion} @@ -196,26 +196,19 @@ under the License. org.apache.maven.plugin-testing maven-plugin-testing-harness - 1.3 + 2.1 test com.github.tomakehurst wiremock - 1.52 + 2.9.0 test - - - - org.slf4j - slf4j-api - - - + org.apache.httpcomponents httpclient - 4.3.5 + 4.5.3
svn commit: r1805494 - in /maven/plugins/trunk/maven-pmd-plugin/src/site: apt/examples/upgrading-PMD-at-runtime.apt.vm apt/index.apt.vm site.xml
Author: adangel Date: Sat Aug 19 09:19:07 2017 New Revision: 1805494 URL: http://svn.apache.org/viewvc?rev=1805494=rev Log: [MPMD-239] Add documentation about upgrading PMD version at runtime Added: maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/upgrading-PMD-at-runtime.apt.vm Modified: maven/plugins/trunk/maven-pmd-plugin/src/site/apt/index.apt.vm maven/plugins/trunk/maven-pmd-plugin/src/site/site.xml Added: maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/upgrading-PMD-at-runtime.apt.vm URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/upgrading-PMD-at-runtime.apt.vm?rev=1805494=auto == --- maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/upgrading-PMD-at-runtime.apt.vm (added) +++ maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/upgrading-PMD-at-runtime.apt.vm Sat Aug 19 09:19:07 2017 @@ -0,0 +1,79 @@ + -- + Upgrading PMD at Runtime + -- + Andreas Dangel + -- + 2017-08-19 + -- + + ~~ 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 + +Upgrading PMD at Runtime + + The Maven PMD plugin comes with a default PMD version: for <<>>, + PMD ${pmdVersion} is used by default. + + Given that the {{{https://pmd.github.io}newer PMD version}} is compatible, + you can override the PMD version, that the Maven plugin will use and benefit + from the latest bugfixes and enhancements: + ++-+ + + +...choose your version... + +... + + + + + org.apache.maven.plugins + maven-pmd-plugin + ${project.version} + + + net.sourceforge.pmd + pmd-core + \${pmdVersion} + + + net.sourceforge.pmd + pmd-java + \${pmdVersion} + + + net.sourceforge.pmd + pmd-javascript + \${pmdVersion} + + + net.sourceforge.pmd + pmd-jsp + \${pmdVersion} + + + + + + +... + ++-+ Modified: maven/plugins/trunk/maven-pmd-plugin/src/site/apt/index.apt.vm URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/site/apt/index.apt.vm?rev=1805494=1805493=1805494=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/site/apt/index.apt.vm (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/site/apt/index.apt.vm Sat Aug 19 09:19:07 2017 @@ -73,6 +73,8 @@ ${project.name} To provide you with better understanding of some usages of the Maven PMD Plugin, you can take a look into the following examples: + * {{{./examples/upgrading-PMD-at-runtime.html}Upgrading PMD at Runtime}} + * {{{./examples/multi-module-config.html}Multimodule Configuration}} * {{{./examples/removeReport.html}Remove Report}} Modified: maven/plugins/trunk/maven-pmd-plugin/src/site/site.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/site/site.xml?rev=1805494=1805493=1805494=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/site/site.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/site/site.xml Sat Aug 19 09:19:07 2017 @@ -33,6 +33,7 @@ under the License. +
svn commit: r1011736 - /websites/production/maven/content/
Author: adangel Date: Sat May 6 08:01:23 2017 New Revision: 1011736 Log: Publishing svnmucc operation to maven site by adangel Added: websites/production/maven/content/ - copied from r1011735, websites/staging/maven/trunk/content/
svn commit: r1794128 - /maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt
Author: adangel Date: Sat May 6 07:59:03 2017 New Revision: 1794128 URL: http://svn.apache.org/viewvc?rev=1794128=rev Log: Improve release doc - asking pmc Modified: maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt Modified: maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt?rev=1794128=1794127=1794128=diff == --- maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt (original) +++ maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt Sat May 6 07:59:03 2017 @@ -118,6 +118,10 @@ Vote open for at least 72 hours. To get the list of issues left in JIRA, browse to the plugin's JIRA page, and from the on the right, use the link for issues. + The vote is open for at least 72 hours means, that you need to wait at least 72 hours before proceeding. + This gives others time to test your release and check that everything is good. If you have received after that + not enough +1 votes to reach the quorum, this doesn't mean, the vote failed. It just takes a bit longer. + * Check the vote results Copied from {{{https://www.apache.org/foundation/voting.html#ReleaseVotes}Votes on Package Releases}}. @@ -161,6 +165,7 @@ I will promote the artifacts to the cent release area}}. The release area is maintained with svnsubpub. To deliver a release, you add it to {{{https://dist.apache.org/repos/dist/release/maven}the subversion repository for the dist area}}: add the release, its signature, and corresponding MD5 files. Currently this requires to be in maven-pmc group (see {{{https://issues.apache.org/jira/browse/INFRA-5945}https://issues.apache.org/jira/browse/INFRA-5945}}). + If you are not PMC member, drop a line to <priv...@maven.apache.org> and ask them to do this step for you. For example: @@ -203,6 +208,9 @@ wagon/wagon-2.2-source-release.zip.md5 the <<>> version as 'released'. Create version <<<Y.Z+1>>>, if that hasn't already been done. You may also archive any deprecated releases (milestones or alphas) at this time. + Note: Currently this requires to be in the maven-pmc group. So, if you don't see the Administration option in JIRA, kindly ask <priv...@maven.apache.org> to do this step for you. + + [[4]] Wait for everything to sync [[a]] Sync to {{{https://repo.maven.apache.org/maven2/org/apache/maven/}Maven Central}}
svn commit: r1794127 - /maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt
Author: adangel Date: Sat May 6 07:43:45 2017 New Revision: 1794127 URL: http://svn.apache.org/viewvc?rev=1794127=rev Log: fix link to Apache Committee Report Helper again Modified: maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt Modified: maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt?rev=1794127=1794126=1794127=diff == --- maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt (original) +++ maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt Sat May 6 07:43:45 2017 @@ -177,7 +177,7 @@ wagon/wagon-2.2-source-release.zip.md5 To check that everything is ok in the dist area, dist-tool-plugin has been written and run once a day to produce {{{https://builds.apache.org/view/M-R/view/Maven/job/dist-tool-plugin/site/dist-tool-check-source-release.html}"Disttool> Source Release" report}}. - After committing the 3 source-release files, visit {{{https://reporter.apache.org/addrelease.html?maven}}Apache Committee Report Helper} to add your release data with the Full Version Name and Date of Release. + After committing the 3 source-release files, visit {{{https://reporter.apache.org/addrelease.html?maven}Apache Committee Report Helper}} to add your release data with the Full Version Name and Date of Release. (You will receive an e-mail for it as well). * Promote the release
svn commit: r1794126 - /maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt
Author: adangel Date: Sat May 6 07:38:47 2017 New Revision: 1794126 URL: http://svn.apache.org/viewvc?rev=1794126=rev Log: fix link to Apache Committee Report Helper Modified: maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt Modified: maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt?rev=1794126=1794125=1794126=diff == --- maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt (original) +++ maven/site/trunk/content/apt/developers/release/maven-project-release-procedure.apt Sat May 6 07:38:47 2017 @@ -4,7 +4,7 @@ Jason van Zyl Karl Heinz Marbaise - - 2016-06-18 + 2017-05-06 - ~~ Licensed to the Apache Software Foundation (ASF) under one @@ -177,7 +177,7 @@ wagon/wagon-2.2-source-release.zip.md5 To check that everything is ok in the dist area, dist-tool-plugin has been written and run once a day to produce {{{https://builds.apache.org/view/M-R/view/Maven/job/dist-tool-plugin/site/dist-tool-check-source-release.html}"Disttool> Source Release" report}}. - After committing the 3 source-release files, visit {{{https://reporter.apache.org/addrelease.html?maven}}} to add your release data with the Full Version Name and Date of Release. + After committing the 3 source-release files, visit {{{https://reporter.apache.org/addrelease.html?maven}}Apache Committee Report Helper} to add your release data with the Full Version Name and Date of Release. (You will receive an e-mail for it as well). * Promote the release
svn commit: r1011681 - /websites/production/maven/content/
Author: adangel Date: Fri May 5 08:40:03 2017 New Revision: 1011681 Log: m-pmd-p 3.8 Added: websites/production/maven/content/ - copied from r1011680, websites/staging/maven/trunk/content/
svn commit: r1011677 - /websites/production/maven/components/plugins/maven-pmd-plugin/
Author: adangel Date: Fri May 5 07:52:37 2017 New Revision: 1011677 Log: Publish new site. Added: websites/production/maven/components/plugins/maven-pmd-plugin/ - copied from r1011676, websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.8/
svn commit: r1011676 - /websites/production/maven/components/plugins/maven-pmd-plugin/
Author: adangel Date: Fri May 5 07:52:31 2017 New Revision: 1011676 Log: Remove old site. Removed: websites/production/maven/components/plugins/maven-pmd-plugin/
svn commit: r1011675 - /websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.8/
Author: adangel Date: Fri May 5 07:51:25 2017 New Revision: 1011675 Log: Archive versioned site. Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.8/ - copied from r1011674, websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/
svn commit: r1793969 - /maven/site/trunk/content/apt/plugins/index.apt
Author: adangel Date: Fri May 5 07:43:29 2017 New Revision: 1793969 URL: http://svn.apache.org/viewvc?rev=1793969=rev Log: m-pmd-p 3.8 Modified: maven/site/trunk/content/apt/plugins/index.apt Modified: maven/site/trunk/content/apt/plugins/index.apt URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/plugins/index.apt?rev=1793969=1793968=1793969=diff == --- maven/site/trunk/content/apt/plugins/index.apt (original) +++ maven/site/trunk/content/apt/plugins/index.apt Fri May 5 07:43:29 2017 @@ -8,7 +8,7 @@ Benson Margulies Karl-Heinz Marbaise - - 2017-05-02 + 2017-05-05 - ~~ Licensed to the Apache Software Foundation (ASF) under one @@ -123,7 +123,7 @@ Available Plugins *--++--++--+++ | {{{/plugins/maven-linkcheck-plugin/} <<>>}} | R | 1.2 | 2014-10-08 | Generate a Linkcheck report of your project's documentation. | {{{https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-linkcheck-plugin}SVN}} | {{{https://issues.apache.org/jira/browse/MLINKCHECK}JIRA}} *--++--++--+++ -| {{{/plugins/maven-pmd-plugin/} <<>>}} | B+R| 3.7 | 2016-10-08 | Generate a PMD report. | {{{https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-pmd-plugin}SVN}} | {{{https://issues.apache.org/jira/browse/MPMD}JIRA}} +| {{{/plugins/maven-pmd-plugin/} <<>>}} | B+R| 3.8 | 2017-05-05 | Generate a PMD report. | {{{https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-pmd-plugin}SVN}} | {{{https://issues.apache.org/jira/browse/MPMD}JIRA}} *--++--++--+++ | {{{/plugins/maven-project-info-reports-plugin/} <<>>}} | R | 2.9 | 2016-03-01 | Generate standard project reports. | {{{https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-project-info-reports-plugin}SVN}} | {{{https://issues.apache.org/jira/browse/MPIR}JIRA}} *--++--++--+++
svn commit: r1011460 [7/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultArtifactHandlerStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultArtifactHandlerStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultArtifactHandlerStub.html Mon May 1 07:24:19 2017 @@ -3,13 +3,13 @@ -Uses of Class org.apache.maven.plugin.pmd.stubs.DefaultArtifactHandlerStub (Apache Maven PMD Plugin 3.7 Test API) +Uses of Class org.apache.maven.plugin.pmd.stubs.DefaultArtifactHandlerStub (Apache Maven PMD Plugin 3.8 Test API) @@ -110,6 +110,6 @@ -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultConfigurationMavenProjectStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultConfigurationMavenProjectStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultConfigurationMavenProjectStub.html Mon May 1 07:24:19 2017 @@ -3,13 +3,13 @@ -Uses of Class org.apache.maven.plugin.pmd.stubs.DefaultConfigurationMavenProjectStub (Apache Maven PMD Plugin 3.7 Test API) +Uses of Class org.apache.maven.plugin.pmd.stubs.DefaultConfigurationMavenProjectStub (Apache Maven PMD Plugin 3.8 Test API) @@ -110,6 +110,6 @@ -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/InvalidFormatMavenProjectStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/InvalidFormatMavenProjectStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/InvalidFormatMavenProjectStub.html Mon May 1 07:24:19 2017 @@ -3,13 +3,13 @@ -Uses of Class org.apache.maven.plugin.pmd.stubs.InvalidFormatMavenProjectStub (Apache Maven PMD Plugin 3.7 Test API) +Uses of Class org.apache.maven.plugin.pmd.stubs.InvalidFormatMavenProjectStub (Apache Maven PMD Plugin 3.8 Test API) @@ -110,6 +110,6 @@ -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/PmdPluginArtifactStub.html == ---
svn commit: r1011460 [6/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/surefire-report.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/surefire-report.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/surefire-report.html Mon May 1 07:24:19 2017 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Surefire Report @@ -77,9 +77,9 @@ Surefire Report - | Last Published: 2016-10-08 + | Last Published: 2017-05-01 -Version: 3.7 +Version: 3.8 @@ -488,12 +488,12 @@ function toggleDisplay(elementId) { Success Rate Time -34 +35 0 0 0 100% -6.276 +6.19 Note: failures are anticipated and checked for with assertions while errors are unanticipated. Package List @@ -509,12 +509,12 @@ function toggleDisplay(elementId) { Time org.apache.maven.plugin.pmd -34 +35 0 0 0 100% -6.276 +6.19 Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers. org.apache.maven.plugin.pmd @@ -529,23 +529,23 @@ function toggleDisplay(elementId) { Success Rate Time - -PmdReportTest -15 + +CpdViolationCheckMojoTest +4 0 0 0 100% -2.602 +0.179 - -CpdViolationCheckMojoTest -4 + +PmdReportTest +16 0 0 0 100% -1.561 +3.411 CpdReportTest @@ -554,7 +554,7 @@ function toggleDisplay(elementId) { 0 0 100% -1.121 +2.199 PmdViolationCheckMojoTest @@ -563,158 +563,162 @@ function toggleDisplay(elementId) { 0 0 100% -0.992 +0.401 Test Cases [Summary] [Package List] [Test Cases] -PmdReportTest +CpdViolationCheckMojoTest -testCustomConfiguration -0.327 +testDefaultConfiguration +0.027 -testInvalidFormat -0.145 +testExclusionsConfiguration +0.056 -testSkipEmptyReportConfiguration -0.113 +testNotFailOnViolation +0.078 -testEmptyReportConfiguration -0.167 +testException +0.018 + +PmdReportTest + -testDefaultConfiguration -0.197 +testDefaultConfigurationWithAnalysisCache +0.492 -testJspConfiguration -0.136 +testJavascriptConfiguration +0.243 -testPMDProcessingError -0.065 +testSkipConfiguration +0.023 -testPMDExcludeRootsShouldExcludeSubdirectories -0.107 +testInvalidTargetJdk +0.023 -testViolationExclusion -0.16 +testLocationTemp +0.024 -testJavascriptConfiguration -0.197 +testSuppressMarkerConfiguration +0.211 -testFileURL -0.712 +testJspConfiguration +0.17 -testSkipConfiguration -0.022 +testPMDProcessingError +0.071 -testInvalidTargetJdk -0.021 +testPMDExcludeRootsShouldExcludeSubdirectories +0.122 -testLocationTemp -0.022 +testViolationExclusion +0.204 -testSuppressMarkerConfiguration -0.211 - -CpdViolationCheckMojoTest - +testDefaultConfiguration +0.305 + + +testEmptyReportConfiguration +0.137 -testException -0.323 +testFileURL +0.967 -testNotFailOnViolation -0.938 +testCustomConfiguration +0.246 -testDefaultConfiguration -0.091 +testInvalidFormat +0.087 -testExclusionsConfiguration -0.2 +testSkipEmptyReportConfiguration +0.086 CpdReportTest -testCustomConfiguration -0.223 +testDefaultConfiguration +1.262 -testInvalidFormat -0.044 +testEmptyReportConfiguration +0.162 -testWriteNonHtml -0.07 +testCpdEncodingConfiguration +0.18 -testSkipEmptyReportConfiguration -0.049 +testCpdJavascriptConfiguration +0.142 -testEmptyReportConfiguration -0.128 +testCpdJspConfiguration +0.096 -testCpdEncodingConfiguration -0.104 +testExclusionsConfiguration +0.089 -testCpdJavascriptConfiguration -0.111 +testWriteNonHtml +0.045 -testCpdJspConfiguration -0.115 +testCustomConfiguration +0.14 -testDefaultConfiguration -0.176 +testInvalidFormat +0.034 -testExclusionsConfiguration -0.1 +testSkipEmptyReportConfiguration +0.03 PmdViolationCheckMojoTest -testException -0.03 +testViolationExclusion +0.154 -testNotFailOnViolation -0.469 - - testDefaultConfiguration 0.021 + + +testNotFailOnViolation +0.103 testFailurePriority -0.234 +0.105 -testViolationExclusion -0.237 +testException +0.017 @@ -724,7 +728,7 @@ function toggleDisplay(elementId) { - Copyright 20052016 + Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/taglist.html
svn commit: r1011460 [11/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/c
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html Mon May 1 07:24:19 2017 @@ -140,7 +140,7 @@ 132 * 133 * @since 3.0 134 */ -135 @Parameter( property = "pmd.typeResolution", defaultValue = "false" ) +135 @Parameter( property = "pmd.typeResolution", defaultValue = "true" ) 136 private boolean typeResolution; 137 138 /** @@ -190,508 +190,537 @@ 182 private boolean skipPmdError; 183 184 /** -185 * {@inheritDoc} -186 */ -187 public String getName( Locale locale ) -188 { -189 return getBundle( locale ).getString( "report.pmd.name" ); -190 } -191 -192 /** -193 * {@inheritDoc} -194 */ -195 public String getDescription( Locale locale ) -196 { -197 return getBundle( locale ).getString( "report.pmd.description" ); -198 } -199 -200 public void setRulesets( String[] rules ) -201 { -202 rulesets = rules; -203 } -204 -205 /** -206 * {@inheritDoc} -207 */ -208 @Override -209 public void executeReport( Locale locale ) -210 throws MavenReportException +185 * Enables the analysis cache, which speeds up PMD. This +186 * requires a cache file, that contains the results of the last +187 * PMD run. Thus the cache is only effective, if this file is +188 * not cleaned between runs. +189 * +190 * @since 3.8 +191 */ +192 @Parameter( property = "pmd.analysisCache", defaultValue = "false" ) +193 private boolean analysisCache; +194 +195 /** +196 * The location of the analysis cache, if it is enabled. +197 * This file contains the results of the last PMD run and must not be cleaned +198 * between consecutive PMD runs. Otherwise the cache is not in use. +199 * If the file doesn't exist, PMD executes as if there is no cache enabled and +200 * all files are analyzed. Otherwise only changed files will be analyzed again. +201 * +202 * @since 3.8 +203 */ +204 @Parameter( property = "pmd.analysisCacheLocation", defaultValue = "${project.build.directory}/pmd/pmd.cache" ) +205 private String analysisCacheLocation; +206 +207 /** +208 * {@inheritDoc} +209 */ +210 public String getName( Locale locale ) 211 { -212 try -213 { -214 execute( locale ); -215 } -216 finally -217 { -218 if ( getSink() != null ) -219 { -220 getSink().close(); -221 } -222 } -223 } -224 -225 private void execute( Locale locale ) -226 throws MavenReportException -227 { -228 if ( !skip canGenerateReport() ) -229 { -230 ClassLoader origLoader = Thread.currentThread().getContextClassLoader(); -231 try -232 { -233 Thread.currentThread().setContextClassLoader( this.getClass().getClassLoader() ); -234 -235 Report report = generateReport( locale ); -236 -237 if ( !isHtml() !isXml() ) -238 { -239 writeNonHtml( report ); -240 } -241 } -242 finally -243 { -244 Thread.currentThread().setContextClassLoader( origLoader ); -245 } -246 } -247 } -248 -249 @Override -250 public boolean canGenerateReport() -251 { -252 if ( skip ) -253 { -254 return false; -255 } -256 -257 boolean result = super.canGenerateReport(); -258 if ( result ) -259 { -260 try -261 { -262 executePmdWithClassloader(); -263 if ( skipEmptyReport ) -264 { -265 result = renderer.hasViolations(); -266 if ( result ) -267 { -268 getLog().debug( "Skipping report since skipEmptyReport is true and" -269 + "there are no PMD violations." ); -270 } -271 } -272 } -273 catch ( MavenReportException e ) -274 { -275 throw new RuntimeException( e ); -276 } -277 } -278 return result; -279 } -280 -281 private void executePmdWithClassloader() -282 throws MavenReportException -283 { -284 ClassLoader origLoader =
svn commit: r1011460 [2/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReport.html Mon May 1 07:24:19 2017 @@ -3,13 +3,13 @@ -PmdReport (Apache Maven PMD Plugin 3.7 API) +PmdReport (Apache Maven PMD Plugin 3.8 API) @@ -195,7 +195,7 @@ extends canGenerateReport() -http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/Renderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">Renderer +net.sourceforge.pmd.renderers.Renderer createRenderer() Create and return the correct renderer for the output type. @@ -223,7 +223,7 @@ extends getOutputName() -http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/PMDConfiguration.html?is-external=true; title="class or interface in net.sourceforge.pmd">PMDConfiguration +net.sourceforge.pmd.PMDConfiguration getPMDConfiguration() Constructs the PMD configuration class, passing it an argument that configures the target JDK. @@ -368,8 +368,8 @@ extends getPMDConfiguration -publichttp://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/PMDConfiguration.html?is-external=true; title="class or interface in net.sourceforge.pmd">PMDConfigurationgetPMDConfiguration() - throws http://maven.apache.org/shared/maven-reporting-api/apidocs/org/apache/maven/reporting/MavenReportException.html?is-external=true; title="class or interface in org.apache.maven.reporting">MavenReportException +publicnet.sourceforge.pmd.PMDConfigurationgetPMDConfiguration() + throws http://maven.apache.org/shared/maven-reporting-api/apidocs/org/apache/maven/reporting/MavenReportException.html?is-external=true; title="class or interface in org.apache.maven.reporting">MavenReportException Constructs the PMD configuration class, passing it an argument that configures the target JDK. Returns:the resulting PMD Throws: @@ -391,8 +391,8 @@ extends createRenderer -public finalhttp://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/Renderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">RenderercreateRenderer() - throws http://maven.apache.org/shared/maven-reporting-api/apidocs/org/apache/maven/reporting/MavenReportException.html?is-external=true; title="class or interface in org.apache.maven.reporting">MavenReportException +public finalnet.sourceforge.pmd.renderers.RenderercreateRenderer() +throws http://maven.apache.org/shared/maven-reporting-api/apidocs/org/apache/maven/reporting/MavenReportException.html?is-external=true; title="class or interface in org.apache.maven.reporting">MavenReportException Create and return the correct renderer for the output type. Returns:the renderer based on the configured output Throws: @@ -466,6 +466,6 @@ extends Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReportGenerator.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReportGenerator.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReportGenerator.html Mon May 1 07:24:19 2017 @@ -3,13 +3,13 @@ -PmdReportGenerator (Apache Maven PMD Plugin 3.7 API) +PmdReportGenerator (Apache Maven PMD Plugin 3.8 API) @@ -149,7 +149,7 @@ extends http://docs.oracle.com/ endDocument() -http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true; title="class or interface in
svn commit: r1011460 [8/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html Mon May 1 07:24:19 2017 @@ -38,270 +38,270 @@ 30 import javax.xml.parsers.DocumentBuilder; 31 import javax.xml.parsers.DocumentBuilderFactory; 32 -33 import net.sourceforge.pmd.cpd.CPD; -34 import net.sourceforge.pmd.cpd.CPDConfiguration; -35 import net.sourceforge.pmd.cpd.JavaLanguage; -36 import net.sourceforge.pmd.cpd.Mark; -37 import net.sourceforge.pmd.cpd.Match; -38 import net.sourceforge.pmd.cpd.TokenEntry; -39 -40 import org.apache.commons.lang3.StringUtils; -41 import org.codehaus.plexus.util.FileUtils; -42 import org.w3c.dom.Document; -43 -44 /** -45 * @author a href="mailto:och...@apache.org; target="alexandria_uri">mailto:och...@apache.org"Maria Odea Ching/a -46 * @version $Id$ -47 */ -48 public class CpdReportTest -49 extends AbstractPmdReportTest -50 { -51 /** -52 * {@inheritDoc} -53 */ -54 @Override -55 protected void setUp() -56 throws Exception -57 { -58 super.setUp(); -59 FileUtils.deleteDirectory( new File( getBasedir(), "target/test/unit" ) ); -60 } -61 -62 /** -63 * Test CPDReport given the default configuration -64 * -65 * @throws Exception -66 */ -67 public void testDefaultConfiguration() -68 throws Exception -69 { -70 File testPom = -71 new File( getBasedir(), -72 "src/test/resources/unit/default-configuration/cpd-default-configuration-plugin-config.xml" ); -73 CpdReport mojo = (CpdReport) lookupMojo( "cpd", testPom ); -74 mojo.execute(); -75 -76 // check if the CPD files were generated -77 File generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/cpd.xml" ); -78 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -79 -80 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ); -81 renderer( mojo, generatedFile ); -82 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -83 -84 // check the contents of cpd.html -85 String str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -86 assertTrue( lowerCaseContains( str, "AppSample.java" ) ); -87 -88 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -89 assertTrue( lowerCaseContains( str, "App.java" ) ); -90 -91 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -92 assertTrue( lowerCaseContains( str, "public String dup( String str )" ) ); -93 -94 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -95 assertTrue( lowerCaseContains( str, "tmp = tmp + str.substring( i, i + 1);" ) ); -96 } -97 -98 /** -99 * Test CPDReport using custom configuration -100 * -101 * @throws Exception -102 */ -103 public void testCustomConfiguration() -104 throws Exception -105 { -106 File testPom = -107 new File( getBasedir(), -108 "src/test/resources/unit/custom-configuration/cpd-custom-configuration-plugin-config.xml" ); -109 CpdReport mojo = (CpdReport) lookupMojo( "cpd", testPom ); -110 mojo.execute(); -111 -112 // check if the CPD files were generated -113 File generatedFile = new File( getBasedir(), "target/test/unit/custom-configuration/target/cpd.csv" ); -114 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -115 -116 generatedFile = new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ); -117 renderer( mojo, generatedFile ); -118 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -119 -120 // Contents that should NOT be in the report -121 String str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -122 assertFalse( lowerCaseContains( str, "/Sample.java" ) ); -123 -124 str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -125
svn commit: r1011460 [4/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html Mon May 1 07:24:19 2017 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Dependency Convergence @@ -77,9 +77,9 @@ Dependency Convergence - | Last Published: 2016-10-08 + | Last Published: 2017-05-01 -Version: 3.7 +Version: 3.8 @@ -477,19 +477,19 @@ Number of dependencies (NOD): -110 +109 Number of unique artifacts (NOA): 142 Number of version-conflicting artifacts (NOC): -18 +19 Number of SNAPSHOT artifacts (NOS): 0 Convergence (NOD/NOA): -77 % +76 % Ready for release (100% convergence and no SNAPSHOTS): ErrorYou do not have 100% convergence. @@ -505,11 +505,11 @@ 1.1 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-(classworlds:classworlds:jar:1.1:test - omitted for conflict with 1.1-alpha-2) +org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.8\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-(classworlds:classworlds:jar:1.1:test - omitted for conflict with 1.1-alpha-2) 1.1-alpha-2 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7+-org.apache.maven:maven-project:jar:2.2.1:compile|\-org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile|\-classworlds:classworlds:jar:1.1-alpha-2:compile\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:test\-(classworlds:classworlds:jar:1.1-alpha-2:test - omitted for duplicate) +org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.8+-org.apache.maven:maven-project:jar:2.2.1:compile|\-org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile|\-classworlds:classworlds:jar:1.1-alpha-2:compile\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:test\-(classworlds:classworlds:jar:1.1-alpha-2:test - omitted for duplicate) com.fasterxml.jackson.core:jackson-annotations @@ -520,11 +520,11 @@ 2.4.0 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7\-com.github.tomakehurst:wiremock:jar:1.52:test\-com.fasterxml.jackson.core:jackson-databind:jar:2.4.2:test\-(com.fasterxml.jackson.core:jackson-annotations:jar:2.4.0:test - omitted for conflict with 2.4.2) +org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.8\-com.github.tomakehurst:wiremock:jar:1.52:test\-com.fasterxml.jackson.core:jackson-databind:jar:2.4.2:test\-(com.fasterxml.jackson.core:jackson-annotations:jar:2.4.0:test - omitted for conflict with 2.4.2) 2.4.2 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7\-com.github.tomakehurst:wiremock:jar:1.52:test\-com.fasterxml.jackson.core:jackson-annotations:jar:2.4.2:test +org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.8\-com.github.tomakehurst:wiremock:jar:1.52:test\-com.fasterxml.jackson.core:jackson-annotations:jar:2.4.2:test commons-codec:commons-codec @@ -535,11 +535,11 @@ 1.2 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-org.apache.maven.wagon:wagon-webdav-jackrabbit:jar:1.0-beta-6:test\-org.apache.jackrabbit:jackrabbit-webdav:jar:1.5.0:test\-commons-httpclient:commons-httpclient:jar:3.0:test\-(commons-codec:commons-codec:jar:1.2:test - omitted for conflict with 1.3) +org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.8\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-org.apache.maven.wagon:wagon-webdav-jackrabbit:jar:1.0-beta-6:test\-org.apache.jackrabbit:jackrabbit-webdav:jar:1.5.0:test\-commons-httpclient:commons-httpclient:jar:3.0:test\-(commons-codec:commons-codec:jar:1.2:test - omitted for conflict with 1.3) 1.6 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7\-org.apache.httpcomponents:httpclient:jar:4.3.5:test (scope not updated to compile)\-commons-codec:commons-codec:jar:1.6:test
svn commit: r1011460 [9/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdReportTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdReportTest.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdReportTest.html Mon May 1 07:24:19 2017 @@ -99,232 +99,232 @@ 91 assertTrue( str.contains( "/xref/def/configuration/AppSample.html#L45" ) ); 92 } 93 -94 public void testJavascriptConfiguration() -95 throws Exception +94 public void testDefaultConfigurationWithAnalysisCache() +95 throws Exception 96 { -97 File testPom = -98 new File( getBasedir(), -99 "src/test/resources/unit/default-configuration/javascript-configuration-plugin-config.xml" ); -100 PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); -101 mojo.execute(); -102 -103 // check if the PMD files were generated -104 File generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/pmd.xml" ); -105 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); +97 FileUtils.copyDirectoryStructure( new File( getBasedir(), +98 "src/test/resources/unit/default-configuration/jxr-files" ), +99 new File( getBasedir(), "target/test/unit/pmd-with-analysis-cache-plugin-config/target/site" ) ); +100 +101 File testPom = +102 new File( getBasedir(), +103 "src/test/resources/unit/default-configuration/pmd-with-analysis-cache-plugin-config.xml" ); +104 PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); +105 mojo.execute(); 106 -107 // these are the rulesets, that have been applied... -108 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-basic.xml" ); -109 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -110 -111 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-braces.xml" ); -112 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -113 -114 generatedFile = -115 new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-unnecessary.xml" ); -116 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -117 -118 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.html" ); -119 renderer( mojo, generatedFile ); -120 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -121 -122 String str = readFile( generatedFile ); -123 assertTrue( str.contains( "Avoid using global variables" ) ); -124 } -125 -126 public void testFileURL() -127 throws Exception -128 { -129 FileUtils.copyDirectoryStructure( new File( getBasedir(), -130 "src/test/resources/unit/default-configuration/jxr-files" ), -131 new File( getBasedir(), "target/test/unit/default-configuration/target/site" ) ); -132 -133 File testPom = -134 new File( getBasedir(), -135 "src/test/resources/unit/default-configuration/default-configuration-plugin-config.xml" ); -136 PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); -137 -138 // Additional test case for MPMD-174 (http://jira.codehaus.org/browse/MPMD-174). -139 WireMockServer mockServer = new WireMockServer( 3456 ); -140 mockServer.start(); -141 -142 String sonarRuleset = -143 IOUtils.toString( getClass().getClassLoader().getResourceAsStream( "unit/default-configuration/rulesets/sonar-way-ruleset.xml" ), -144 StandardCharsets.UTF_8 ); -145 -146 String sonarMainPageHtml = -147 IOUtils.toString( getClass().getClassLoader().getResourceAsStream( "unit/default-configuration/rulesets/sonar-main-page.html" ), -148 StandardCharsets.UTF_8 ); -149 -150 final String sonarBaseUrl = "/profiles"; -151 final String sonarProfileUrl = sonarBaseUrl + "/export?format=pmdlanguage=javaname=Sonar%2520way"; -152 final String sonarExportRulesetUrl = "http://localhost:; + mockServer.port() + sonarProfileUrl; -153 -154 mockServer.stubFor( WireMock.get( WireMock.urlEqualTo( sonarBaseUrl ) ).willReturn(
svn commit: r1011460 [5/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/javascriptReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/javascriptReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/javascriptReport.html Mon May 1 07:24:19 2017 @@ -1,6 +1,6 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -9,7 +9,7 @@ - + Apache Maven PMD Plugin Analyzing JavaScript Code @@ -79,9 +79,9 @@ Analyzing JavaScript Code - | Last Published: 2016-10-08 + | Last Published: 2017-05-01 -Version: 3.7 +Version: 3.8 @@ -378,7 +378,7 @@ plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId -version3.7/version +version3.8/version configuration languagejavascript/language rulesets @@ -408,7 +408,7 @@ - Copyright 20052016 + Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. 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 Mon May 1 07:24:19 2017 @@ -1,6 +1,6 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -9,7 +9,7 @@ - + Apache Maven PMD Plugin Analyzing JSP Code @@ -79,9 +79,9 @@ Analyzing JSP Code - | Last Published: 2016-10-08 + | Last Published: 2017-05-01 -Version: 3.7 +Version: 3.8 @@ -378,7 +378,7 @@ plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId -version3.7/version +version3.8/version configuration languagejsp/language rulesets @@ -406,7 +406,7 @@ - Copyright 20052016 + Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. Modified: 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 (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/multi-module-config.html Mon May 1 07:24:19 2017 @@ -1,6 +1,6 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ - + Apache Maven PMD Plugin Multimodule Configuration @@ -78,9 +78,9 @@ Multimodule Configuration - | Last Published: 2016-10-08 + | Last Published: 2017-05-01 -Version: 3.7 +Version: 3.8 @@ -436,7 +436,7 @@ plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId -version3.7/version +version3.8/version configuration rulesets rulesetwhizbang/pmd-ruleset.xml/ruleset @@ -465,7 +465,7 @@ plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId -version3.7/version +version3.8/version configuration rulesets rulesetwhizbang/pmd-ruleset.xml/ruleset @@ -497,7 +497,7 @@ - Copyright 20052016 + Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All
svn commit: r1011460 [10/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/c
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.html Mon May 1 07:24:19 2017 @@ -166,6 +166,6 @@ 158 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-frame.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-frame.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-frame.html Mon May 1 07:24:19 2017 @@ -3,7 +3,7 @@ - Apache Maven PMD Plugin 3.7 Reference Package org.apache.maven.plugin.pmd + Apache Maven PMD Plugin 3.8 Reference Package org.apache.maven.plugin.pmd Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-summary.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-summary.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-summary.html Mon May 1 07:24:19 2017 @@ -3,7 +3,7 @@ - Apache Maven PMD Plugin 3.7 Reference Package org.apache.maven.plugin.pmd + Apache Maven PMD Plugin 3.8 Reference Package org.apache.maven.plugin.pmd @@ -88,7 +88,7 @@ - Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. + Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/CustomConfigurationMavenProjectStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/CustomConfigurationMavenProjectStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/CustomConfigurationMavenProjectStub.html Mon May 1 07:24:19 2017 @@ -128,6 +128,6 @@ 120 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/DefaultArtifactHandlerStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/DefaultArtifactHandlerStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/DefaultArtifactHandlerStub.html Mon May 1 07:24:19 2017 @@ -57,6 +57,6 @@ 49 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/DefaultConfigurationMavenProjectStub.html == ---
svn commit: r1011460 [1/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Author: adangel Date: Mon May 1 07:24:19 2017 New Revision: 1011460 Log: Site checkin for project Apache Maven PMD Plugin Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/allclasses-frame.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/allclasses-noframe.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/constant-values.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/deprecated-list.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/help-doc.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/index-all.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/index.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/AbstractPmdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/CpdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/CpdReportGenerator.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/CpdViolationCheckMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/ExcludeDuplicationsFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/ExcludeFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/ExcludeViolationsFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/HelpMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdCollectingRenderer.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdFileInfo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReportGenerator.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/ViolationDetails.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/AbstractPmdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/AbstractPmdViolationCheckMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/CpdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/CpdReportGenerator.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/CpdViolationCheckMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/ExcludeDuplicationsFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/ExcludeFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/ExcludeViolationsFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/HelpMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdCollectingRenderer.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdFileInfo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use
svn commit: r1011460 [12/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/c
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReportGenerator.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReportGenerator.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReportGenerator.html Mon May 1 07:24:19 2017 @@ -331,6 +331,6 @@ 323 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html Mon May 1 07:24:19 2017 @@ -179,6 +179,6 @@ 171 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/ViolationDetails.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/ViolationDetails.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/ViolationDetails.html Mon May 1 07:24:19 2017 @@ -77,6 +77,6 @@ 69 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdErrorDetail.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdErrorDetail.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdErrorDetail.html Mon May 1 07:24:19 2017 @@ -110,6 +110,6 @@ 102 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdFile.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdFile.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdFile.html Mon May 1 07:24:19 2017 @@ -85,6 +85,6 @@ 77 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/Duplication.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/Duplication.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/Duplication.html Mon May 1 07:24:19 2017 @@ -160,6 +160,6 @@ 152 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/PmdErrorDetail.html
svn commit: r1793285 - /maven/plugins/trunk/maven-pmd-plugin/pom.xml
Author: adangel Date: Mon May 1 06:50:44 2017 New Revision: 1793285 URL: http://svn.apache.org/viewvc?rev=1793285=rev Log: [maven-release-plugin] prepare for next development iteration Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1793285=1793284=1793285=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Mon May 1 06:50:44 2017 @@ -30,7 +30,7 @@ under the License. maven-pmd-plugin - 3.8 + 3.9-SNAPSHOT maven-plugin Apache Maven PMD Plugin @@ -64,9 +64,9 @@ under the License. - scm:svn:http://svn.apache.org/repos/asf/maven/plugins/tags/maven-pmd-plugin-3.8 - scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-pmd-plugin-3.8 - http://svn.apache.org/viewvc/maven/plugins/tags/maven-pmd-plugin-3.8 + scm:svn:http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-pmd-plugin/ + scm:svn:https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-pmd-plugin/ + http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/ JIRA
svn commit: r1793283 - /maven/plugins/trunk/maven-pmd-plugin/pom.xml
Author: adangel Date: Mon May 1 06:50:28 2017 New Revision: 1793283 URL: http://svn.apache.org/viewvc?rev=1793283=rev Log: [maven-release-plugin] prepare release maven-pmd-plugin-3.8 Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1793283=1793282=1793283=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Mon May 1 06:50:28 2017 @@ -30,7 +30,7 @@ under the License. maven-pmd-plugin - 3.8-SNAPSHOT + 3.8 maven-plugin Apache Maven PMD Plugin @@ -64,9 +64,9 @@ under the License. - scm:svn:http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-pmd-plugin/ - scm:svn:https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-pmd-plugin/ - http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/ + scm:svn:http://svn.apache.org/repos/asf/maven/plugins/tags/maven-pmd-plugin-3.8 + scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-pmd-plugin-3.8 + http://svn.apache.org/viewvc/maven/plugins/tags/maven-pmd-plugin-3.8 JIRA
svn commit: r1793284 - /maven/plugins/tags/maven-pmd-plugin-3.8/
Author: adangel Date: Mon May 1 06:50:42 2017 New Revision: 1793284 URL: http://svn.apache.org/viewvc?rev=1793284=rev Log: [maven-release-plugin] copy for tag maven-pmd-plugin-3.8 Added: maven/plugins/tags/maven-pmd-plugin-3.8/ - copied from r1793283, maven/plugins/trunk/maven-pmd-plugin/
svn commit: r1793232 - in /maven/plugins/trunk/maven-pmd-plugin/src: it/MPMD-234-analysis-cache/ it/MPMD-234-analysis-cache/custom-analysis-cache/ it/MPMD-234-analysis-cache/custom-analysis-cache/src/
Author: adangel Date: Sat Apr 29 19:15:09 2017 New Revision: 1793232 URL: http://svn.apache.org/viewvc?rev=1793232=rev Log: [MPMD-234] Support incremental analysis cache Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/pom.xml maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/src/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/src/main/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/src/main/java/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/src/main/java/com/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/src/main/java/com/mycompany/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/src/main/java/com/mycompany/app/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/src/main/java/com/mycompany/app/Hello.java maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/default-analysis-cache/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/default-analysis-cache/pom.xml maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/default-analysis-cache/src/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/default-analysis-cache/src/main/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/default-analysis-cache/src/main/java/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/default-analysis-cache/src/main/java/com/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/default-analysis-cache/src/main/java/com/mycompany/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/default-analysis-cache/src/main/java/com/mycompany/app/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/default-analysis-cache/src/main/java/com/mycompany/app/Hello.java maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/invoker.properties maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/no-analysis-cache/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/no-analysis-cache/pom.xml maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/no-analysis-cache/src/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/no-analysis-cache/src/main/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/no-analysis-cache/src/main/java/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/no-analysis-cache/src/main/java/com/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/no-analysis-cache/src/main/java/com/mycompany/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/no-analysis-cache/src/main/java/com/mycompany/app/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/no-analysis-cache/src/main/java/com/mycompany/app/Hello.java maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/pom.xml maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/verify.groovy maven/plugins/trunk/maven-pmd-plugin/src/test/resources/unit/default-configuration/pmd-with-analysis-cache-plugin-config.xml Modified: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/PmdReportTest.java Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/pom.xml?rev=1793232=auto == --- maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/pom.xml (added) +++ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-234-analysis-cache/custom-analysis-cache/pom.xml Sat Apr 29 19:15:09 2017 @@ -0,0 +1,50 @@ + + + + +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;> + 4.0.0 + + org.apache.maven.plugin.pmd.its.MPMD-234-analysis-cache + custom-analysis-cache + 1.0-SNAPSHOT + + +Verify that an analysis cache file is produced at a custom location. + + + +UTF-8 + + + + + +org.apache.maven.plugins +maven-pmd-plugin +@pr
svn commit: r1793231 - in /maven/plugins/trunk/maven-pmd-plugin: pom.xml src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
Author: adangel Date: Sat Apr 29 19:14:41 2017 New Revision: 1793231 URL: http://svn.apache.org/viewvc?rev=1793231=rev Log: [MPMD-233] Upgrade to PMD 5.6.1 Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1793231=1793230=1793231=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Sat Apr 29 19:14:41 2017 @@ -86,7 +86,7 @@ under the License. 1.7 ${javaVersion} ${javaVersion} -5.5.6 +5.6.1 3.4 2.8 Modified: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java?rev=1793231=1793230=1793231=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java Sat Apr 29 19:14:41 2017 @@ -33,7 +33,7 @@ public interface ExcludeFromFile * @param excludeFromFailureFile the path to the properties file * @throws MojoExecutionException if the properties file couldn't be loaded */ -void loadExcludeFromFailuresData( final String excludeFromFailureFile ) throws MojoExecutionException; +void loadExcludeFromFailuresData( String excludeFromFailureFile ) throws MojoExecutionException; /** * Determines how many exclusions are considered. @@ -48,6 +48,6 @@ public interface ExcludeFromFile * @param errorDetail the violation to check * @return true if the violation should be excluded, false otherwise. */ -boolean isExcludedFromFailure( final D errorDetail ); +boolean isExcludedFromFailure( D errorDetail ); } Modified: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java?rev=1793231=1793230=1793231=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java Sat Apr 29 19:14:41 2017 @@ -445,8 +445,8 @@ public class PmdReport private void processFilesWithPMD( PMDConfiguration pmdConfiguration, List dataSources ) throws MavenReportException { -RuleSetFactory ruleSetFactory = new RuleSetFactory(); -ruleSetFactory.setMinimumPriority( RulePriority.valueOf( this.minimumPriority ) ); +RuleSetFactory ruleSetFactory = new RuleSetFactory( RuleSetFactory.class.getClassLoader(), +RulePriority.valueOf( this.minimumPriority ), false, true ); RuleContext ruleContext = new RuleContext(); try
svn commit: r1792522 - /maven/plugins/trunk/maven-pmd-plugin/pom.xml
Author: adangel Date: Mon Apr 24 17:59:33 2017 New Revision: 1792522 URL: http://svn.apache.org/viewvc?rev=1792522=rev Log: [MPMD-231] Upgrade to PMD 5.5.6 Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1792522=1792521=1792522=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Mon Apr 24 17:59:33 2017 @@ -86,7 +86,7 @@ under the License. 1.7 ${javaVersion} ${javaVersion} -5.5.5 +5.5.6 3.4 2.8
svn commit: r1789660 - in /maven/plugins/trunk: .gitignore maven-pmd-plugin/pom.xml
Author: adangel Date: Fri Mar 31 10:59:38 2017 New Revision: 1789660 URL: http://svn.apache.org/viewvc?rev=1789660=rev Log: m-pmd-p: git+rat ignore .pmd and .checkstyle file Modified: maven/plugins/trunk/.gitignore maven/plugins/trunk/maven-pmd-plugin/pom.xml Modified: maven/plugins/trunk/.gitignore URL: http://svn.apache.org/viewvc/maven/plugins/trunk/.gitignore?rev=1789660=1789659=1789660=diff == --- maven/plugins/trunk/.gitignore (original) +++ maven/plugins/trunk/.gitignore Fri Mar 31 10:59:38 2017 @@ -7,3 +7,5 @@ target/ out/ .DS_Store .java-version +.pmd +.checkstyle Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1789660=1789659=1789660=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Fri Mar 31 10:59:38 2017 @@ -227,6 +227,20 @@ under the License. + + + + org.apache.rat + apache-rat-plugin + + + .pmd + .checkstyle + + + + +
svn commit: r1789659 - in /maven/plugins/trunk/maven-pmd-plugin/src: it/MPMD-89-232-typeresolution/pom.xml main/java/org/apache/maven/plugin/pmd/PmdReport.java
Author: adangel Date: Fri Mar 31 10:59:32 2017 New Revision: 1789659 URL: http://svn.apache.org/viewvc?rev=1789659=rev Log: [MPMD-232] Enable typeResolution by default Modified: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/pom.xml maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java Modified: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/pom.xml?rev=1789659=1789658=1789659=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/pom.xml Fri Mar 31 10:59:32 2017 @@ -23,7 +23,7 @@ under the License. 4.0.0 org.apache.maven.plugin.pmd.it - mpmd-89 + MPMD-89-232-typeresolution 1.0-SNAPSHOT @@ -56,7 +56,8 @@ under the License. false true - true + + src/main/pmd/ruleset.xml Modified: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java?rev=1789659=1789658=1789659=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java Fri Mar 31 10:59:32 2017 @@ -132,7 +132,7 @@ public class PmdReport * * @since 3.0 */ -@Parameter( property = "pmd.typeResolution", defaultValue = "false" ) +@Parameter( property = "pmd.typeResolution", defaultValue = "true" ) private boolean typeResolution; /**
svn commit: r1789658 - in /maven/plugins/trunk/maven-pmd-plugin/src/it: MPMD-89-232-typeresolution/ MPMD-89-232-typeresolution/src/ MPMD-89-232-typeresolution/src/main/ MPMD-89-232-typeresolution/src/
Author: adangel Date: Fri Mar 31 10:59:24 2017 New Revision: 1789658 URL: http://svn.apache.org/viewvc?rev=1789658=rev Log: [MPMD-232] Rename integration test for typeresolution Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/invoker.properties - copied, changed from r1789640, maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/invoker.properties maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/pom.xml - copied, changed from r1789640, maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/pom.xml maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/main/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/main/pmd/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/main/pmd/ruleset.xml - copied, changed from r1789640, maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/src/main/pmd/ruleset.xml maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/test/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/test/java/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/test/java/it/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/test/java/it/NoTestsHere.java - copied, changed from r1789640, maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/src/test/java/it/NoTestsHere.java maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/test/java/it/TestSupport.java - copied, changed from r1789640, maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/src/test/java/it/TestSupport.java maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/verify.groovy - copied, changed from r1789640, maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/verify.groovy Removed: maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/invoker.properties maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/pom.xml maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/src/main/pmd/ruleset.xml maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/src/test/java/it/NoTestsHere.java maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/src/test/java/it/TestSupport.java maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/verify.groovy Copied: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/invoker.properties (from r1789640, maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/invoker.properties) URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/invoker.properties?p2=maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/invoker.properties=maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/invoker.properties=1789640=1789658=1789658=diff == (empty) Copied: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/pom.xml (from r1789640, maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/pom.xml) URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/pom.xml?p2=maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/pom.xml=maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/pom.xml=1789640=1789658=1789658=diff == (empty) Copied: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/main/pmd/ruleset.xml (from r1789640, maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/src/main/pmd/ruleset.xml) URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/main/pmd/ruleset.xml?p2=maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/main/pmd/ruleset.xml=maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/src/main/pmd/ruleset.xml=1789640=1789658=1789658=diff == (empty) Copied: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/test/java/it/NoTestsHere.java (from r1789640, maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/src/test/java/it/NoTestsHere.java) URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/test/java/it/NoTestsHere.java?p2=maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-89-232-typeresolution/src/test/java/it/NoTestsHere.java=maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-89/src/test/java/it/NoTestsHere.java=1789640=1789658=1789658=diff == (empty
svn commit: r1789640 - /maven/plugins/trunk/maven-pmd-plugin/pom.xml
Author: adangel Date: Fri Mar 31 09:27:31 2017 New Revision: 1789640 URL: http://svn.apache.org/viewvc?rev=1789640=rev Log: [MPMD-231] Upgrade to PMD 5.5.5 Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1789640=1789639=1789640=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Fri Mar 31 09:27:31 2017 @@ -86,7 +86,7 @@ under the License. 1.7 ${javaVersion} ${javaVersion} -5.5.3 +5.5.5 3.4 2.8
svn commit: r1780978 - in /maven/plugins/trunk/maven-pmd-plugin: pom.xml src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java
Author: adangel Date: Mon Jan 30 20:06:19 2017 New Revision: 1780978 URL: http://svn.apache.org/viewvc?rev=1780978=rev Log: [MPMD-231] Upgrade to PMD 5.5.3 Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1780978=1780977=1780978=diff == --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Mon Jan 30 20:06:19 2017 @@ -86,7 +86,7 @@ under the License. 1.7 ${javaVersion} ${javaVersion} -5.5.1 +5.5.3 3.4 2.8 Modified: maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java?rev=1780978=1780977=1780978=diff == --- maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java Mon Jan 30 20:06:19 2017 @@ -30,11 +30,13 @@ import java.util.List; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; +import net.sourceforge.pmd.PMD; import net.sourceforge.pmd.cpd.CPD; import net.sourceforge.pmd.cpd.CPDConfiguration; import net.sourceforge.pmd.cpd.JavaLanguage; import net.sourceforge.pmd.cpd.Mark; import net.sourceforge.pmd.cpd.Match; +import net.sourceforge.pmd.cpd.SourceCode; import net.sourceforge.pmd.cpd.TokenEntry; import org.apache.commons.lang3.StringUtils; @@ -193,12 +195,21 @@ public class CpdReportTest CpdReport mojo = (CpdReport) lookupMojo( "cpd", testPom ); assertNotNull( mojo ); -TokenEntry tFirstEntry = new TokenEntry( "public java", "MyClass.java", 34 ); -TokenEntry tSecondEntry = new TokenEntry( "public java", "MyClass3.java", 55 ); +TokenEntry tFirstEntry = new TokenEntry( "public java", "MyClass.java", 2 ); +TokenEntry tSecondEntry = new TokenEntry( "public java", "MyClass3.java", 2 ); +String duplicatedCodeFragment = "// - duplicated code example -"; +SourceCode sourceCodeFirst = new SourceCode(new SourceCode.StringCodeLoader( +PMD.EOL + duplicatedCodeFragment + PMD.EOL, "MyClass.java")); +SourceCode sourceCodeSecond = new SourceCode(new SourceCode.StringCodeLoader( +PMD.EOL + duplicatedCodeFragment + PMD.EOL, "MyClass3.java")); + List tList = new ArrayList<>(); Mark tFirstMark = new Mark( tFirstEntry ); +tFirstMark.setSourceCode(sourceCodeFirst); +tFirstMark.setLineCount(1); Mark tSecondMark = new Mark( tSecondEntry ); -tFirstMark.setSoureCodeSlice( "// - ACCESSEURS avec �l�ments -" ); +tSecondMark.setSourceCode(sourceCodeSecond); +tSecondMark.setLineCount(1); Match tMatch = new Match( 2, tFirstMark, tSecondMark ); tList.add( tMatch ); @@ -217,6 +228,11 @@ public class CpdReportTest DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document pmdCpdDocument = builder.parse( tReport ); assertNotNull( pmdCpdDocument ); + +String str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/cpd.xml" ) ); +assertTrue( lowerCaseContains( str, "MyClass.java" ) ); +assertTrue( lowerCaseContains( str, "MyClass3.java" ) ); +assertTrue( lowerCaseContains( str, duplicatedCodeFragment ) ); } public void testSkipEmptyReportConfiguration()
svn commit: r1765121 - /maven/site/trunk/content/apt/plugins/index.apt
Author: adangel Date: Sun Oct 16 08:38:10 2016 New Revision: 1765121 URL: http://svn.apache.org/viewvc?rev=1765121=rev Log: Updated maven pmd plugin to version 3.7 Modified: maven/site/trunk/content/apt/plugins/index.apt Modified: maven/site/trunk/content/apt/plugins/index.apt URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/plugins/index.apt?rev=1765121=1765120=1765121=diff == --- maven/site/trunk/content/apt/plugins/index.apt (original) +++ maven/site/trunk/content/apt/plugins/index.apt Sun Oct 16 08:38:10 2016 @@ -123,7 +123,7 @@ Available Plugins *--++--++--+++ | {{{/plugins/maven-linkcheck-plugin/} <<>>}} | R | 1.2 | 2014-10-08 | Generate a Linkcheck report of your project's documentation. | {{{https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-linkcheck-plugin}SVN}} | {{{https://issues.apache.org/jira/browse/MLINKCHECK}JIRA}} *--++--++--+++ -| {{{/plugins/maven-pmd-plugin/} <<>>}} | B+R| 3.6 | 2015-12-17 | Generate a PMD report. | {{{https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-pmd-plugin}SVN}} | {{{https://issues.apache.org/jira/browse/MPMD}JIRA}} +| {{{/plugins/maven-pmd-plugin/} <<>>}} | B+R| 3.7 | 2016-10-08 | Generate a PMD report. | {{{https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-pmd-plugin}SVN}} | {{{https://issues.apache.org/jira/browse/MPMD}JIRA}} *--++--++--+++ | {{{/plugins/maven-project-info-reports-plugin/} <<>>}} | R | 2.9 | 2016-03-01 | Generate standard project reports. | {{{https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-project-info-reports-plugin}SVN}} | {{{https://issues.apache.org/jira/browse/MPIR}JIRA}} *--++--++--+++
svn commit: r999501 - /websites/production/maven/components/plugins/maven-pmd-plugin/
Author: adangel Date: Sun Oct 16 08:24:35 2016 New Revision: 999501 Log: Publish new site (m-pmd-p 3.7). Added: websites/production/maven/components/plugins/maven-pmd-plugin/ - copied from r999500, websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.7/
svn commit: r999499 - /websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.7/
Author: adangel Date: Sun Oct 16 08:23:03 2016 New Revision: 999499 Log: Archive versioned site (m-pmd-p 3.7) Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.7/ - copied from r999498, websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/
svn commit: r1764745 - /maven/project/KEYS
Author: adangel Date: Thu Oct 13 17:47:00 2016 New Revision: 1764745 URL: http://svn.apache.org/viewvc?rev=1764745=rev Log: Added keys for adan...@users.sourceforge.net and adan...@apache.org Modified: maven/project/KEYS Modified: maven/project/KEYS URL: http://svn.apache.org/viewvc/maven/project/KEYS?rev=1764745=1764744=1764745=diff == --- maven/project/KEYS (original) +++ maven/project/KEYS Thu Oct 13 17:47:00 2016 @@ -2864,3 +2864,130 @@ UULWiY7Admp+aWTE3hmQY1ztzzlbaT3Ezb77sZRT JQ6v7zYk/Wo9odWBxrvoJ3o= =Jdgg -END PGP PUBLIC KEY BLOCK- + +pub rsa2048 2011-09-28 [SC] [expires: 2017-06-08] + B9780824E07F1C42456595F176C898A0C6C9B113 +uid [ultimate] Andreas Dangel <adan...@users.sourceforge.net> +sub rsa2048 2011-09-28 [E] [expires: 2017-06-08] + +-BEGIN PGP PUBLIC KEY BLOCK- + +mQENBE6DYWEBCADFFgXUL2iUn4BB6g7q//VG+Qvy+Fi52HG3gO4xqJZh2srwaXoY +1r0i38QXRIC0ImNoR1JxMIoMPUXgFQLQHUm3e4+nRM+bFE05sWVOlG2RvwhUBSEs +r0ejDcYTN83thk85/GcmJN9AVdckETsmlFwsMS181MhJhUTD5i1duzuuNVgctzFL +jCvuwqy0b9y5kNQCjSjzF7gIKijaoXBR4YOmnT/sj0bnzxqOOekKdy4ymlSdx5Kd +zWn4+9E39Iee/a6bFy0/8FNwO6NXx7GKIhW9ggSnCSkx0gdRW3d71mYJwXzWyZm+ +Zy7aVGi0jjzLqW19ZWl1PCbVzE4YqvYxJPAJABEBAAG0LkFuZHJlYXMgRGFuZ2Vs +IDxhZGFuZ2VsQHVzZXJzLnNvdXJjZWZvcmdlLm5ldD6JAT4EEwECACgCGwMGCwkI +BwMCBhUIAgkKCwQWAgMBAh4BAheABQJXWHlSBQkKtktxAAoJEHbImKDGybETmdUI +ALCxh/JpgaFRzBJFmtTXtZR1LhebbVaFHZpxaXlP4fvbdvKIeo1BhCbybmvj55zU +RLPvyp4v0xX/odvWP/LKMaFEJZIhQ7jfHwSXOsPHnooYHBDavr58MJWKa8IesZp+ +4OHKnUrMQWERgxmtlpM9hJNVecP3+Bk7fAwbxMm6VV5IZpDQ6ntbyGECBh6GkxCd +o5WPXofEGZtggJSvAgOG/iELvNx/GDGcOawpzFL8CJO1+xBXxcIDLmWFx0Is1pmF +8xAAiRC880yS+RAG/UIKTUisMEcWsdHRM/Eb5QeB5jDp14Bs/fAj5woXdAkYt5sj +zFoUpg/80z5OigRcik0r56OJAT4EEwECACgCGwMGCwkIBwMCBhUIAgkKCwQWAgMB +Ah4BAheABQJQhX5RBQkD41BnAAoJEHbImKDGybET9cUH/iozb4d7J8LoY96LcGrY +hAh8xReUi/nk6pKt6qxmj1inPp8BkdU1rCI6itrImvQ5P8/BIBpr2B1M7ooDlJK4 +jKv8D8ZVbGrmI6CNjL1YvQ9xIkqkPmYykV5nyhCdAs2G2RCGGqPYi3P43yL4SBAI +n4ufzFwePM3Xqk3plQ5+e/d1CVZ9O/w0+QzOuNtWrLr1G3HnirOxYMjkEovTuKzT +YnK3oJGUzxH1UMR9dWfFby65+uKaU9/wpJPudWx0opDo+Q03XCideGNGJ8/VlCo1 +w7M78xsBirLLnX1NKxGyJJdSILuO5GkhZpDQvTdfc3glxwxewEnQ7HFO4nasa8yB +wb6JAT4EEwECACgCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJSH4P5BQkF +fVYVAAoJEHbImKDGybETGpAH/iKN80JVCo7i2VFxr5aQCRWstXL9joX0snDq7qT3 +8tLUxgC+9hB2YLIg37ay9X91Mhc4Qlib9BbcslJddWXPMpv/sxe1TODEmch/KTSF +12esu0Ozxn5jEFIehCLL5LFmOLr5SokMy6jBViYauPO8VitK2zFstzuiuGAVYYH1 +gg0+h1cOqUF0bqxkcB6SW6SVHBEIq3DL/w8zu+YExNO4lL8DAefGacU4aNay2LxA +FQRsgJTSL7pXqG8BCZoW7oMFVfEyYsq8REAbtHYI3nBdIjf0nPBwwyXzlFgpjLOi +zAk7O6DK/TMWyaFSokwCBkwgN7AmD5//EGqxNnPYrXShroiJAT4EEwECACgCGwMG +CwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJUAuk9BQkHYLtcAAoJEHbImKDGybET +2dsH+gO1/6GyNjZShqYhKYTisCvzXPpnkXQsBqr3JyOpltQBTsPT3NduswB3bnW+ +qwqih8uz24PvZuq31dASLY1xW8kNpf1519QArKtZkvVLG7yc+YRbgFW5Jla65Nuo +o33CCOFILcjvw24k1Wv1re++5PmJQxe8BoiEgFr6vRgEueXtW8qOfwRR5mzOiECK +dHjFb4VOF+aY1STEfki2b+mBLyQoDqOwuqJJPWUKLs6tKtmhVMhcSIIrueofjVjR +b6/Jce8ERebjSIliwhwarQijy2U5kecKG9UeomkXLOeL+onvodeC1y2giRnp6ekf +HRzHC/f5ul3IGRHUljCZ8+cktt2JAT4EEwECACgCGwMGCwkIBwMCBhUIAgkKCwQW +AgMBAh4BAheABQJVhYhDBQkI41piAAoJEHbImKDGybET7DMH/1do95VD+GEs64nt +xmDDkNv79A9DpuiPFoaMqasN7YNk3YCg6BYMZWPdwizY6VI1Mx+LeclmaSrtzCcW +DgUP8LhYSFbT/EeFqUpxFfwdo6Gs8ukp9PduIzNXvMhj1VFEoQhdNMuVpZazaK0+ +f58jZhmf/njJzfOT6gMYz8117jCCQIpEDmRwvHx17skl3QERbxDw2sNcUHx7wiDV +qR5XOF9F6Wm/Lbgz0p3bUxWxpY2vg2Tvvw4wxaWltC1b2fzIIugrgms1+0J/E7Ye +5riXVYxKHsj0Gbb4qpJile71bShfW8XsNcpgs1ObcOLCvNAO6RBJp0SjeqJwdKkD +UGrZssyJAT4EEwECACgFAk6DYWECGwMFCQHhM4AGCwkIBwMCBhUIAgkKCwQWAgMB +Ah4BAheAAAoJEHbImKDGybETIpsIAJl+6PmPFQ37gtJDNrOO44Bw9Wxud3gsmPju +EuXJASkBl8DJhHRsL2cADwAQydWVA6wBpytF8eTibVwBd6ECw5uPHh0+GY87t+oB ++WxCSRXnCbfawFSUJcnOr8N3pHhg5hV/vP0K8s5Y2IQzmB1oj0jxrY2sPQwgPiXd +kyXD4iKx0lqi3u9SvHKgZMO2RyAd34g9JaZqt6YeIuu3QOssgjWTjom8h5UUO8El +xQFpJalQG9oE0LSpM6K5MvPHryh+FMdJXwE8PKCDe9zpksmya4DWuftkl0QYgCt4 +/4bnb1QKWAMnyNeL1DFe3yDxvytky1pAx/He++0anPWnFlLcN1a5AQ0EToNhYQEI +ANGJDSXOmpZdVT3zjj3LRvjfdkfbLl8dJdItplto0TozZwSHSX3RUv/fof5FAfcG +rSb8R/OKkrgHql5Bt+xYiIe2opPs1vmGksbM1ONmg/9OVhy/TThixAaxE38dPKeT +QNY37Rv5+JDh2MfnpY20rxWWCMdiSLHahOw/vnwbSfkvOgOMfcg7vkSl2zVC7XyN +fHDkqd17sD5xlG3GYP9pf2QRsTD2btK7WCq9wRC17e/JOVHTVAZCCpSKCjlj755y +qeA5x0HfICthjU403DjyXjcta2cgDL0i2ow+vhEjojkO56aNpxSXmIpTxpx1Za2I +WDBLhP0TYpo94I6Bwubnk40AEQEAAYkBJQQYAQIADwIbDAUCV1h5UgUJCrZLcQAK +CRB2yJigxsmxE8v/CACCneUOqxUrw1zhWfacvCZLtjJlv/nQIB2Bzm/7QsQB3pKp +U20BbwZDZaWuPDNFhxDY5NY/MVFwv0bKk+hDmKC0Ykka+t6b8VzuveaFqENDVklu +8ULbXJnkS05Q/B8NpLworBwVDhD2jts0FC9djU9fT+Na71aSr/gQFGwz+KdU1H4+ +Cm6l6UpPRxBQWLJCquVWQDth/OzroYbnXc/de5d7EspEBQ4tRE8xm+LNYkUNaqfN ++fb4F/bT2ZQj3m9HBAj74ToMrvGgr5HtcVFq5BQYgD3e0Cz2zbFizoeD+JAdpOFZ +VxisanmDZPtEQ86lPt/vmMYwT2Bk8d1SWvhxG77j +=wIxr +-END PGP PUBLIC KEY BLOCK- + +pub rsa4096 2016-02-05 [SCA] [expires: 2017-02-04] + C870735180244047DA600FDEC171A58398EEC284 +uid [ultimate] Andreas Dangel <adan...@apache.
svn commit: r999063 [21/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html Sat Oct 8 16:53:12 2016 @@ -37,271 +37,270 @@ 29 import org.apache.maven.plugin.MojoFailureException; 30 import org.apache.maven.plugins.annotations.Parameter; 31 import org.apache.maven.project.MavenProject; -32 import org.codehaus.plexus.util.StringUtils; -33 import org.codehaus.plexus.util.xml.pull.XmlPullParserException; -34 -35 /** -36 * Base class for mojos that check if there were any PMD violations. -37 * -38 * @param D type of the check, e.g. {@link Violation} or {@link Duplication}. -39 * @author a href="mailto:br...@apache.org; target="alexandria_uri">mailto:br...@apache.org"Brett Porter/a -40 * @version $Id$ -41 */ -42 public abstract class AbstractPmdViolationCheckMojoD -43 extends AbstractMojo -44 { -45 /** -46 * The location of the XML report to check, as generated by the PMD report. -47 */ -48 @Parameter( property = "project.build.directory", required = true ) -49 private File targetDirectory; -50 -51 /** -52 * Whether to fail the build if the validation check fails. -53 */ -54 @Parameter( property = "pmd.failOnViolation", defaultValue = "true", required = true ) -55 protected boolean failOnViolation; -56 -57 /** -58 * The project language, for determining whether to run the report. -59 */ -60 @Parameter( property = "project.artifact.artifactHandler.language", required = true, readonly = true ) -61 private String language; -62 -63 /** -64 * Whether to build an aggregated report at the root, or build individual reports. -65 * -66 * @since 2.2 -67 */ -68 @Parameter( property = "aggregate", defaultValue = "false" ) -69 protected boolean aggregate; -70 -71 /** -72 * Print details of check failures to build output. -73 */ -74 @Parameter( property = "pmd.verbose", defaultValue = "false" ) -75 private boolean verbose; -76 -77 /** -78 * Print details of errors that cause build failure -79 * -80 * @since 3.0 -81 */ -82 @Parameter( property = "pmd.printFailingErrors", defaultValue = "false" ) -83 private boolean printFailingErrors; -84 -85 /** -86 * File that lists classes and rules to be excluded from failures For PMD, this is a properties file For CPD, this -87 * is a text file that contains comma-separated lists of classes that are allowed to duplicate -88 * -89 * @since 3.0 -90 */ -91 @Parameter( property = "pmd.excludeFromFailureFile", defaultValue = "" ) -92 private String excludeFromFailureFile; -93 -94 /** -95 * The project to analyze. -96 */ -97 @Parameter( defaultValue = "${project}", readonly = true, required = true ) -98 protected MavenProject project; -99 -100 protected void executeCheck( final String filename, final String tagName, final String key, -101 final int failurePriority ) -102 throws MojoFailureException, MojoExecutionException -103 { -104 if ( aggregate !project.isExecutionRoot() ) -105 { -106 return; -107 } -108 -109 if ( "pom".equals( project.getPackaging() ) !aggregate ) -110 { -111 return; -112 } -113 -114 if ( !StringUtils.isEmpty( excludeFromFailureFile ) ) -115 { -116 loadExcludeFromFailuresData( excludeFromFailureFile ); -117 } -118 final File outputFile = new File( targetDirectory, filename ); -119 -120 if ( outputFile.exists() ) -121 { -122 try -123 { -124 final ViolationDetailsD violations = getViolations( outputFile, failurePriority ); -125 -126 final ListD failures = violations.getFailureDetails(); -127 final ListD warnings = violations.getWarningDetails(); -128 -129 if ( verbose ) -130 { -131 printErrors( failures, warnings ); -132 } -133 -134 final int failureCount = failures.size(); -135 final int warningCount = warnings.size(); -136 -137 final String message = getMessage( failureCount, warningCount, key, outputFile ); -138 -139 getLog().debug( "PMD failureCount: " + failureCount + ",
svn commit: r999063 [5/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-summary.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-summary.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-summary.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -org.apache.maven.plugin.pmd (Apache Maven PMD Plugin 3.6 API) +org.apache.maven.plugin.pmd (Apache Maven PMD Plugin 3.7 API) @@ -67,6 +67,21 @@ + +Interface Summary + +Interface +Description + + + +ExcludeFromFileD + + + + + + Class Summary @@ -105,33 +120,48 @@ +ExcludeDuplicationsFromFile + +This class contains utility methods to load property files which define which files + should be excluded from the CPD duplication results. + + + +ExcludeViolationsFromFile + +This class contains utility for loading property files, which define which PMD violations + from which classes should be ignored and not cause a failure. + + + HelpMojo Display help information on maven-pmd-plugin. +PmdCollectingRenderer + +A PMD renderer, that collects all violations and processing errors + from a pmd execution. + + + PmdFileInfo - + PmdReport Creates a PMD report. - + PmdReportGenerator Render the PMD violations into Doxia events. - -PmdReportListener - -Handle events from PMD and collect violations. - - PmdViolationCheckMojo @@ -194,6 +224,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-tree.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-tree.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-tree.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -org.apache.maven.plugin.pmd Class Hierarchy (Apache Maven PMD Plugin 3.6 API) +org.apache.maven.plugin.pmd Class Hierarchy (Apache Maven PMD Plugin 3.7 API) @@ -94,14 +94,28 @@ org.apache.maven.plugin.pmd.HelpMojo +net.sourceforge.pmd.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/AbstractPropertySource.html?is-external=true; title="class or interface in net.sourceforge.pmd">AbstractPropertySource (implements net.sourceforge.pmd.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/PropertySource.html?is-external=true; title="class or interface in net.sourceforge.pmd">PropertySource) + +net.sourceforge.pmd.renderers.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/AbstractRenderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">AbstractRenderer (implements net.sourceforge.pmd.renderers.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/Renderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">Renderer) + +org.apache.maven.plugin.pmd.PmdCollectingRenderer + + + + org.apache.maven.plugin.pmd.CpdReportGenerator +org.apache.maven.plugin.pmd.ExcludeDuplicationsFromFile (implements org.apache.maven.plugin.pmd.ExcludeFromFileD) +org.apache.maven.plugin.pmd.ExcludeViolationsFromFile (implements org.apache.maven.plugin.pmd.ExcludeFromFileD) org.apache.maven.plugin.pmd.PmdFileInfo org.apache.maven.plugin.pmd.PmdReportGenerator -org.apache.maven.plugin.pmd.PmdReportListener (implements net.sourceforge.pmd.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/ReportListener.html?is-external=true; title="class or interface in net.sourceforge.pmd">ReportListener) org.apache.maven.plugin.pmd.ViolationDetailsD +Interface Hierarchy +
svn commit: r999063 [7/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependencies.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependencies.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependencies.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Project Dependencies - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + 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); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / Project Dependencies - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -199,9 +209,9 @@ - + -Project Summary +Summary @@ -213,23 +223,23 @@ - + -Project Team +Team - + -Source Repository +Source Code Management - + -Issue Tracking +Issue Management @@ -260,9 +270,9 @@ - + -Continuous Integration +CI Management @@ -274,9 +284,9 @@ - + -Project Plugins +Plugins @@ -298,13 +308,6 @@ - - -Ant Tasks - - - - Archetype @@ -404,40 +407,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> + https://www.apache.org/foundation/how-it-works.html;
svn commit: r999063 [20/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdReport.html Sat Oct 8 16:53:12 2016 @@ -134,383 +134,432 @@ 126 private ListString includes; 127 128 /** -129 * The directories containing the sources to be compiled. -130 */ -131 @Parameter( defaultValue = "${project.compileSourceRoots}" ) -132 private ListString compileSourceRoots; -133 -134 /** -135 * The directories containing the test-sources to be compiled. -136 */ -137 @Parameter( defaultValue = "${project.testCompileSourceRoots}" ) -138 private ListString testSourceRoots; -139 -140 /** -141 * The project source directories that should be excluded. -142 * -143 * @since 2.2 -144 */ -145 @Parameter -146 private File[] excludeRoots; -147 -148 /** -149 * Run PMD on the tests. -150 * -151 * @since 2.2 -152 */ -153 @Parameter( defaultValue = "false" ) -154 protected boolean includeTests; -155 -156 /** -157 * Whether to build an aggregated report at the root, or build individual reports. -158 * -159 * @since 2.2 -160 */ -161 @Parameter( property = "aggregate", defaultValue = "false" ) -162 protected boolean aggregate; -163 -164 /** -165 * The file encoding to use when reading the Java sources. -166 * -167 * @since 2.3 -168 */ -169 @Parameter( property = "encoding", defaultValue = "${project.build.sourceEncoding}" ) -170 private String sourceEncoding; -171 -172 /** -173 * The file encoding when writing non-HTML reports. -174 * -175 * @since 2.5 -176 */ -177 @Parameter( property = "outputEncoding", defaultValue = "${project.reporting.outputEncoding}" ) -178 private String outputEncoding; -179 -180 /** -181 * The projects in the reactor for aggregation report. -182 */ -183 @Parameter( property = "reactorProjects", readonly = true ) -184 protected ListMavenProject reactorProjects; -185 -186 /** -187 * Whether to include the xml files generated by PMD/CPD in the site. -188 * -189 * @since 3.0 -190 */ -191 @Parameter( defaultValue = "false" ) -192 protected boolean includeXmlInSite; -193 -194 /** -195 * Skip the PMD/CPD report generation if there are no violations or duplications found. Defaults to -196 * codetrue/code. -197 * -198 * @since 3.1 -199 */ -200 @Parameter( defaultValue = "true" ) -201 protected boolean skipEmptyReport; -202 -203 /** The files that are being analyzed. */ -204 protected MapFile, PmdFileInfo filesToProcess; -205 -206 /** -207 * {@inheritDoc} -208 */ -209 @Override -210 protected MavenProject getProject() -211 { -212 return project; -213 } -214 -215 /** -216 * {@inheritDoc} -217 */ -218 @Override -219 protected Renderer getSiteRenderer() -220 { -221 return siteRenderer; -222 } -223 -224 protected String constructXRefLocation( boolean test ) -225 { -226 String location = null; -227 if ( linkXRef ) -228 { -229 File xrefLoc = test ? xrefTestLocation : xrefLocation; +129 * Specifies the location of the source directories to be used for PMD. +130 * Defaults to codeproject.compileSourceRoots/code. +131 * @since 3.7 +132 */ +133 @Parameter( defaultValue = "${project.compileSourceRoots}" ) +134 private ListString compileSourceRoots; +135 +136 /** +137 * The directories containing the test-sources to be used for PMD. +138 * Defaults to codeproject.testCompileSourceRoots/code +139 * @since 3.7 +140 */ +141 @Parameter( defaultValue = "${project.testCompileSourceRoots}" ) +142 private ListString testSourceRoots; +143 +144 /** +145 * The project source directories that should be excluded. +146 * +147 * @since 2.2 +148 */ +149 @Parameter +150 private File[] excludeRoots; +151 +152 /** +153 * Run PMD on the tests. +154 * +155 * @since 2.2 +156 */ +157 @Parameter( defaultValue = "false" ) +158 protected boolean includeTests; +159 +160 /** +161 * Whether to build an aggregated report at the root, or build individual reports. +162 * +163 * @since 2.2 +164 */ +165 @Parameter( property = "aggregate", defaultValue = "false" ) +166 protected boolean aggregate; +167 +168 /** +169
svn commit: r999063 [14/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
d=mms=60; alt="" /> dkulp Daniel Kulp @@ -558,7 +552,7 @@ ASF PMC Member -5 - + http://www.gravatar.com/avatar/efe7252f3b18253bf4318062ece95a3b?d=mms=60; alt="" /> evenisse Emmanuel Venisse @@ -566,15 +560,15 @@ ASF PMC Member +1 - -http://www.gravatar.com/avatar/5eb06f355d82f3267f3db16c6359601e?d=mms=60; alt="" /> -jdcasey -John Casey -mailto:jdca...@apache.org;>jdca...@apache.org -ASF -PMC Member --6 +http://www.gravatar.com/avatar/a52c0cfedf677c3dbf7ff1eaa4f3d8b4?d=mms=60; alt="" /> +ifedorenko +Igor Fedorenko +mailto:i...@ifedorenko.com;>i...@ifedorenko.com +Sonatype +PMC Member +-5 + http://www.gravatar.com/avatar/81f0dd51add422563de0b7ce828b0728?d=mms=60; alt="" /> jvanzyl Jason van Zyl @@ -582,7 +576,7 @@ - PMC Member -5 - + http://www.gravatar.com/avatar/a7a7de61eca1a5af56823753b1b3b838?d=mms=60; alt="" /> khmarbaise Karl Heinz Marbaise @@ -590,7 +584,7 @@ - PMC Member +1 - + http://www.gravatar.com/avatar/3c2ad6b6efb1c84d9ff60259f8c8ef95?d=mms=60; alt="" /> krosenvold Kristian Rosenvold @@ -598,14 +592,6 @@ - PMC Member +1 - -http://www.gravatar.com/avatar/7575e2568caf22d6613fc0c4c6653363?d=mms=60; alt="" /> -markh -Mark Hobson -mailto:ma...@apache.org;>ma...@apache.org -- -PMC Member -0 http://www.gravatar.com/avatar/?d=blankf=ys=60; alt="" /> mkleint @@ -615,14 +601,6 @@ PMC Member - -http://www.gravatar.com/avatar/?d=blankf=ys=60; alt="" /> -oching -Maria Odea B. Ching -- -- -PMC Member -- - http://www.gravatar.com/avatar/bab29f762bea8e578505424443d8cd41?d=mms=60; alt="" /> olamy Olivier Lamy @@ -630,6 +608,14 @@ - PMC Member Australia/Melbourne + +http://www.gravatar.com/avatar/f6caee604fc0ee8ffb030dcac691c9e3?d=mms=60; alt="" /> +michaelo +Michael Osipov +mailto:micha...@apache.org;>micha...@apache.org +- +PMC Member +Europe/Berlin http://www.gravatar.com/avatar/d035aeb839495240c58bbb03992ceda8?d=mms=60; alt="" /> rfscholte @@ -663,6 +649,14 @@ PMC Member 0 +http://www.gravatar.com/avatar/feb64254400eb261c6ba03afadd092a3?d=mms=60; alt="" /> +tibordigana +Tibor Digaa +mailto:tibordig...@apache.org;>tibordig...@apache.org +- +PMC Member +Europe/Bratislava + http://www.gravatar.com/avatar/6b3c87a9fd95fb1d0af16816a075224e?d=mms=60; alt="" /> vsiveton Vincent Siveton @@ -670,7 +664,7 @@ ASF PMC Member -5 - + http://www.gravatar.com/avatar/c662f616ca2c1b04d5ba7b96ca3b5171?d=mms=60; alt="" /> wfay Wayne Fay @@ -678,15 +672,15 @@ ASF PMC Member -6 - -http://www.gravatar.com/avatar/cbe8a9133ef3337eb267252a06f649bf?d=mms=60; alt="" /> -agudian -Andreas Gudian -mailto:agud...@apache.org;>agud...@apache.org + +http://www.gravatar.com/avatar/ea3935a08a086d01b5ee12fb2d6e923a?d=mms=60; alt="" /> +adangel +Andreas Dangel +mailto:adan...@apache.org;>adan...@apache.org - Committer Europe/Berlin - + http://www.gravatar.com/avatar/b44837697ce1ec56d63e7e851ee3967e?d=mms=60; alt="" /> andham Anders Hammar @@ -694,7 +688,7 @@ - Committer +1 - + http://www.gravatar.com/avatar/bb362cf0ab5e1d0068665a9d9f0167e7?d=mms=60; alt="" /> bdemers Brian Demers @@ -702,7 +696,7 @@ Sonatype Committer -5 - + http://www.gravatar.com/avatar/?d=blankf=ys=60; alt="" /> bellingard Fabrice Bellingard @@ -710,7 +704,7 @@ - Committer - - + http://www.gravatar.com/avatar/9a790b32ad665e9aa78988ba378250c1?d=mms=60; alt="" /> bentmann Benjamin Bentmann @@ -718,7 +712,7 @@ Sonatype Committer +1 - + http://www.gravatar.com/avatar/456da78808527c596ccd30fba769dd6d?d=mms=60; alt="" /> chrisgwarp Chris Graham @@ -726,7 +720,7 @@ - Committer Australia/Melbourne - + http://www.gravatar.com/avatar/be9859a805a76f3482204de9e95a7b6f?d=mms=60; alt="" /> dantran Dan Tran @@ -734,7 +728,7 @@ - Committer -8 - + http://www.gravatar.com/avatar/ea665d843e7e25fc1799a344fba022e0?d=mms=60; alt="" /> dbradicich Damian Bradicich @@ -742,6 +736,14 @@ Sonatype Committer -5 + +http://www.gravatar.com/avatar/1db61ec29963d4a77ef2275140144fd4?d=mms=60; alt="" /> +brett +Brett Porter +mailto:br...@apache.org;>br...@apache.org +ASF +Committer ++10 http://www.gravatar.com/avatar/be211eb53b665c51eb3f2e421bdc77cb?d=mms=60; alt="" /> dfabulich @@ -775,14 +777,6 @@ Committer 0 -http://www.gravatar.com/avatar/a52c0cfedf677c3dbf7ff1eaa4f3d8b4?d=mms=60; alt="" /> -ifedorenko -Igor Fedorenko -mailto:i...@ifedorenko.com;>i...@ifedorenko.com -Sonatype -Committer --5 - http://www.gravatar.com/avatar/f831da7fdd81e6abb2ef577b410b7787?d=mms=60; alt="" /> im
svn commit: r999063 [9/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-info.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-info.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-info.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Dependency Information - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + 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); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / Dependency Information - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -199,9 +209,9 @@ - + -Project Summary +Summary @@ -211,23 +221,23 @@ - + -Project Team +Team - + -Source Repository +Source Code Management - + -Issue Tracking +Issue Management @@ -260,9 +270,9 @@ - + -Continuous Integration +CI Management @@ -274,9 +284,9 @@ - + -Project Plugins +Plugins @@ -298,13 +308,6 @@ - - -Ant Tasks - - - - Archetype @@ -404,40 +407,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> +
svn commit: r999063 [22/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdReport.html Sat Oct 8 16:53:12 2016 @@ -34,387 +34,418 @@ 26 import java.io.OutputStreamWriter; 27 import java.io.UnsupportedEncodingException; 28 import java.io.Writer; -29 import java.util.Locale; -30 import java.util.Properties; -31 import java.util.ResourceBundle; -32 -33 import net.sourceforge.pmd.cpd.CPD; -34 import net.sourceforge.pmd.cpd.CPDConfiguration; -35 import net.sourceforge.pmd.cpd.CSVRenderer; -36 import net.sourceforge.pmd.cpd.EcmascriptLanguage; -37 import net.sourceforge.pmd.cpd.JSPLanguage; -38 import net.sourceforge.pmd.cpd.JavaLanguage; -39 import net.sourceforge.pmd.cpd.JavaTokenizer; -40 import net.sourceforge.pmd.cpd.Language; -41 import net.sourceforge.pmd.cpd.LanguageFactory; -42 import net.sourceforge.pmd.cpd.Renderer; -43 import net.sourceforge.pmd.cpd.XMLRenderer; -44 -45 import org.apache.maven.plugins.annotations.Mojo; -46 import org.apache.maven.plugins.annotations.Parameter; -47 import org.apache.maven.reporting.MavenReportException; -48 import org.codehaus.plexus.util.FileUtils; -49 import org.codehaus.plexus.util.IOUtil; -50 import org.codehaus.plexus.util.StringUtils; -51 import org.codehaus.plexus.util.WriterFactory; -52 -53 /** -54 * Creates a report for PMD's CPD tool. See a -55 * href="http://pmd.sourceforge.net/cpd.html; target="alexandria_uri">http://pmd.sourceforge.net/cpd.html"http://pmd.sourceforge.net/cpd.html; target="alexandria_uri">http://pmd.sourceforge.net/cpd.html/a for more detail. -56 * -57 * @author Mike Perham -58 * @version $Id$ -59 * @since 2.0 -60 */ -61 @Mojo( name = "cpd", threadSafe = true ) -62 public class CpdReport -63 extends AbstractPmdReport -64 { -65 /** -66 * The programming language to be analyzed by CPD. Valid values are currently codejava/code, -67 * codejavascript/code or codejsp/code. -68 * -69 * @since 3.5 -70 */ -71 @Parameter( defaultValue = "java" ) -72 private String language; -73 -74 /** -75 * The minimum number of tokens that need to be duplicated before it causes a violation. -76 */ -77 @Parameter( property = "minimumTokens", defaultValue = "100" ) -78 private int minimumTokens; -79 -80 /** -81 * Skip the CPD report generation. Most useful on the command line via "-Dcpd.skip=true". -82 * -83 * @since 2.1 -84 */ -85 @Parameter( property = "cpd.skip", defaultValue = "false" ) -86 private boolean skip; -87 -88 /** -89 * If true, CPD ignores literal value differences when evaluating a duplicate block. This means that -90 * codefoo=42;/code and codefoo=43;/code will be seen as equivalent. You may want to run PMD with this -91 * option off to start with and then switch it on to see what it turns up. -92 * -93 * @since 2.5 -94 */ -95 @Parameter( property = "cpd.ignoreLiterals", defaultValue = "false" ) -96 private boolean ignoreLiterals; -97 -98 /** -99 * Similar to codeignoreLiterals/code but for identifiers; i.e., variable names, methods names, and so forth. -100 * -101 * @since 2.5 -102 */ -103 @Parameter( property = "cpd.ignoreIdentifiers", defaultValue = "false" ) -104 private boolean ignoreIdentifiers; -105 -106 /** The CPD instance used to analyze the files. Will itself collect the duplicated code matches. */ -107 private CPD cpd; -108 -109 /** -110 * {@inheritDoc} -111 */ -112 public String getName( Locale locale ) -113 { -114 return getBundle( locale ).getString( "report.cpd.name" ); -115 } -116 -117 /** -118 * {@inheritDoc} -119 */ -120 public String getDescription( Locale locale ) -121 { -122 return getBundle( locale ).getString( "report.cpd.description" ); -123 } -124 -125 /** -126 * {@inheritDoc} -127 */ -128 @Override -129 public void executeReport( Locale locale ) -130 throws MavenReportException -131 { -132 try -133 { -134 execute( locale ); -135 } -136 finally -137 { -138 if ( getSink() != null ) -139 { -140 getSink().close(); -141 } +29 import java.util.ArrayList; +30 import java.util.Iterator; +31 import java.util.List; +32 import java.util.Locale; +33 import java.util.Properties; +34 import java.util.ResourceBundle; +35 +36 import
svn commit: r999063 [17/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html Sat Oct 8 16:53:12 2016 @@ -34,18 +34,18 @@ 26 import java.util.ArrayList; 27 import java.util.Iterator; 28 import java.util.List; -29 import java.util.Locale; -30 -31 import javax.xml.parsers.DocumentBuilder; -32 import javax.xml.parsers.DocumentBuilderFactory; -33 -34 import net.sourceforge.pmd.cpd.CPD; -35 import net.sourceforge.pmd.cpd.CPDConfiguration; -36 import net.sourceforge.pmd.cpd.JavaLanguage; -37 import net.sourceforge.pmd.cpd.Mark; -38 import net.sourceforge.pmd.cpd.Match; -39 import net.sourceforge.pmd.cpd.TokenEntry; -40 +29 +30 import javax.xml.parsers.DocumentBuilder; +31 import javax.xml.parsers.DocumentBuilderFactory; +32 +33 import net.sourceforge.pmd.cpd.CPD; +34 import net.sourceforge.pmd.cpd.CPDConfiguration; +35 import net.sourceforge.pmd.cpd.JavaLanguage; +36 import net.sourceforge.pmd.cpd.Mark; +37 import net.sourceforge.pmd.cpd.Match; +38 import net.sourceforge.pmd.cpd.TokenEntry; +39 +40 import org.apache.commons.lang3.StringUtils; 41 import org.codehaus.plexus.util.FileUtils; 42 import org.w3c.dom.Document; 43 @@ -91,253 +91,267 @@ 83 84 // check the contents of cpd.html 85 String str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -86 assertTrue( str.toLowerCase().contains( "AppSample.java".toLowerCase() ) ); +86 assertTrue( lowerCaseContains( str, "AppSample.java" ) ); 87 88 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -89 assertTrue( str.toLowerCase().contains( "App.java".toLowerCase() ) ); +89 assertTrue( lowerCaseContains( str, "App.java" ) ); 90 91 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -92 assertTrue( str.toLowerCase().contains( "public String dup( String str )".toLowerCase() ) ); +92 assertTrue( lowerCaseContains( str, "public String dup( String str )" ) ); 93 94 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -95 assertTrue( str.toLowerCase().contains( "tmp = tmp + str.substring( i, i + 1);".toLowerCase() ) ); -96 -97 } -98 -99 /** -100 * Test CPDReport using custom configuration -101 * -102 * @throws Exception -103 */ -104 public void testCustomConfiguration() -105 throws Exception -106 { -107 File testPom = -108 new File( getBasedir(), -109 "src/test/resources/unit/custom-configuration/cpd-custom-configuration-plugin-config.xml" ); -110 CpdReport mojo = (CpdReport) lookupMojo( "cpd", testPom ); -111 mojo.execute(); -112 -113 // check if the CPD files were generated -114 File generatedFile = new File( getBasedir(), "target/test/unit/custom-configuration/target/cpd.csv" ); -115 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -116 -117 generatedFile = new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ); -118 renderer( mojo, generatedFile ); -119 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -120 -121 // Contents that should NOT be in the report -122 String str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -123 assertTrue( !str.toLowerCase().contains( "/Sample.java".toLowerCase() ) ); -124 -125 str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -126 assertTrue( !str.toLowerCase().contains( "public void duplicateMethod( int i )".toLowerCase() ) ); -127 -128 // Contents that should be in the report -129 str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -130 assertTrue( str.toLowerCase().contains( "AnotherSample.java".toLowerCase() ) ); -131 -132 str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -133 assertTrue( str.toLowerCase().contains( "public static void main( String[] args )".toLowerCase() ) ); -134 -135 str = readFile( new File( getBasedir(),
svn commit: r999063 [4/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/HelpMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/HelpMojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/HelpMojo.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -Uses of Class org.apache.maven.plugin.pmd.HelpMojo (Apache Maven PMD Plugin 3.6 API) +Uses of Class org.apache.maven.plugin.pmd.HelpMojo (Apache Maven PMD Plugin 3.7 API) @@ -110,6 +110,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdCollectingRenderer.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdCollectingRenderer.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdCollectingRenderer.html Sat Oct 8 16:53:12 2016 @@ -0,0 +1,115 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + +Uses of Class org.apache.maven.plugin.pmd.PmdCollectingRenderer (Apache Maven PMD Plugin 3.7 API) + + + + + + +JavaScript is disabled on your browser. + + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev +Next + + +Frames +No Frames + + +All Classes + + + + + + + + + + +Uses of Classorg.apache.maven.plugin.pmd.PmdCollectingRenderer + +No usage of org.apache.maven.plugin.pmd.PmdCollectingRenderer + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev +Next + + +Frames +No Frames + + +All Classes + + + + + + + + + +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. + + \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdFileInfo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdFileInfo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdFileInfo.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -Uses of Class org.apache.maven.plugin.pmd.PmdFileInfo (Apache Maven PMD Plugin 3.6 API) +Uses of Class org.apache.maven.plugin.pmd.PmdFileInfo (Apache Maven PMD Plugin 3.7 API) @@ -194,6 +194,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdReport.html
svn commit: r999063 [8/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Dependency Convergence - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + 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); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / Dependency Convergence - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -199,9 +209,9 @@ - + -Project Summary +Summary @@ -213,23 +223,23 @@ - + -Project Team +Team - + -Source Repository +Source Code Management - + -Issue Tracking +Issue Management @@ -260,9 +270,9 @@ - + -Continuous Integration +CI Management @@ -274,9 +284,9 @@ - + -Project Plugins +Plugins @@ -298,13 +308,6 @@ - - -Ant Tasks - - - - Archetype @@ -404,40 +407,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> +
svn commit: r999063 [12/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/invoker-report.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/invoker-report.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/invoker-report.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Invoker Report - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + 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); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / Invoker Report - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -291,13 +301,6 @@ - - -Ant Tasks - - - - Archetype @@ -397,40 +400,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> + https://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> How Apache Works - http://www.apache.org/foundation/; class="externalLink" title="Foundation"> + https://www.apache.org/foundation/; class="externalLink" title="Foundation"> Foundation - http://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> + https://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> Sponsoring Apache - http://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> + https://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> Thanks - - + https://www.google.com/search; method="get" >
svn commit: r999063 [15/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-frame.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-frame.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-frame.html Sat Oct 8 16:53:12 2016 @@ -1,9 +1,9 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -All Classes (Apache Maven PMD Plugin 3.6 Test API) +All Classes (Apache Maven PMD Plugin 3.7 Test API) Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-noframe.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-noframe.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-noframe.html Sat Oct 8 16:53:12 2016 @@ -1,9 +1,9 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -All Classes (Apache Maven PMD Plugin 3.6 Test API) +All Classes (Apache Maven PMD Plugin 3.7 Test API) Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/constant-values.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/constant-values.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/constant-values.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -Constant Field Values (Apache Maven PMD Plugin 3.6 Test API) +Constant Field Values (Apache Maven PMD Plugin 3.7 Test API) @@ -110,6 +110,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/deprecated-list.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/deprecated-list.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/deprecated-list.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -Deprecated List (Apache Maven PMD Plugin 3.6 Test API) +Deprecated List (Apache Maven PMD Plugin 3.7 Test API) @@ -110,6 +110,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/help-doc.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/help-doc.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/help-doc.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -API Help (Apache Maven PMD Plugin 3.6 Test API) +API Help (Apache Maven PMD Plugin 3.7 Test API) @@ -215,6 +215,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/index-all.html
svn commit: r999063 [11/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/violation-exclusions.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/violation-exclusions.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/violation-exclusions.html Sat Oct 8 16:53:12 2016 @@ -1,32 +1,38 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Violation Exclusions - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + 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); + })(); + + + @@ -35,8 +41,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -48,10 +54,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -66,17 +71,16 @@ / - + Apache Maven PMD Plugin / Violation Exclusions - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -86,8 +90,7 @@ - - + Overview @@ -136,6 +139,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -199,13 +209,6 @@ - - -Ant Tasks - - - - Archetype @@ -305,40 +308,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> + https://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> How Apache Works - http://www.apache.org/foundation/; class="externalLink" title="Foundation"> + https://www.apache.org/foundation/; class="externalLink" title="Foundation"> Foundation - http://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> + https://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> Sponsoring Apache - http://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> + https://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> Thanks - - + https://www.google.com/search; method="get"
svn commit: r999063 [2/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -AbstractPmdViolationCheckMojo (Apache Maven PMD Plugin 3.6 API) +AbstractPmdViolationCheckMojo (Apache Maven PMD Plugin 3.7 API) @@ -171,10 +171,14 @@ extends http://maven.apache.org Constructors -Constructor and Description +Modifier +Constructor and Description -AbstractPmdViolationCheckMojo() +protected +AbstractPmdViolationCheckMojo(ExcludeFromFileDexcludeFromFile) +Initialize this abstact check mojo by giving the correct ExcludeFromFile helper. + @@ -209,17 +213,9 @@ extends http://maven.apache.org getPriority(DerrorDetail) -protected abstract boolean -isExcludedFromFailure(DerrorDetail) - - boolean isFailOnViolation() - -protected abstract void -loadExcludeFromFailuresData(http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringexcludeFromFailureFile) - protected abstract ViolationDetailsD newViolationDetailsInstance() @@ -322,13 +318,15 @@ protectedorg.apache.maven.project. Constructor Detail - + AbstractPmdViolationCheckMojo -publicAbstractPmdViolationCheckMojo() +protectedAbstractPmdViolationCheckMojo(ExcludeFromFileDexcludeFromFile) +Initialize this abstact check mojo by giving the correct ExcludeFromFile helper. +Parameters:excludeFromFile - the needed helper, for the specific violation type @@ -356,18 +354,6 @@ protectedorg.apache.maven.project. http://maven.apache.org/maven-plugin-api/apidocs/org/apache/maven/plugin/MojoExecutionException.html?is-external=true; title="class or interface in org.apache.maven.plugin">MojoExecutionException - - - - - -loadExcludeFromFailuresData -protected abstractvoidloadExcludeFromFailuresData(http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringexcludeFromFailureFile) - throws http://maven.apache.org/maven-plugin-api/apidocs/org/apache/maven/plugin/MojoExecutionException.html?is-external=true; title="class or interface in org.apache.maven.plugin">MojoExecutionException -Throws: -http://maven.apache.org/maven-plugin-api/apidocs/org/apache/maven/plugin/MojoExecutionException.html?is-external=true; title="class or interface in org.apache.maven.plugin">MojoExecutionException - - @@ -379,17 +365,6 @@ protectedorg.apache.maven.project. protected abstractintgetPriority(DerrorDetail) - - - - - - - -isExcludedFromFailure -protected abstractbooleanisExcludedFromFailure(DerrorDetail) - - @@ -432,12 +407,12 @@ protectedorg.apache.maven.project. getErrorDetails protected abstracthttp://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true; title="class or interface in java.util">ListDgetErrorDetails(http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true; title="class or interface in java.io">FileanalisysFile) -throws http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/xml/pull/XmlPullParserException.html?is-external=true; title="class or interface in org.codehaus.plexus.util.xml.pull">XmlPullParserException, +throws http://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/pull/XmlPullParserException.html?is-external=true; title="class or interface in org.codehaus.plexus.util.xml.pull">XmlPullParserException, http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true; title="class or interface in java.io">IOException Gets the attributes and text for the violation tag and puts them in a HashMap Parameters:analisysFile - Throws: -http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/xml/pull/XmlPullParserException.html?is-external=true; title="class or interface in org.codehaus.plexus.util.xml.pull">XmlPullParserException
svn commit: r999063 [16/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/overview-tree.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/overview-tree.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/overview-tree.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -Class Hierarchy (Apache Maven PMD Plugin 3.6 Test API) +Class Hierarchy (Apache Maven PMD Plugin 3.7 Test API) @@ -173,6 +173,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/package-list == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/package-list (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/package-list Sat Oct 8 16:53:12 2016 @@ -1,2 +1,2 @@ -org.apache.maven.plugin.pmd -org.apache.maven.plugin.pmd.stubs +org.apache.maven.plugin.pmd +org.apache.maven.plugin.pmd.stubs Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/usage.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/usage.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/usage.html Sat Oct 8 16:53:12 2016 @@ -1,7 +1,7 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -9,25 +9,31 @@ - + Apache Maven PMD Plugin Usage - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + 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); + })(); + + + @@ -36,8 +42,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -49,10 +55,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -66,18 +71,17 @@ Plugins / - - + + Apache Maven PMD Plugin / Usage - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -87,8 +91,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + +
svn commit: r999063 [6/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/cpd-check-mojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/cpd-check-mojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/cpd-check-mojo.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin pmd:cpd-check - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + 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); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / pmd:cpd-check - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -200,13 +210,6 @@ - - -Ant Tasks - - - - Archetype @@ -306,40 +309,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> + https://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> How Apache Works - http://www.apache.org/foundation/; class="externalLink" title="Foundation"> + https://www.apache.org/foundation/; class="externalLink" title="Foundation"> Foundation - http://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> + https://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> Sponsoring Apache - http://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> + https://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> Thanks - - + https://www.google.com/search; method="get" >
svn commit: r999063 [13/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/plugins.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/plugins.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/plugins.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + -Apache Maven PMD Plugin Project Build Plugins - +Apache Maven PMD Plugin Project Plugins + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + 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); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / -Project Build Plugins +Project Plugins - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -199,9 +209,9 @@ - + -Project Summary +Summary @@ -213,23 +223,23 @@ - + -Project Team +Team - + -Source Repository +Source Code Management - + -Issue Tracking +Issue Management @@ -262,9 +272,9 @@ - + -Continuous Integration +CI Management @@ -276,7 +286,7 @@ -Project Plugins +Plugins @@ -298,13 +308,6 @@ - - -Ant Tasks - - - - Archetype @@ -404,40 +407,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> + https://www.apache.org/foundation/how-it-works.html;
svn commit: r999063 [10/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
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 @@ - - -http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - - - - - - - -Apache Maven PMD Plugin Analyzing JSP Code - - - - - - - - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - - - - - - - - - -http://www.apache.org/; id="bannerLeft"> - - - - - - - - - - - - - - - -http://www.apache.org/; class="externalLink" title="Apache"> -Apache -/ - - - -Maven -/ - - - -Plugins -/ - - - -Apache Maven PMD Plugin -/ - -Analyzing JSP Code - - - - | Last Published: 2015-12-13 - -Version: 3.6 - - - - - - - - - - - - -Overview - - - - - -Introduction - - - - - - -Goals - - - - - - -Usage - - - - - - -FAQ - - - - - http://www.apache.org/licenses/; class="externalLink" title="License"> - -License - - - - - - -Download - - Examples - - - - - -Remove Report - - - - - - -Target JDK - - - - - - -Using Rule Sets - - - - - - -Violation Checking - - - - - - -Analyzing JavaScript - - - - -Analyzing Java Server Pages - - - - - - -Violations Exclusions - - Project Documentation - - - - - -Project Information - - - - - - -Project Reports - - Maven Projects - - - - - -Ant Tasks - - - - - - -Archetype - - - - - - -Doxia - - - - -
svn commit: r999063 [25/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html Sat Oct 8 16:53:12 2016 @@ -35,624 +35,663 @@ 27 import java.io.PrintStream; 28 import java.io.Writer; 29 import java.util.ArrayList; -30 import java.util.Collections; -31 import java.util.List; -32 import java.util.Locale; -33 import java.util.Properties; -34 import java.util.ResourceBundle; -35 -36 import net.sourceforge.pmd.PMD; -37 import net.sourceforge.pmd.PMDConfiguration; -38 import net.sourceforge.pmd.Report; -39 import net.sourceforge.pmd.RuleContext; -40 import net.sourceforge.pmd.RulePriority; -41 import net.sourceforge.pmd.RuleSetFactory; -42 import net.sourceforge.pmd.RuleSetReferenceId; -43 import net.sourceforge.pmd.benchmark.Benchmarker; -44 import net.sourceforge.pmd.benchmark.TextReport; -45 import net.sourceforge.pmd.lang.LanguageRegistry; -46 import net.sourceforge.pmd.lang.LanguageVersion; -47 import net.sourceforge.pmd.renderers.CSVRenderer; -48 import net.sourceforge.pmd.renderers.HTMLRenderer; -49 import net.sourceforge.pmd.renderers.Renderer; -50 import net.sourceforge.pmd.renderers.TextRenderer; -51 import net.sourceforge.pmd.renderers.XMLRenderer; -52 import net.sourceforge.pmd.util.datasource.DataSource; -53 import net.sourceforge.pmd.util.datasource.FileDataSource; -54 -55 import org.apache.maven.doxia.sink.Sink; -56 import org.apache.maven.plugins.annotations.Component; -57 import org.apache.maven.plugins.annotations.Mojo; -58 import org.apache.maven.plugins.annotations.Parameter; -59 import org.apache.maven.plugins.annotations.ResolutionScope; -60 import org.apache.maven.reporting.MavenReportException; -61 import org.codehaus.plexus.resource.ResourceManager; -62 import org.codehaus.plexus.resource.loader.FileResourceCreationException; -63 import org.codehaus.plexus.resource.loader.FileResourceLoader; -64 import org.codehaus.plexus.resource.loader.ResourceNotFoundException; -65 import org.codehaus.plexus.util.FileUtils; -66 import org.codehaus.plexus.util.IOUtil; -67 import org.codehaus.plexus.util.ReaderFactory; -68 import org.codehaus.plexus.util.StringUtils; -69 -70 /** -71 * Creates a PMD report. -72 * -73 * @author Brett Porter -74 * @version $Id$ -75 * @since 2.0 -76 */ -77 @Mojo( name = "pmd", threadSafe = true, requiresDependencyResolution = ResolutionScope.TEST ) -78 public class PmdReport -79 extends AbstractPmdReport -80 { -81 /** -82 * The target JDK to analyze based on. Should match the target used in the compiler plugin. Valid values are -83 * currently code1.3/code, code1.4/code, code1.5/code, code1.6/code, code1.7/code and -84 * code1.8/code. -85 * p -86 * bNote:/b this parameter is only used if the language parameter is set to codejava/code. -87 * /p -88 */ -89 @Parameter( property = "targetJdk", defaultValue = "${maven.compiler.target}" ) -90 private String targetJdk; -91 -92 /** -93 * The programming language to be analyzed by PMD. Valid values are currently codejava/code, -94 * codejavascript/code and codejsp/code. -95 * -96 * @since 3.0 -97 */ -98 @Parameter( defaultValue = "java" ) -99 private String language; -100 -101 /** -102 * The rule priority threshold; rules with lower priority than this will not be evaluated. -103 * -104 * @since 2.1 -105 */ -106 @Parameter( property = "minimumPriority", defaultValue = "5" ) -107 private int minimumPriority = 5; -108 -109 /** -110 * Skip the PMD report generation. Most useful on the command line via "-Dpmd.skip=true". -111 * -112 * @since 2.1 -113 */ -114 @Parameter( property = "pmd.skip", defaultValue = "false" ) -115 private boolean skip; -116 -117 /** -118 * The PMD rulesets to use. See the a href="http://pmd.sourceforge.net/rules/index.html; target="alexandria_uri">http://pmd.sourceforge.net/rules/index.html"Stock Rulesets/a for a -119 * list of some included. Defaults to the java-basic, java-imports and java-unusedcode rulesets. -120 */ -121 @Parameter -122 private String[] rulesets = new String[] { "java-basic", "java-unusedcode", "java-imports" }; -123 -124 /** -125 * Controls whether the project's compile/test classpath should be passed to PMD to enable its type resolution -126 * feature. -127 * -128 * @since 3.0 -129 */ -130 @Parameter( property = "pmd.typeResolution", defaultValue =