<?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.pom</groupId>
        <artifactId>public-pom</artifactId>
        <version>5.0.12</version>
    </parent>

    <groupId>com.atlassian.confluence.plugins</groupId>
    <artifactId>confluence-mentions-plugin-parent</artifactId>
    <version>3.1.5</version>
    <packaging>pom</packaging>

    <name>Confluence Mentions Plugin Parent</name>
    <description>This is the parent for the Mentions plugin for Atlassian Confluence.</description>
    <organization>
        <name>Atlassian</name>
        <url>http://www.atlassian.com/</url>
    </organization>
    <licenses>
        <license>
            <name>Atlassian 3.0 End User License Agreement</name>
            <url>http://www.atlassian.com/end-user-agreement/</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <modules>
        <module>confluence-mentions</module>
        <module>confluence-mentions-integration-test</module>
    </modules>

    <scm>
        <connection>scm:git:ssh://git@stash.atlassian.com:7997/confserver/confluence-mentions-plugin.git</connection>
        <developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/confserver/confluence-mentions-plugin.git</developerConnection>
        <url>https://stash.atlassian.com/projects/CONFSERVER/repos/confluence-mentions-plugin/browse</url>
        <tag>confluence-mentions-plugin-parent-3.1.5</tag>
    </scm>

    <properties>
        <confluence.version>6.7.0-CONFSRVDEV-4863-m01</confluence.version>
        <failOnMilestoneOrReleaseCandidateDeps>false</failOnMilestoneOrReleaseCandidateDeps>

        <!-- Versions for dependencies that we should inherit from the platform pom but currently don't. START -->
        <confluence-extractor-api-plugin.version>1.0.1</confluence-extractor-api-plugin.version>
        <confluence.notifications.version>8.9.5</confluence.notifications.version>
        <confluence-email-resources.version>5.4.1</confluence-email-resources.version>
        <confluence-previews.version>5.0.4</confluence-previews.version>
        <!-- END -->

        <!-- Versions for Maven plugins START-->
        <confluence.data.version>${confluence.version}</confluence.data.version>
        <amps.version>6.3.7</amps.version>
        <atlassian.less.version>3.2.1</atlassian.less.version>
        <!-- END -->

        <!--Build-->
        <maven.javadoc.skip>true</maven.javadoc.skip>
        <build.helper.maven.plugin.version>1.8</build.helper.maven.plugin.version>
        <xvfb.enable>false</xvfb.enable>
        <xvfb.display>:0</xvfb.display>
        <http.port>1990</http.port>
        <http.confluence.port>${http.port}</http.confluence.port>
        <context.confluence.path>confluence</context.confluence.path>
        <baseurl.confluence>http://localhost:${http.confluence.port}/${context.confluence.path}</baseurl.confluence>
        <atlassian.dev.mode>false</atlassian.dev.mode>

        <!-- For the flaky test reporter profile. -->
        <version.override.set>maven-failsafe-plugin</version.override.set>
        <surefire.version>2.20.1</surefire.version>
        <flaky.test.reporter.version>1.3.10</flaky.test.reporter.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.confluence</groupId>
                <artifactId>confluence-plugins-platform-pom</artifactId>
                <version>${confluence.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.7.9</version>
                <executions>
                    <execution>
                        <id>prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>report</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>post-unit-test</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                        <configuration>
                            <!-- Sets the path to the file which contains the execution data. -->

                            <dataFile>target/jacoco.exec</dataFile>
                            <!-- Sets the output directory for the code coverage report. -->
                            <outputDirectory>target/jacoco-ut</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
