Hi Robert,
Am 26.01.2012 17:38, schrieb Robert Burrell Donkin:
>> What needs to be done in order to produce reports for test coverage
>> (cobertura, emma), findbugs and pmd? Do we need a specific
>> rat-parent-pom? Or a whisker-variant for maven>3?
>
> It might be a case of just turning them on. Hopefully I'll be able to
> give this a whirl sometime soon - feel free to give it a go and report
> back...
>
>> If I run site:site on the current whisker trunk the submodules are not
>> linked correctly ....
>
> For some reason, I always get this wrong then have to look it...
Thanks for your efforts - I changed the pom a bit to conform to the
current mvn3-reporting-configuration guidelines and added some reports.
Some of the hard-coded values could be refactored into mvn-property
variables (e.g utf-8-encoding).
It seems to work fine with mvn3.0.4/linux/jdk7 - shall I file a bug with
the patch or do you want to merge my changes into the current trunk?
Cheers
Hugo
Index: pom.xml
===================================================================
--- pom.xml (Revision 1237057)
+++ pom.xml (Arbeitskopie)
@@ -109,47 +109,131 @@
</plugin>
</plugins>
</pluginManagement>
+ <plugins>
+<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0</version>
+ <configuration>
+ <outputEncoding>utf-8</outputEncoding>
+ <inputEncoding>utf-8</inputEncoding>
+
+ <!-- reporting plugins are configured according to new mvn3 standard -->
+ <reportPlugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>2.8</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.8</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <aggregate>true</aggregate>
+ <linkJavadoc>true</linkJavadoc>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ <version>2.11</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <linkXRef>true</linkXRef>
+ <sourceEncoding>utf-8</sourceEncoding>
+ <minimumTokens>100</minimumTokens>
+ <targetJdk>${target.jdk}</targetJdk>
+ <excludes>
+ <exclude>**/generated/**/*.java</exclude>
+ <exclude>**/target/clover/**/*.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <!-- read changes.xml -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-changes-plugin</artifactId>
+ <version>2.6</version>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>changes-report</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <!-- jdepend plugin -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jdepend-maven-plugin</artifactId>
+ <version>2.0-beta-2</version>
+ </plugin>
+ <!-- cobertura plugin -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.5.1</version>
+ </plugin>
+ <!-- catch code tags -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>taglist-maven-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <tags>
+ <tag>TODO</tag>
+ <tag>todo</tag>
+ <tag>FIXME</tag>
+ <tag>fixme</tag>
+ <tag>REFACTOR</tag>
+ <tag>refactor</tag>
+ <tag>REVIEW</tag>
+ <tag>review</tag>
+ <tag>@todo</tag>
+ <tag>@deprecated</tag>
+ </tags>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>2.3.3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+
+ </reportPlugins>
+ </configuration>
+ </plugin>
+ <!-- instrumentalization for cobertura -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.5.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
</build>
-<!--
-
-
- ================================
- Reports for the site
- -->
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.8</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jxr-plugin</artifactId>
- <version>2.3</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- <version>2.11</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-pmd-plugin</artifactId>
- <version>2.6</version>
- <configuration>
- <targetJdk>${target.jdk}</targetJdk>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.5.1</version>
- </plugin>
- </plugins>
- </reporting>
-
<!-- ================================ Project information -->
<name>Apache Rat Whisker</name>
@@ -182,4 +266,4 @@
<url>http://incubator.apache.org/rat/whisker</url>
</site>
</distributionManagement>
-</project>
\ No newline at end of file
+</project>