<?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">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.atlassian.bitbucket.mesh</groupId>
        <artifactId>mesh-parent</artifactId>
        <version>2.0.4</version>
    </parent>

    <artifactId>mesh-it-parent</artifactId>
    <packaging>pom</packaging>

    <name>Bitbucket Mesh - Integration Test Parent</name>

    <modules>
        <!-- Disabled until we start adding black box integration tests.
        <module>cluster</module>
        -->
        <module>wired</module>
    </modules>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>copy-mesh</id>
                            <phase>process-test-resources</phase>
                            <goals>
                                <goal>copy</goal>
                            </goals>
                            <configuration>
                                <artifactItems>
                                    <artifactItem>
                                        <groupId>com.atlassian.bitbucket.mesh</groupId>
                                        <artifactId>mesh-app</artifactId>
                                    </artifactItem>
                                </artifactItems>
                                <outputDirectory>${project.build.testOutputDirectory}/mesh</outputDirectory>
                                <stripVersion>true</stripVersion>
                            </configuration>
                        </execution>
                        <execution>
                            <id>copy-repositories</id>
                            <phase>process-test-resources</phase>
                            <goals>
                                <goal>copy-dependencies</goal>
                            </goals>
                            <configuration>
                                <excludeArtifactIds>git</excludeArtifactIds>
                                <excludeTransitive>true</excludeTransitive>
                                <includeScope>test</includeScope>
                                <includeTypes>zip</includeTypes>
                                <outputDirectory>${project.build.testOutputDirectory}/git</outputDirectory>
                                <stripVersion>true</stripVersion>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <profiles>
        <!-- During a release, make sure all the poms are transformed -->
        <profile>
            <id>release-pom-transform</id>
            <modules>
                <module>cluster</module>
            </modules>
        </profile>
    </profiles>
</project>
