<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">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.jboss.dna</groupId>
		<artifactId>dna</artifactId>
		<version>0.7</version>
	</parent>
	<!-- The groupId and version values are inherited from parent -->
	<artifactId>dna-integration-tests</artifactId>
	<description>The JBoss DNA integration tests</description>
	<packaging>jar</packaging>
	<name>JBoss DNA Integration Tests</name>
	<url>http://labs.jboss.org/dna</url>

	<!--
		Define the dependencies. Note that all version and scopes default to
		those defined in the dependencyManagement section of the parent pom.
	-->
	<dependencies>
		<dependency>
			<groupId>org.jboss.dna</groupId>
			<artifactId>dna-common</artifactId>
		</dependency>
		<dependency>
			<groupId>org.jboss.dna</groupId>
			<artifactId>dna-classloader-maven</artifactId>
		</dependency>
		<dependency>
			<groupId>org.jboss.dna</groupId>
			<artifactId>dna-repository</artifactId>
		</dependency>
		<dependency>
			<groupId>org.jboss.dna</groupId>
			<artifactId>dna-jcr</artifactId>
		</dependency>
		<dependency>
            <groupId>org.jboss.dna</groupId>
            <artifactId>dna-sequencer-ddl</artifactId>
            <version>${project.version}</version>
        </dependency>

		<!-- 
      Testing (note the scope)
    -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.jboss.dna</groupId>
			<artifactId>dna-common</artifactId>
			<version>${project.version}</version>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.jboss.dna</groupId>
			<artifactId>dna-jcr</artifactId>
			<version>${project.version}</version>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.dna</groupId>
			<artifactId>dna-connector-jbosscache</artifactId>
			<version>${project.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.jboss.dna</groupId>
			<artifactId>dna-connector-filesystem</artifactId>
			<version>${project.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.jboss.dna</groupId>
			<artifactId>dna-connector-infinispan</artifactId>
			<version>${project.version}</version>
			<scope>test</scope>
		</dependency>
        <dependency>
            <groupId>org.jboss.dna</groupId>
            <artifactId>dna-connector-svn</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jboss.dna</groupId>
            <artifactId>dna-connector-jdbc-metadata</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>

		<!-- 
          JPA Connector Dependencies
          -->
		<dependency>
			<groupId>org.jboss.dna</groupId>
			<artifactId>dna-connector-store-jpa</artifactId>
			<version>${project.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-entitymanager</artifactId>
			<version>3.4.0.GA</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-c3p0</artifactId>
			<version>3.3.1.GA</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>hsqldb</groupId>
			<artifactId>hsqldb</artifactId>
			<version>1.8.0.2</version>
			<scope>test</scope>
		</dependency>

		<!--
			Logging (require SLF4J API for compiling, but use Log4J and its SLF4J
			binding for testing)
		-->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
		</dependency>
		<!-- 
      Java Content Repository API 
    -->
		<dependency>
			<groupId>javax.jcr</groupId>
			<artifactId>jcr</artifactId>
			<scope>test</scope>
		</dependency>
        <!-- 
      JCR TCK unit tests
    -->
		<dependency>
			<groupId>org.apache.jackrabbit</groupId>
			<artifactId>jackrabbit-jcr-tests</artifactId>
		</dependency>
		<!-- 
      Databases and JDBC Drivers
    -->
		<dependency>
			<groupId>org.apache.derby</groupId>
			<artifactId>derby</artifactId>
		</dependency>
		<dependency>
			<groupId>org.jboss.security</groupId>
			<artifactId>jboss-idtrust</artifactId>
			<version>2.0.2.CR1</version>
			<scope>test</scope>
		</dependency>

		<!-- 
      ID Trust (JAAS Dependency)
    -->
		<dependency>
			<groupId>org.jboss.security</groupId>
			<artifactId>jboss-security-spi-bare</artifactId>
			<version>2.0.2.SP6</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.jboss.security</groupId>
			<artifactId>jbosssx-bare</artifactId>
			<version>2.0.2.SP6</version>
			<exclusions>
				<exclusion>
					<groupId>apache-xalan</groupId>
					<artifactId>xalan</artifactId>
				</exclusion>
				<exclusion>
					<groupId>apache-xalan</groupId>
					<artifactId>serializer</artifactId>
				</exclusion>
			</exclusions>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<!--
		Build configuration - run integration tests only in 'integration'
		phase
	-->
	<build>
    <testResources>
      <testResource>
           <filtering>false</filtering>
           <directory>src/test/resources</directory>
           <includes>
             <include>*</include>
             <include>**/*</include>
           </includes>
       </testResource>
	    <!-- Apply the properties set in the POM to the resource files -->
      <testResource>
        <filtering>true</filtering>
        <directory>src/test/resources</directory>
        <includes>
          <include>tck/basic-jpa/configRepository.xml</include>
          <include>tck/simple-jpa/configRepository.xml</include>
        </includes>
      </testResource>
    </testResources>
		<plugins>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<skip>true</skip>
				</configuration>
				<executions>
					<execution>
						<id>integration-test</id>
						<phase>integration-test</phase>
						<goals>
							<goal>test</goal>
						</goals>
						<configuration>
							<skip>false</skip>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>