<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
   <parent>
      <groupId>org.jboss</groupId>
      <artifactId>jboss-parent</artifactId>
      <version>5</version>
   </parent>

   <modelVersion>4.0.0</modelVersion>

   <groupId>org.jboss.ejb3.timeout</groupId>
   <artifactId>jboss-ejb3-timeout</artifactId>
   <version>0.2.1</version>
   <packaging>pom</packaging>

   <name>JBoss EJB 3 Timeout Requirements</name>

   <url>http://www.jboss.org/ejb3</url>

   <build>
      <plugins>
         <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
               <source>1.5</source>
               <target>1.5</target>
            </configuration>
         </plugin>
         <!-- This limits the amount of artifacts you need from this project to just one. -->
         <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
               <execution>
                  <phase>process-resources</phase>
                  <goals>
                     <goal>unpack-dependencies</goal>
                  </goals>
                  <configuration>
                     <includeGroupIds>${project.groupId}</includeGroupIds>
                     <includeScope>runtime</includeScope>
                     <outputDirectory>${project.build.outputDirectory}</outputDirectory>
                  </configuration>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <artifactId>maven-release-plugin</artifactId>
            <version>2.0</version>
            <configuration>
               <autoVersionSubmodules>true</autoVersionSubmodules>
            </configuration>
         </plugin>
      </plugins>
   </build>

   <dependencyManagement>
      <dependencies>
         <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.4</version>
         </dependency>
      </dependencies>
   </dependencyManagement>

   <issueManagement>
      <system>jira</system>
      <url>https://jira.jboss.org/jira/browse/EJBTHREE</url>
   </issueManagement>

   <modules>
      <module>ejb-3.0</module>
      <module>timeout-spi</module>
   </modules>

   <!-- By default we build all modules. -->
   <!-- if we do '-P !ejb-3.1' do not build EJB 3.1 stuff -->
   <!-- When using 2.0.9 you can only have one profile active (bug),
        so specifying -P ejb3.0 will give you only EJB 3.0 stuff.
        When using 2.0.10+ you need to use -P !ejb-3.1 -->
   <profiles>
      <profile>
         <id>ejb-3.0</id>
      </profile>
      <profile>
         <id>ejb-3.1</id>
         <activation>
            <activeByDefault>true</activeByDefault>
         </activation>
         <modules>
            <module>ejb-3.1</module>
         </modules>
      </profile>
   </profiles>

   <reporting>
      <plugins>
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>cobertura-maven-plugin</artifactId>
         </plugin>
      </plugins>
   </reporting>

   <scm>
      <connection>scm:git:git://github.com/wolfc/jboss-ejb3-timeout.git</connection>
      <developerConnection>scm:git:git@github.com:wolfc/jboss-ejb3-timeout.git</developerConnection>
      <url>http://github.com/wolfc/jboss-ejb3-timeout</url>
   </scm>
</project>
