[MPMD-233] Upgrade to PMD 5.6.1
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1793231 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index bb8b802..e895c9b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,7 +86,7 @@
<javaVersion>1.7</javaVersion>
<maven.compiler.source>${javaVersion}</maven.compiler.source>
<maven.compiler.target>${javaVersion}</maven.compiler.target>
- <pmdVersion>5.5.6</pmdVersion>
+ <pmdVersion>5.6.1</pmdVersion>
<sitePluginVersion>3.4</sitePluginVersion>
<projectInfoReportsPluginVersion>2.8</projectInfoReportsPluginVersion>
</properties>
diff --git a/src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java b/src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java
index acfd8a3..9d92661 100644
--- a/src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java
+++ b/src/main/java/org/apache/maven/plugin/pmd/ExcludeFromFile.java
@@ -33,7 +33,7 @@
* @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 @@
* @param errorDetail the violation to check
* @return <code>true</code> if the violation should be excluded, <code>false</code> otherwise.
*/
- boolean isExcludedFromFailure( final D errorDetail );
+ boolean isExcludedFromFailure( D errorDetail );
}
diff --git a/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
index ba98168..52a3635 100644
--- a/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
+++ b/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
@@ -445,8 +445,8 @@
private void processFilesWithPMD( PMDConfiguration pmdConfiguration, List<DataSource> 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