[MPMD-325] Ensure there are no warnings when executing PMD

Reuse integration test for JDK11 (MPMD-270)
diff --git a/src/it/MPMD-270-JDK11/invoker.properties b/src/it/MPMD-270-325-JDK11/invoker.properties
similarity index 96%
rename from src/it/MPMD-270-JDK11/invoker.properties
rename to src/it/MPMD-270-325-JDK11/invoker.properties
index 841d0b9..b50061f 100644
--- a/src/it/MPMD-270-JDK11/invoker.properties
+++ b/src/it/MPMD-270-325-JDK11/invoker.properties
@@ -16,4 +16,5 @@
 # under the License.
 
 invoker.java.version = 11+
-invoker.goals = clean verify
\ No newline at end of file
+invoker.goals = clean verify
+invoker.buildResult = failure
diff --git a/src/it/MPMD-270-JDK11/pom.xml b/src/it/MPMD-270-325-JDK11/pom.xml
similarity index 87%
rename from src/it/MPMD-270-JDK11/pom.xml
rename to src/it/MPMD-270-325-JDK11/pom.xml
index 66780cf..e2d050c 100644
--- a/src/it/MPMD-270-JDK11/pom.xml
+++ b/src/it/MPMD-270-325-JDK11/pom.xml
@@ -23,9 +23,8 @@
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.maven.plugins.pmd.it</groupId>
-  <artifactId>empty-rulests</artifactId>
+  <artifactId>MPMD-270-325-JDK11</artifactId>
   <version>1.0-SNAPSHOT</version>
-  <name>my-app</name>
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -51,21 +50,15 @@
         <artifactId>maven-pmd-plugin</artifactId>
         <version>@project.version@</version>
         <configuration>
+          <linkXRef>false</linkXRef>
           <skipPmdError>false</skipPmdError>
           <skip>false</skip>
           <failOnViolation>true</failOnViolation>
           <failurePriority>4</failurePriority>
+          <printFailingErrors>true</printFailingErrors>
           <targetJdk>11</targetJdk>
           <sourceEncoding>UTF-8</sourceEncoding>
           <minimumTokens>100</minimumTokens>
-          <excludes>
-            <exclude>**/*Bean.java</exclude>
-            <exclude>**/generated/*.java</exclude>
-          </excludes>
-          <excludeRoots>
-            <excludeRoot>target/generated-sources/stubs</excludeRoot>
-          </excludeRoots>
-          <rulesets/>
         </configuration>
         <executions>
           <execution>
diff --git a/src/it/MPMD-270-JDK11/src/main/java/com/mycompany/app/App.java b/src/it/MPMD-270-325-JDK11/src/main/java/com/mycompany/app/App.java
similarity index 100%
rename from src/it/MPMD-270-JDK11/src/main/java/com/mycompany/app/App.java
rename to src/it/MPMD-270-325-JDK11/src/main/java/com/mycompany/app/App.java
diff --git a/src/it/MPMD-270-JDK11/src/main/java/com/mycompany/app/Foo.java b/src/it/MPMD-270-325-JDK11/src/main/java/com/mycompany/app/Foo.java
similarity index 96%
rename from src/it/MPMD-270-JDK11/src/main/java/com/mycompany/app/Foo.java
rename to src/it/MPMD-270-325-JDK11/src/main/java/com/mycompany/app/Foo.java
index 2a5a2bc..4823d57 100644
--- a/src/it/MPMD-270-JDK11/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-270-325-JDK11/src/main/java/com/mycompany/app/Foo.java
@@ -1,3 +1,5 @@
+package com.mycompany.app;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
diff --git a/src/it/MPMD-270-JDK11/verify.groovy b/src/it/MPMD-270-325-JDK11/verify.groovy
similarity index 84%
rename from src/it/MPMD-270-JDK11/verify.groovy
rename to src/it/MPMD-270-325-JDK11/verify.groovy
index 1cd85d4..ebb6a94 100644
--- a/src/it/MPMD-270-JDK11/verify.groovy
+++ b/src/it/MPMD-270-325-JDK11/verify.groovy
@@ -19,4 +19,6 @@
  */
 
 File buildLog = new File( basedir, 'build.log' )
-assert buildLog.exists()
\ No newline at end of file
+assert buildLog.exists()
+assert buildLog.text.contains( '[INFO] PMD Failure: com.mycompany.app.Foo:26 Rule:UnusedFormalParameter Priority:3' )
+assert !buildLog.text.contains( '[WARNING]' )