<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>
      <artifactId>parent</artifactId>
      <groupId>org.jboss.webbeans</groupId>
      <version>1.0.0.ALPHA2</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.jboss.webbeans</groupId>
   <artifactId>webbeans-ri</artifactId>
   <name>Web Beans RI</name>
   <dependencies>

      <dependency>
         <groupId>org.jboss.webbeans</groupId>
         <artifactId>webbeans-api</artifactId>
      </dependency>
      
      <dependency>
         <groupId>org.jboss.webbeans</groupId>
         <artifactId>webbeans-ri-spi</artifactId>
      </dependency>

      <dependency>
         <groupId>org.testng</groupId>
         <artifactId>testng</artifactId>
         <scope>test</scope>
         <classifier>jdk15</classifier>
      </dependency>
      
      <dependency>
         <groupId>org.jboss.webbeans.tck</groupId>
         <artifactId>webbeans-tck-api</artifactId>
         <scope>test</scope>
      </dependency>
      
      <dependency>
         <groupId>org.jboss.webbeans.tck</groupId>
         <artifactId>webbeans-tck-impl</artifactId>
         <scope>test</scope>
      </dependency>
      
      <dependency>
         <groupId>org.jboss.ejb3</groupId>
         <artifactId>jboss-ejb3-embedded</artifactId>
         <scope>runtime</scope>
         <optional>true</optional>
      </dependency>
      
      <dependency>
         <groupId>org.jboss.ejb3</groupId>
         <artifactId>jboss-ejb3-api</artifactId>
         <scope>test</scope>
      </dependency>

      <dependency>
         <groupId>javax.servlet</groupId>
         <artifactId>servlet-api</artifactId>
      </dependency>

      <dependency>
         <groupId>javax.transaction</groupId>
         <artifactId>jta</artifactId>
      </dependency>

      <dependency>
         <groupId>javax.ejb</groupId>
         <artifactId>ejb-api</artifactId>
         <optional>true</optional>
      </dependency>

      <dependency>
         <groupId>javax.annotation</groupId>
         <artifactId>jsr250-api</artifactId>
         <optional>true</optional>
      </dependency>
      
      <dependency>
         <groupId>javax.persistence</groupId>
         <artifactId>persistence-api</artifactId>
         <optional>true</optional>
      </dependency>

      <dependency>
         <groupId>javassist</groupId>
         <artifactId>javassist</artifactId>
      </dependency>

      <dependency>
         <groupId>log4j</groupId>
         <artifactId>log4j</artifactId>
      </dependency>

      <dependency>
         <groupId>javax.el</groupId>
         <artifactId>el-api</artifactId>
      </dependency>
      
      <dependency>
         <groupId>javax.el</groupId>
         <artifactId>el-ri</artifactId>
      </dependency>
      
      <dependency>
         <groupId>javax.faces</groupId>
         <artifactId>jsf-api</artifactId>
      </dependency>
      
      <dependency>
         <groupId>com.google.collections</groupId>
         <artifactId>google-collections</artifactId>
      </dependency>

   </dependencies>

   <build>
   	<defaultGoal>install</defaultGoal>
   	<plugins>
   	   <plugin>
   	      <groupId>org.apache.maven.plugins</groupId>
   	      <artifactId>maven-dependency-plugin</artifactId>
   	      <executions>
   	         <execution>
   	            <id>copy</id>
   	            <phase>generate-test-sources</phase>
   	            <goals>
   	               <goal>copy</goal>
   	            </goals>
   	            <configuration>
   	               <artifactItems>
   	                  <artifactItem>
   	                     <groupId>org.jboss.webbeans.tck</groupId>
   	                     <artifactId>webbeans-tck-impl</artifactId>
   	                     <version>${webbeans.tck.version}</version>
   	                     <type>xml</type>
                           <classifier>suite</classifier>
   	                     <overWrite>true</overWrite>
   	                  </artifactItem>
   	               </artifactItems>
   	            </configuration>
   	         </execution>
   	      </executions>
   	   </plugin>
   	   <plugin>
   	      <groupId>org.apache.maven.plugins</groupId>
   	      <artifactId>maven-surefire-plugin</artifactId>
   	      <configuration>
   	         <suiteXmlFiles>
                  <suiteXmlFile>unit-tests.xml,</suiteXmlFile>
                  <suiteXmlFile>${project.build.directory}/dependency/webbeans-tck-impl-${webbeans.tck.version}-suite.xml</suiteXmlFile>
   	         </suiteXmlFiles>
   	      </configuration>
   	   </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-report-plugin</artifactId>
            <executions>
               <execution>
                  <id>generate-test-report</id>
                  <phase>test</phase>
                  <goals>
                     <goal>report-only</goal>
                  </goals>
               </execution>
            </executions>
            <configuration>
               <outputDirectory>${project.build.directory}/surefire-reports</outputDirectory>
               <outputName>test-report</outputName>
            </configuration>
         </plugin>
   	</plugins>
   </build>

</project>