You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2012/02/07 20:43:02 UTC

svn commit: r1241574 - in /maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142: ./ invoker.properties pom.xml src/ src/main/ src/main/java/ src/main/java/test/ src/main/java/test/MyClass.java

Author: rfscholte
Date: Tue Feb  7 19:43:02 2012
New Revision: 1241574

URL: http://svn.apache.org/viewvc?rev=1241574&view=rev
Log:
Add IT for MPMD-142

Added:
    maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/
    maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/invoker.properties
    maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/pom.xml
    maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/src/
    maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/src/main/
    maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/src/main/java/
    maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/src/main/java/test/
    maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/src/main/java/test/MyClass.java

Added: maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/invoker.properties?rev=1241574&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/invoker.properties (added)
+++ maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/invoker.properties Tue Feb  7 19:43:02 2012
@@ -0,0 +1 @@
+invoker.goals = clean site
\ No newline at end of file

Added: maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/pom.xml?rev=1241574&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/pom.xml (added)
+++ maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/pom.xml Tue Feb  7 19:43:02 2012
@@ -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>

Added: maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/src/main/java/test/MyClass.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/src/main/java/test/MyClass.java?rev=1241574&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/src/main/java/test/MyClass.java (added)
+++ maven/plugins/trunk/maven-pmd-plugin/src/it/mpmd-142/src/main/java/test/MyClass.java Tue Feb  7 19:43:02 2012
@@ -0,0 +1,12 @@
+package test;
+
+public class MyClass
+{
+
+    public static void main( String[] args )
+    {
+        ;
+        return;
+    }
+
+}