<?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.infinispan</groupId>
        <artifactId>infinispan-integrationtests-parent</artifactId>
        <version>15.2.6.Final</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <properties>
        <resources.dir>${basedir}/src/test/resources</resources.dir>
        <ispnserver.project.dir>${basedir}/../../server/runtime</ispnserver.project.dir>
        <server.build.dist>${ispnserver.project.dir}/target/${infinispan.brand.prefix}-server-${infinispan.brand.version}</server.build.dist>
        <ispnserver.dist>${basedir}/target/infinispan-server</ispnserver.dist>
        <ispn.config.file>${basedir}/server-integration-commons/target/test-classes/infinispan-custom.xml</ispn.config.file>
    </properties>

    <modelVersion>4.0.0</modelVersion>
    <packaging>pom</packaging>

    <artifactId>infinispan-server-integration</artifactId>
    <name>Server Integration</name>
    <description>Server Integration</description>

    <dependencies>
        <dependency>
            <groupId>org.infinispan</groupId>
            <artifactId>infinispan-server-runtime</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skipTests>true</skipTests>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-failsafe-plugin</artifactId>
                <configuration>
                    <systemPropertyVariables>
                        <server.jvm.args>${server.jvm.args}</server.jvm.args>
                    </systemPropertyVariables>
                    <!-- Force use of JUnit, since TestNG+Arquillian break in wonderful ways -->
                    <testNGArtifactName>none:none</testNGArtifactName>
                    <disableXmlReport>false</disableXmlReport>
                    <properties>
                        <usedefaultlisteners>false</usedefaultlisteners>
                        <listener>${junitListener}</listener>
                    </properties>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                            <goal>verify</goal>
                        </goals>
                        <configuration>
                            <redirectTestOutputToFile>true</redirectTestOutputToFile>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.surefire</groupId>
                        <artifactId>surefire-junit47</artifactId>
                        <version>${version.maven.surefire}</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>
</project>
