Add IT for MPMD-142
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1241574 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/it/mpmd-142/invoker.properties b/src/it/mpmd-142/invoker.properties
new file mode 100644
index 0000000..edda607
--- /dev/null
+++ b/src/it/mpmd-142/invoker.properties
@@ -0,0 +1 @@
+invoker.goals = clean site
\ No newline at end of file
diff --git a/src/it/mpmd-142/pom.xml b/src/it/mpmd-142/pom.xml
new file mode 100644
index 0000000..d1f9421
--- /dev/null
+++ b/src/it/mpmd-142/pom.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.plugin.pmd.it</groupId>
+ <artifactId>mpmd-142</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <description>PMD Report for maven site fails with ClassCastException</description>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <excludeRoots>
+ <excludeRoots>target/generated-sources</excludeRoots>
+ </excludeRoots>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.4</version>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>
diff --git a/src/it/mpmd-142/src/main/java/test/MyClass.java b/src/it/mpmd-142/src/main/java/test/MyClass.java
new file mode 100644
index 0000000..417aef3
--- /dev/null
+++ b/src/it/mpmd-142/src/main/java/test/MyClass.java
@@ -0,0 +1,12 @@
+package test;
+
+public class MyClass
+{
+
+ public static void main( String[] args )
+ {
+ ;
+ return;
+ }
+
+}