<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.3.0.Final</version>
      <artifactId>jbossportletbridge-parent</artifactId>
      <relativePath>parent/pom.xml</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>

   <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>archetypes</module>
      <!--<module>docs</module>-->
     <module>examples</module>
   </modules>

   <scm>
     <connection>scm:svn:http://anonsvn.jboss.org/repos/portletbridge/tags/2.3.0.Final</connection>
     <developerConnection>scm:svn:https://svn.jboss.org/repos/portletbridge/tags/2.3.0.Final</developerConnection>
     <url>http://anonsvn.jboss.org/repos/portletbridge/tags/2.3.0.Final</url>
   </scm>

   <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>
                 </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>
      <profile>
         <id>release</id>
         <modules>
            <module>parent</module>
            <module>core</module>
            <module>archetypes</module>
            <module>docs</module>
            <module>examples</module>
         </modules>
      </profile>
         
     <!-- 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>2.3.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.5.1</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.5.1</version>
                     <configuration>
                         <formats>
                             <format>xml</format>
                             <format>html</format>
                         </formats>
                     </configuration>
                 </plugin>
             </plugins>
         </reporting>
     </profile>
   </profiles>

   </project>
