<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">

   <parent>
      <groupId>org.jboss.portletbridge</groupId>
      <version>2.1.0.FINAL</version>
      <artifactId>jbossportletbridge-parent</artifactId>
      <relativePath>parent/pom.xml</relativePath>
   </parent>

   <modelVersion>4.0.0</modelVersion>

   <groupId>org.jboss.portletbridge</groupId>
   <version>2.1.0.FINAL</version>
   <artifactId>root</artifactId>
   <packaging>pom</packaging>
   <url>http://www.jboss.org/portletbridge/</url>
   <name>
   JBoss Portlet bridge for a portlet environment, root pom
   </name>
   <inceptionYear>2008</inceptionYear>
   <organization>
    <name>Red Hat, Inc.</name>
    <url>http://redhat.com</url>
   </organization>

   <!--<properties>-->
   <!--<seam.version>2.2.1.CR2</seam.version>-->
   <!--<jsf.version>1.2_13</jsf.version>-->
   <!--<richfaces.version>3.3.3.Final</richfaces.version>-->
   <!--</properties>-->

   <modules>
     <module>parent</module>
     <module>core</module>
     <module>docs</module>
     <!--<module>examples</module>-->
     <module>archetypes</module>
   </modules>

   <build>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>1.0</version>
        <executions>
          <execution>
            <id>enforce-plugin-versions</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requirePluginVersions>
                   <message>Best Practice is to always define plugin versions!</message>
                   <banLatest>true</banLatest>
                   <banRelease>true</banRelease>
                   <banSnapshots>true</banSnapshots>
                   <phases>clean,deploy,site</phases>
                   <!--additionalPlugins>
                     <additionalPlugin>org.apache.maven.plugins:maven-eclipse-plugin</additionalPlugin>
                     <additionalPlugin>org.apache.maven.plugins:maven-reactor-plugin</additionalPlugin>
                   </additionalPlugins>
                   <unCheckedPluginsList>org.apache.maven.plugins:maven-enforcer-plugin,org.apache.maven.plugins:maven-idea-plugin</unCheckedPluginsList-->
                </requirePluginVersions>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>

     <pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>
             <plugin> 
                 <groupId>org.apache.maven.plugins</groupId> 
                 <artifactId>maven-clean-plugin</artifactId> 
                 <version>2.2</version> 
             </plugin>
             <plugin>        
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-deploy-plugin</artifactId>
                 <version>2.5</version>                     
             </plugin>
             <plugin>        
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-install-plugin</artifactId>
                 <version>2.2</version>                     
             </plugin>
             <plugin>        
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>2.0-beta-7</version>                     
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-javadoc-plugin</artifactId>
                 <version>2.5</version>
             </plugin>
         </plugins>
     </pluginManagement>
   </build>

   <profiles>
     <!-- Activating this profile will cause developer reports to be generated.
         - These are reports that are not required for the project site, but - may
         be useful to developers. -->
      <profile>
         <id>dev-reports</id>
         <reporting>
             <plugins>
                 <plugin>
                     <groupId>org.codehaus.mojo</groupId>
                     <artifactId>findbugs-maven-plugin</artifactId>
                     <version>1.2</version>
                     <configuration>
                         <findbugsXmlOutput>true</findbugsXmlOutput>
                         <xmlOutput>true</xmlOutput>
                     </configuration>
                 </plugin>
             </plugins>
         </reporting>
     </profile>
      <!-- Profile to include code coverage reports -->
      <profile>
         <id>code-coverage</id>
         <build>
             <plugins>
                 <plugin>
                     <groupId>org.codehaus.mojo</groupId>
                     <artifactId>cobertura-maven-plugin</artifactId>
                     <version>2.2</version>
                    <!-- This version is needed to allow generating the
                         xml reports AFAIK -->
                    <configuration>
                         <formats>
                             <format>xml</format>
                             <format>html</format>
                         </formats>
                     </configuration>
                 </plugin>
             </plugins>
         </build>
         <reporting>
             <plugins>
                 <plugin>
                     <groupId>org.codehaus.mojo</groupId>
                     <artifactId>cobertura-maven-plugin</artifactId>
                     <version>2.2</version>
                     <configuration>
                         <formats>
                             <format>xml</format>
                             <format>html</format>
                         </formats>
                     </configuration>
                 </plugin>
             </plugins>
         </reporting>
     </profile>
   </profiles>

   </project>
