<?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.amps</groupId>
        <artifactId>atlassian-amps-product-plugins</artifactId>
        <version>9.11.4</version>
    </parent>

    <groupId>com.atlassian.maven.plugins</groupId>
    <artifactId>jira-maven-plugin</artifactId>
    <packaging>maven-plugin</packaging>

    <name>Jira Maven Plugin</name>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.maven.archetypes</groupId>
            <artifactId>jira-plugin-archetype</artifactId>
            <scope>runtime</scope>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>invoker</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.gmavenplus</groupId>
                        <artifactId>gmavenplus-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-resources-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-invoker-plugin</artifactId>
                        <configuration>
                            <scriptVariables>
                                <artifactId>${invoker.artifactId}</artifactId>
                                <product>${invoker.product}</product>
                            </scriptVariables>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
            <properties>
                <invoker.product>jira</invoker.product>
                <product.data.version>${jira.data.version}</product.data.version>
                <product.database.type>no-database-type</product.database.type>
                <product.version>${jira.version}</product.version>
            </properties>
        </profile>
        <!-- The invoker tests are split into two batches so that they can be run in parallel Bamboo jobs -->
        <profile>
            <id>invoker-batch-1</id>
            <properties>
                <invoker.test>
                    achooTest,
                    createTest,
                    integrationTest,
                    integrationTestWithNonexistentTestGroup,
                    integrationTestWithProductSpecificContainer,
                    quickreloadTest,
                    runParallelTest,
                    runTest,
                    transformTest
                </invoker.test>
            </properties>
        </profile>
        <profile>
            <id>invoker-batch-2</id>
            <properties>
                <invoker.test>
                    createOsgiJavaConfigTest,
                    debugTest,
                    installTest,
                    integrationTestWithCustomContainer,
                    integrationTestWithOverlappingCustomContainers,
                    managerAccessTest,
                    pluginArtifactsTest,
                    remoteTest,
                    runStandalone in path with space,
                </invoker.test>
            </properties>
        </profile>
    </profiles>
</project>
