<?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/maven-v4_0_0.xsd">

    <!-- Parent -->
    <parent>
        <groupId>org.jboss</groupId>
        <artifactId>jboss-parent</artifactId>
        <version>8</version>
    </parent>

    <!-- Model Version -->
    <modelVersion>4.0.0</modelVersion>

    <!-- Artifact Configuration -->
    <groupId>org.jboss.portletbridge.testing.gatein</groupId>
    <artifactId>gatein-testing-parent</artifactId>
    <version>1.0.0.Beta2</version>
    <packaging>pom</packaging>
    <name>GateIn Testing, parent pom</name>
    <description>Provides deployable WAR of GateIn Portal Container for testing portlets</description>

    <properties>
        <!-- Testing versions -->
        <version.junit>4.10</version.junit>
        <version.arquillian>1.0.3.Final</version.arquillian>
        <version.shrinkwrap.resolver>2.0.0-alpha-7</version.shrinkwrap.resolver>
        <version.arquillian.portal.extension>1.0.0.Beta1</version.arquillian.portal.extension>

        <!-- Plugin versions -->
        <version.plugin.surefire>2.12</version.plugin.surefire>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <developers>
        <developer>
            <name>Ken Finnigan</name>
            <timezone>UTC+5</timezone>
            <email>ken@kenfinnigan.me</email>
        </developer>
    </developers>

    <issueManagement>
        <system>jira</system>
        <url>https://issues.jboss.org/browse/PBR/component/12315779</url>
    </issueManagement>

    <scm>
        <connection>scm:git:git@github.com:portletbridge/gatein-testing.git</connection>
        <developerConnection>scm:git:git@github.com:portletbridge/gatein-testing.git</developerConnection>
        <url>https://github.com/portletbridge/gatein-testing</url>
    </scm>

    <!-- Modules -->
    <modules>
        <module>gatein-arquillian-extension</module>
    </modules>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${version.plugin.surefire}</version>
                </plugin>
            </plugins>
        </pluginManagement>

        <plugins>
            <!-- Enforce Maven Environment -->
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-maven-environment</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <rules>
                        <requireMavenVersion>
                            <version>[3.0.4,)</version>
                        </requireMavenVersion>
                        <requireJavaVersion>
                            <version>1.6.0</version> <!-- Must be JDK6 -->
                        </requireJavaVersion>
                        <requireProperty>
                            <property>env.JAVA_HOME</property>
                            <message>"JAVA_HOME needs to be set to compile"</message>
                        </requireProperty>
                    </rules>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <pushChanges>false</pushChanges>
                    <localCheckout>true</localCheckout>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencyManagement>
        <dependencies>
            <!-- Spec dependencies -->
            <dependency>
                <groupId>javax.portlet</groupId>
                <artifactId>portlet-api</artifactId>
                <version>2.0</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>2.5</version>
            </dependency>

            <!-- Test dependencies -->
            <dependency>
                <groupId>org.jboss.shrinkwrap.resolver</groupId>
                <artifactId>shrinkwrap-resolver-bom</artifactId>
                <version>${version.shrinkwrap.resolver}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>org.jboss.arquillian</groupId>
                <artifactId>arquillian-bom</artifactId>
                <version>${version.arquillian}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${version.junit}</version>
            </dependency>
            <dependency>
                <groupId>org.jboss.arquillian.extension</groupId>
                <artifactId>arquillian-portal-spi</artifactId>
                <version>${version.arquillian.portal.extension}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
</project>

