<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ JBoss, Home of Professional Open Source
  ~ Copyright 2012 Red Hat Inc. and/or its affiliates and other
  ~ contributors as indicated by the @author tags. All rights reserved.
  ~ See the copyright.txt in the distribution for a full listing of
  ~ individual contributors.
  ~
  ~ This is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This software is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ Lesser General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public
  ~ License along with this software; if not, write to the Free
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  -->
<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">

   <modelVersion>4.0.0</modelVersion>

   <parent>
      <groupId>org.infinispan</groupId>
      <artifactId>infinispan-parent</artifactId>
      <version>5.2.5.Final</version>
      <relativePath>../../parent/pom.xml</relativePath>
   </parent>

   <artifactId>infinispan-cdi-tck-runner</artifactId>
   <name>Infinispan CDI support JCache TCK runner</name>
   <description>Infinispan CDI support JCache TCK runner module</description>

   <developers>
      <developer>
         <name>Pete Muir</name>
         <email>pete DOT muir AT jboss DOT org</email>
         <organization>Red Hat, Inc.</organization>
         <url>http://in.relation.to/Bloggers/Pete</url>
      </developer>
      <developer>
         <name>Kevin Pollet</name>
         <email>kevin DOT pollet AT serli DOT com</email>
         <organization>SERLI</organization>
         <url>http://www.serli.com</url>
      </developer>
   </developers>

   <dependencies>
      <!-- JCache annotations implementation -->
      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-cdi</artifactId>
         <scope>test</scope>
      </dependency>

      <!-- JCache TCK -->
      <dependency>
         <groupId>javax.cache</groupId>
         <artifactId>cache-tests</artifactId>
         <classifier>tests</classifier>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.jboss.weld.se</groupId>
         <artifactId>weld-se</artifactId>
         <scope>test</scope>
      </dependency>

      <dependency>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <scope>test</scope>
      </dependency>
   </dependencies>
   <build>
      <plugins>
         <!-- Unpack JCache TCK classes -->
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
               <execution>
                  <id>unpack-tck-classes</id>
                  <phase>test-compile</phase>
                  <goals>
                     <goal>unpack-dependencies</goal>
                  </goals>
               </execution>
            </executions>
            <configuration>
               <includeArtifactIds>cache-tests</includeArtifactIds>
               <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
               <!-- Remove other files packaged with the TCK (e.g. beans.xml) -->
               <includes>**/*.class</includes>
            </configuration>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
               <forkMode>none</forkMode>
                <properties>
                  <property>
                     <name>listener</name>
                     <value>org.infinispan.cdi.test.tck.DummyTestListener</value>
                  </property>
               </properties>
            </configuration>
            <dependencies>
               <dependency>
                  <groupId>org.apache.maven.surefire</groupId>
                  <artifactId>surefire-junit4</artifactId>
                  <version>2.9</version>
               </dependency>
            </dependencies>
         </plugin>
      </plugins>
   </build>
</project>
