<?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.8</version>
    </parent>

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

    <name>Page Properties Macros</name>
    <description>Macros to store some page properties in pages, then display them in a tabular view
        elsewhere.
    </description>
    <url>https://bitbucket.org/atlassian/confluence-masterdetail-plugin</url>

    <modules>
        <module>plugin</module>
        <module>integration-tests</module>
    </modules>

    <scm>
        <connection>scm:git:ssh://git@bitbucket.org/atlassian/confluence-masterdetail-plugin.git</connection>
        <developerConnection>scm:git:ssh://git@bitbucket.org/atlassian/confluence-masterdetail-plugin.git</developerConnection>
        <tag>confluence-masterdetail-plugin-parent-5.1.1</tag>
    </scm>

    <properties>
        <atlassian.plugin.key>confluence.extra.masterdetail</atlassian.plugin.key>
        <confluence.version>6.5.1</confluence.version>
        <atlassian.product.version>${confluence.version}</atlassian.product.version>
        <atlassian.product.data.version>${confluence.version}</atlassian.product.data.version>
        <atlassian.dev.mode>false</atlassian.dev.mode>
        <confluence-webdriver-pageobjects.version>5.8.4</confluence-webdriver-pageobjects.version>
        <amps.version>6.3.10</amps.version>
        <version.override.set>maven-failsafe-plugin</version.override.set>
        <surefire.version>2.20.1</surefire.version>
        <flaky.test.reporter.version>2.0.0</flaky.test.reporter.version>
        <confluence-software-blueprints.version>4.1.0</confluence-software-blueprints.version>

        <jvm.args.custom />
        <jvm.args.xmx>1024m</jvm.args.xmx>
        <jvm.args>-Xmx${jvm.args.xmx} ${jvm.args.custom}</jvm.args>
    </properties>

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

    <build>
        <plugins>
            <!-- override the enforcer plugin so that we can do the release dance against a milestone of confluence
            This will be removed when Confluence 6.1.4 is released and the confluence.version property is updated to 6.1.4 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>ban-milestones-and-release-candidates</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <banVersionDeps>
                                    <excludes>
                                        <exclude>com.atlassian.confluence:*</exclude>
                                    </excludes>
                                </banVersionDeps>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
