<?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>closedsource-pom</artifactId>
        <version>5.0.14</version>
    </parent>

    <groupId>com.atlassian.confluence.plugins</groupId>
    <artifactId>share-page-plugin-parent</artifactId>
    <version>7.0.0</version>
    <packaging>pom</packaging>

    <name>Share Page</name>
    <description>Allows users to share a page with others via email</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>plugin</module>
        <module>integration-tests</module>
    </modules>

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

    <properties>
        <amps.version>6.3.13</amps.version>
        <atlassian-template-renderer.version>1.5.4</atlassian-template-renderer.version>
        <atlassian.spring.scanner.version>2.1.3</atlassian.spring.scanner.version>
        <atlassian.webhooks.version>0.17.6</atlassian.webhooks.version>
        <confluence-email-resources.version>${confluence.notifications.version}</confluence-email-resources.version>
        <confluence.data.version>${confluence.version}</confluence.data.version>
        <confluence.notifications.version>8.9.2</confluence.notifications.version>
        <confluence.version>6.6.0-beta1</confluence.version>
        <func-test.version>2.3</func-test.version>
        <hamcrest.version>1.3</hamcrest.version>
        <jsoup.version>1.7.2</jsoup.version>
        <jsr311-api.version>1.0</jsr311-api.version>
        <containerId>tomcat8x</containerId>
        <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
        <mockito-core.version>1.8.5</mockito-core.version>
        <notifications.api.enabled>true</notifications.api.enabled>
        <notifications.api.version>3.3.3</notifications.api.version>
        <stateless.test.runner.version>5.1.0</stateless.test.runner.version>
        <atlassian-selenium.version>2.5.0</atlassian-selenium.version>
        <confluence-webdriver-pageobjects.version>5.4.0</confluence-webdriver-pageobjects.version>
        <confluence-test-utils.version>5.3.0</confluence-test-utils.version>
        <xvfb.enable>false</xvfb.enable>
    </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>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>${maven.release.plugin.version}</version>
                    <configuration>
                        <!--  Fixes OOM issue with javadoc -->
                        <arguments>-Dmaxmemory=512m -DskipTests=true</arguments>
                    </configuration>
                    <dependencies>
                        <!-- Fix for SCM-574 -->
                        <dependency>
                            <groupId>org.apache.maven.scm</groupId>
                            <artifactId>maven-scm-provider-gitexe</artifactId>
                            <version>1.4</version>
                        </dependency>
                    </dependencies>
                </plugin>
            </plugins>
        </pluginManagement>
        <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>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <failOnError>false</failOnError>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
