Add a maven3 profile with a bunch of reports

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/chain/branches/test-maven3-profile@1005303 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 968016a..5b67549 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-parent</artifactId>
-        <version>15</version>
+        <version>18-m3</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <groupId>commons-chain</groupId>
@@ -225,6 +225,72 @@
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>maven-3</id>
+            <activation>
+                <file>
+                    <!-- This employs that the basedir expression is only 
+                        recognized by Maven 3.x (see MNG-2363) -->
+                    <exists>${basedir}</exists>
+                </file>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-site-plugin</artifactId>
+                        <configuration>
+                            <reportPlugins
+                                combine.children="append">
+                                <plugin>
+                                    <groupId>org.apache.maven.plugins</groupId>
+                                    <artifactId>maven-changes-plugin</artifactId>
+                                    <configuration>
+                                        <xmlPath>${basedir}/src/changes/changes.xml</xmlPath>
+                                        <issueLinkTemplate>%URL%/%ISSUE%</issueLinkTemplate>
+                                    </configuration>
+                                    <reportSets>
+                                        <reportSet>
+                                            <reports>
+                                                <report>changes-report</report>
+                                            </reports>
+                                        </reportSet>
+                                    </reportSets>
+                                </plugin>
+                                <plugin>
+                                    <groupId>org.apache.maven.plugins</groupId> 
+                                    <artifactId>maven-checkstyle-plugin</artifactId>
+                                    <configuration>
+                                        <configLocation>${basedir}/checkstyle.xml</configLocation> 
+                                        <enableRulesSummary>false</enableRulesSummary>
+                                        <headerFile>${basedir}/license-header.txt</headerFile> 
+                                    </configuration>
+                                </plugin>
+                                <plugin>
+                                    <groupId>org.codehaus.mojo</groupId>
+                                    <artifactId>clirr-maven-plugin</artifactId>
+                                    <configuration>
+                                        <comparisonVersion>1.1</comparisonVersion>
+                                        <minSeverity>info</minSeverity>
+                                    </configuration>
+                                </plugin>
+                                <plugin>
+                                    <groupId>org.codehaus.mojo</groupId>
+                                    <artifactId>findbugs-maven-plugin</artifactId>
+                                    <configuration>
+                                        <threshold>Normal</threshold>
+                                        <effort>Default</effort>
+                                    </configuration>
+                                </plugin>
+                                <plugin>
+                                    <groupId>org.codehaus.mojo</groupId>
+                                    <artifactId>cobertura-maven-plugin</artifactId>
+                                </plugin>
+                            </reportPlugins>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 
     <reporting>