<?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/maven-v4_0_0.xsd">

    <parent>
        <groupId>com.atlassian.pom</groupId>
        <artifactId>closedsource-pom</artifactId>
        <version>5.0.13</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.atlassian.plugins</groupId>
    <artifactId>atlassian-nps-plugin</artifactId>
    <version>3.1.35</version>

    <organization>
        <name>Atlassian</name>
        <url>http://www.atlassian.com/</url>
    </organization>

    <name>Atlassian Net Promoter Score</name>
    <description>Gathers Net Promoter Score data from Atlassian users</description>
    <packaging>atlassian-plugin</packaging>

    <scm>
        <connection>scm:git:ssh://git@stash.atlassian.com:7997/cp/atlassian-nps-plugin.git</connection>
        <developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/cp/atlassian-nps-plugin.git</developerConnection>
        <tag>atlassian-nps-plugin-3.1.35</tag>
    </scm>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.6.4</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-stateless-test-runner</artifactId>
            <version>1.0.24</version>
            <scope>test</scope>
            <!-- Remove this exclusion when stateless-test-runner excludes this dependency -->
            <exclusions>
                <exclusion>
                    <groupId>org.sonatype.sisu</groupId>
                    <artifactId>sisu-guice</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.jayway.awaitility</groupId>
            <artifactId>awaitility</artifactId>
            <version>1.7.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.jayway.restassured</groupId>
            <artifactId>rest-assured</artifactId>
            <version>2.9.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-test-support</artifactId>
            <version>${confluence.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-functestrpc-plugin</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-functest-rest-plugin</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-scriptsfinished-plugin</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.fisheye</groupId>
            <artifactId>atlassian-fisheye-api</artifactId>
            <version>${fecru.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
            <version>${sal.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
            <version>${plugin.testrunner.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.selenium</groupId>
            <artifactId>atlassian-pageobjects-api</artifactId>
            <version>${atlassian.selenium.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.selenium</groupId>
            <artifactId>atlassian-pageobjects-elements</artifactId>
            <version>${atlassian.selenium.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.selenium</groupId>
            <artifactId>atlassian-webdriver-core</artifactId>
            <version>${atlassian.selenium.version}</version>
            <scope>test</scope>
            <exclusions>
                <!-- we'll use a different profile version - see dependency below -->
                <exclusion>
                    <groupId>com.atlassian.browsers</groupId>
                    <artifactId>firefox-profile</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.browsers</groupId>
            <artifactId>firefox-profile</artifactId>
            <version>${firefox.profile.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.upm</groupId>
            <artifactId>upm-api</artifactId>
            <version>2.9.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>1.1.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <version>2.9.6</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.3.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian</groupId>
            <artifactId>atlassian-test-categories</artifactId>
            <version>0.5</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.json</groupId>
            <artifactId>atlassian-json-api</artifactId>
            <version>0.11</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>atlassian-jira-pageobjects</artifactId>
            <version>${jira.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <artifactId>nekohtml</artifactId>
                    <groupId>nekohtml</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>net.sourceforge.nekohtml</groupId>
            <artifactId>nekohtml</artifactId>
            <version>1.9.17</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webresource-api</artifactId>
            <version>3.4.9</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.framework</artifactId>
            <version>3.2.2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.servicedesk</groupId>
            <artifactId>jira-servicedesk-pageobjects</artifactId>
            <version>${servicedesk.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.analytics</groupId>
            <artifactId>analytics-client-backdoor</artifactId>
            <version>3.61.2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.fecru</groupId>
            <artifactId>fecru-pages</artifactId>
            <version>${fecru.version}</version>
            <scope>test</scope>
        </dependency>

        <!--Bitbucket-->
        <dependency>
            <groupId>com.atlassian.bitbucket.server</groupId>
            <artifactId>bitbucket-service-api</artifactId>
            <version>${bitbucket.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bitbucket.server</groupId>
            <artifactId>bitbucket-api</artifactId>
            <version>${bitbucket.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bitbucket.server</groupId>
            <artifactId>bitbucket-page-objects</artifactId>
            <version>${bitbucket.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bitbucket.server</groupId>
            <artifactId>bitbucket-it-common</artifactId>
            <version>${bitbucket.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bundles</groupId>
            <artifactId>google-collections</artifactId>
            <version>1.0</version>
            <scope>test</scope>
        </dependency>

        <!-- Bamboo -->
        <dependency>
            <groupId>com.atlassian.bamboo</groupId>
            <artifactId>atlassian-bamboo-api</artifactId>
            <version>${bamboo.version}</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.atlassian.aws</groupId>
                    <artifactId>atlassian-aws</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bamboo</groupId>
            <artifactId>atlassian-bamboo-pageobjects</artifactId>
            <version>${bamboo.version}</version>
            <scope>test</scope>
            <exclusions>
                <!-- Enforce newest version of Atlassian WebDriver -->
                <exclusion>
                    <groupId>com.atlassian.selenium</groupId>
                    <artifactId>atlassian-pageobjects-elements</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.rest-assured</groupId>
                    <artifactId>rest-assured</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.atlassian.stash</groupId>
                    <artifactId>stash-page-objects</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bamboo.plugins</groupId>
            <artifactId>atlassian-bamboo-plugin-test-utils</artifactId>
            <version>${bamboo.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>io.rest-assured</groupId>
                    <artifactId>rest-assured</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- JIRA -->
        <dependency>
            <groupId>com.atlassian.jira.tests</groupId>
            <artifactId>jira-testkit-plugin</artifactId>
            <version>7.0.97</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.servicedesk</groupId>
            <artifactId>servicedesk-testutils-plugin</artifactId>
            <version>3.1.0</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-annotations</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-func-tests</artifactId>
            <version>${jira.version}</version>
            <scope>test</scope>
        </dependency>

        <!-- CROWD -->
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-server-api</artifactId>
            <version>${crowd.version}</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-pageobjects</artifactId>
            <version>${crowd.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-rest-test</artifactId>
            <version>${crowd.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient</artifactId>
                <version>4.4.1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpcore</artifactId>
                <version>4.4.1</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                        <configuration>
                            <forceCreation>true</forceCreation>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-build-environment</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
                                    <!-- This value is read, and used by mvnvm -->
                                    <version>3.0.5</version>
                                </requireMavenVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-amps-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <enableFastdev>false</enableFastdev>
                    <extractDependencies>false</extractDependencies>
                    <skipManifestValidation>true</skipManifestValidation>
                    <products>
                        <product>
                            <id>jira</id>
                            <version>${jira.version}</version>
                            <productDataVersion>${jira.version}</productDataVersion>
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.tests</groupId>
                                    <artifactId>jira-testkit-plugin</artifactId>
                                    <version>${jira.testkit.version}</version>
                                </pluginArtifact>
                            </pluginArtifacts>
                            <systemPropertyVariables>
                                <xvfb.enable>${xvfb.enable}</xvfb.enable>
                                <xvfb.display>${xvfb.display}</xvfb.display>
                            </systemPropertyVariables>
                            <applications>
                                <application>
                                    <applicationKey>jira-servicedesk</applicationKey>
                                    <version>${servicedesk.version}</version>
                                </application>
                            </applications>
                        </product>
                        <product>
                            <id>confluence</id>
                            <version>${confluence.version}</version>
                            <productDataVersion>${confluence.data.version}</productDataVersion>
                            <containerId>tomcat7x</containerId>
                            <systemPropertyVariables>
                                <confluence.version>${confluence.version}</confluence.version> <!-- system property required by Functest RPC plugin -->
                                <xvfb.enable>${xvfb.enable}</xvfb.enable>
                                <xvfb.display>${xvfb.display}</xvfb.display>
                                <http.port>${http.confluence.port}</http.port>
                                <baseurl.confluence>${baseurl.confluence}</baseurl.confluence>
                                <context.path>${context.confluence.path}</context.path>
                                <atlassian.darkfeature.dashboard.onboarding.disabled>true</atlassian.darkfeature.dashboard.onboarding.disabled>
                            </systemPropertyVariables>

                            <!-- Needed for Stateless Test Runner -->
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.confluence.plugins</groupId>
                                    <artifactId>confluence-functestrpc-plugin</artifactId>
                                    <version>${confluence.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.confluence.plugins</groupId>
                                    <artifactId>confluence-functest-rest-plugin</artifactId>
                                    <version>${confluence.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.confluence.plugins</groupId>
                                    <artifactId>confluence-scriptsfinished-plugin</artifactId>
                                    <version>${confluence.version}</version>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </product>
                        <product>
                            <id>fecru</id>
                            <version>${fecru.version}</version>
                            <productDataVersion>${fecru.version}</productDataVersion>
                            <systemPropertyVariables>
                                <xvfb.enable>${xvfb.enable}</xvfb.enable>
                                <xvfb.display>${xvfb.display}</xvfb.display>
                            </systemPropertyVariables>
                        </product>
                        <product>
                            <id>bamboo</id>
                            <version>${bamboo.version}</version>
                            <productDataVersion>${bamboo.version}</productDataVersion>
                            <containerId>tomcat8x</containerId>
                            <systemPropertyVariables>
                                <xvfb.enable>${xvfb.enable}</xvfb.enable>
                                <xvfb.display>${xvfb.display}</xvfb.display>
                                <baseurl.bamboo>${baseurl.bamboo}</baseurl.bamboo>
                                <http.port>${http.bamboo.port}</http.port>
                                <context.path>${context.bamboo.path}</context.path>
                            </systemPropertyVariables>
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.bamboo.plugins</groupId>
                                    <artifactId>atlassian-bamboo-plugin-test-utils</artifactId>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </product>
                        <product>
                            <id>bitbucket</id>
                            <version>${bitbucket.version}</version>
                            <productDataVersion>${bitbucket.data.version}</productDataVersion>
                            <httpPort>${http.bitbucket.port}</httpPort>
                            <systemPropertyVariables>
                                <bitbucket.version>${bitbucket.version}</bitbucket.version> <!-- system property required by Functest RPC plugin -->
                                <xvfb.enable>${xvfb.enable}</xvfb.enable>
                                <xvfb.display>${xvfb.display}</xvfb.display>
                                <context.path>${context.bitbucket.path}</context.path>
                                <johnson.spring.lifecycle.synchronousStartup>true</johnson.spring.lifecycle.synchronousStartup>
                            </systemPropertyVariables>

                            <!-- Needed for Stateless Test Runner -->
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-chaperone</artifactId>
                                    <version>${chaperone.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-client-resource</artifactId>
                                    <version>${atlassian.client.resource.version}</version>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </product>
                        <product>
                            <id>crowd</id>
                            <containerId>tomcat7x</containerId>
                            <version>${crowd.version}</version>
                            <productDataVersion>${crowd.version}</productDataVersion>
                            <httpPort>${http.crowd.port}</httpPort>
                        </product>
                    </products>
                    <testGroups>
                        <testGroup>
                            <id>jira-integration</id>
                            <productIds>
                                <productId>jira</productId>
                            </productIds>
                            <includes>
                                <include>it/**/jira/*Test.java</include>
                            </includes>
                        </testGroup>
                        <testGroup>
                            <id>confluence-integration</id>
                            <productIds>
                                <productId>confluence</productId>
                            </productIds>
                            <includes>
                                <include>it/**/confluence/*Test.java</include>
                            </includes>
                        </testGroup>
                        <testGroup>
                            <id>fecru-integration</id>
                            <productIds>
                                <productId>fecru</productId>
                            </productIds>
                            <includes>
                                <include>it/**/fisheye/*Test.java</include>
                            </includes>
                        </testGroup>
                        <testGroup>
                            <id>bitbucket-integration</id>
                            <productIds>
                                <productId>bitbucket</productId>
                            </productIds>
                            <includes>
                                <include>it/**/bitbucket/*Test.java</include>
                            </includes>
                        </testGroup>
                        <testGroup>
                            <id>bamboo-integration</id>
                            <productIds>
                                <productId>bamboo</productId>
                            </productIds>
                            <includes>
                                <include>it/**/bamboo/*Test.java</include>
                            </includes>
                        </testGroup>
                        <testGroup>
                            <id>crowd-integration</id>
                            <productIds>
                                <productId>crowd</productId>
                            </productIds>
                            <includes>
                                <include>it/**/crowd/*Test.java</include>
                            </includes>
                        </testGroup>
                    </testGroups>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <testExcludes>
                        <testExclude>${test.compile.excludes.1}</testExclude>
                        <testExclude>${test.compile.excludes.2}</testExclude>
                        <testExclude>${test.compile.excludes.3}</testExclude>
                        <testExclude>${test.compile.excludes.4}</testExclude>
                        <testExclude>${test.compile.excludes.5}</testExclude>
                        <testExclude>${test.compile.excludes.6}</testExclude>
                    </testExcludes>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.16</version>
                <configuration>
                    <!-- Ignoring integration tests on test phase so they just run in integration-test phase.-->
                    <!-- This configuration is necessary when using AMPS together with a parent POM.-->
                    <excludes>
                        <exclude>${functional.test.pattern}</exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>ondemand-acceptance-tests</id>
            <properties>
                <functional.test.pattern>GARBAGE</functional.test.pattern>
                <indra.baseurl>${http.jira.url}</indra.baseurl>
                <ldapMode>EXTERNAL_CROWD</ldapMode>
                <baseurl.crowd>${http.confluence.url}/plugins/servlet/crowdproxy</baseurl.crowd>
                <!-- This crowd credentials hardcoded here is a workaround for https://jira.atlassian.com/browse/CONFDEV-24624 -->
                <!--<crowd.user>jira</crowd.user>-->
                <!--<crowd.password>foobar</crowd.password>-->
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <version>2.12.4</version>
                        <configuration>
                            <systemPropertyVariables>
                                <indra.baseurl>${indra.baseurl}</indra.baseurl>
                                <ldapMode>${ldapMode}</ldapMode>
                                <baseurl.crowd>${baseurl.crowd}</baseurl.crowd>
                                <!--<crowd.user>${crowd.user}</crowd.user>-->
                                <!--<crowd.password>${crowd.password}</crowd.password>-->
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <!-- skip ITs -->
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-amps-plugin</artifactId>
                        <version>${amps.version}</version>
                        <configuration>
                            <skipITs>true</skipITs>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <!-- Profile for Karma unit testing. Skips all other tests -->
            <id>karma</id>
            <dependencies>
                <dependency>
                    <groupId>com.atlassian.soy</groupId>
                    <artifactId>soy-template-plugin</artifactId>
                    <version>${soy.template.version}</version>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.plugin</groupId>
                    <artifactId>jslibs</artifactId>
                    <version>${atlassian.jslibs.version}</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <!-- Install npm modules first -->
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <version>1.2.1</version>
                        <executions>
                            <execution>
                                <id>install-npm-modules</id>
                                <phase>generate-test-sources</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <executable>npm</executable>
                            <arguments>
                                <argument>install</argument>
                            </arguments>
                        </configuration>
                    </plugin>
                    <plugin>
                        <!-- Extract AUI for use in tests -->
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>extract-qunit-dependencies</id>
                                <phase>generate-test-resources</phase>
                                <goals>
                                    <goal>unpack-dependencies</goal>
                                </goals>
                                <configuration>
                                    <outputDirectory>${project.build.directory}/qunit/dependencies</outputDirectory>
                                    <includeGroupIds>com.atlassian.soy,com.atlassian.plugin</includeGroupIds>
                                    <includeArtifactIds>soy-template-plugin,jslibs</includeArtifactIds>
                                    <includes>**/js/*-min.js,**/skate-0.12.6-min.js</includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <!-- Run the karma tests during test phase -->
                        <groupId>com.kelveden</groupId>
                        <artifactId>maven-karma-plugin</artifactId>
                        <version>1.8</version>
                        <executions>
                            <execution>
                                <id>run-karma-tests-confluence</id>
                                <goals>
                                    <goal>start</goal>
                                </goals>
                                <configuration>
                                    <configFile>karma.conf.confluence.js</configFile>
                                    <!-- Use Phantom for the automated build because I couldn't get Chrome to work on a Bamboo agent -->
                                    <browsers>PhantomJS</browsers>
                                    <karmaExecutable>node_modules/karma/bin/karma</karmaExecutable>
                                </configuration>
                            </execution>
                            <execution>
                                <id>run-karma-tests-jira</id>
                                <goals>
                                    <goal>start</goal>
                                </goals>
                                <configuration>
                                    <configFile>karma.conf.jira.js</configFile>
                                    <!-- Use Phantom for the automated build because I couldn't get Chrome to work on a Bamboo agent -->
                                    <browsers>PhantomJS</browsers>
                                    <karmaExecutable>node_modules/karma/bin/karma</karmaExecutable>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>soy-to-js-maven-plugin</artifactId>
                        <version>1.8</version>
                        <dependencies>
                            <dependency>
                                <groupId>com.atlassian.confluence</groupId>
                                <artifactId>confluence-karma-testrunner-support</artifactId>
                                <version>0.0.6</version>
                            </dependency>
                        </dependencies>
                        <executions>
                            <execution>
                                <id>generate-js-from-soy</id>
                                <phase>generate-test-resources</phase>
                                <goals>
                                    <goal>compile</goal>
                                </goals>
                                <configuration>
                                    <module>com.atlassian.confluence.test.support.karma.CustomFunctionTransformModule</module>
                                    <outputDirectory>${project.build.directory}/qunit/soy</outputDirectory>
                                    <resources>
                                        <directory>${project.basedir}/src/main/resources/soy</directory>
                                        <includes>
                                            <include>**/*.soy</include>
                                        </includes>
                                    </resources>
                                    <propertiesFile>${project.basedir}/src/main/resources/atlassian-nps-plugin.properties</propertiesFile>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                    <!-- skip ITs -->
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-amps-plugin</artifactId>
                        <version>${amps.version}</version>
                        <configuration>
                            <skipITs>true</skipITs>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
            <properties>
                <!-- Skips unit tests -->
                <maven.test.unit.skip>true</maven.test.unit.skip>
            </properties>
        </profile>
    </profiles>

    <properties>
        <confluence.version>6.0.0-m37</confluence.version>
        <confluence.data.version>${confluence.version}</confluence.data.version>
        <bitbucket.version>4.10.0</bitbucket.version>
        <bitbucket.data.version>${bitbucket.version}</bitbucket.data.version>
        <jira.version>7.1.0</jira.version>
        <fecru.version>4.1.1-20160708100607</fecru.version>
        <crowd.version>2.10.0-m06.1</crowd.version>
        <http.crowd.port>8095</http.crowd.port>
        <bamboo.version>5.15.0-m123</bamboo.version>
        <rest.version>2.9.5</rest.version>
        <od.testing.configuration>
            use-maven,3
        </od.testing.configuration>
        <!-- Build -->
        <amps.version>6.3.0-fef7990</amps.version>
        <sal.version>3.0.3</sal.version>
        <maven.javadoc.skip>true</maven.javadoc.skip>
        <build.helper.maven.plugin.version>1.8</build.helper.maven.plugin.version>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
        <xvfb.enable>true</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>
        <http.bitbucket.port>7990</http.bitbucket.port>
        <context.bitbucket.path>bitbucket</context.bitbucket.path>
        <baseurl.bitbucket>http://localhost:${http.bitbucket.port}/${context.bitbucket.path}</baseurl.bitbucket>
        <context.bamboo.path>bamboo</context.bamboo.path>
        <baseurl.bamboo>http://localhost:${http.bamboo.port}/${context.bamboo.path}</baseurl.bamboo>
        <http.bamboo.port>6990</http.bamboo.port>
        <plugin.testrunner.version>1.2.0</plugin.testrunner.version>
        <atlassian.selenium.version>2.4.0</atlassian.selenium.version>
        <!-- FireFox profile version should be kept in sync with Atlassian Selenium version -->
        <firefox.profile.version>44.0-nofirebug</firefox.profile.version>
        <soy.template.version>2.7.1</soy.template.version>
        <atlassian.jslibs.version>0.7.0</atlassian.jslibs.version>
        <functional.test.pattern>it/**/*</functional.test.pattern>
        <jira.testkit.version>7.2.0</jira.testkit.version>
        <servicedesk.version>3.1.0</servicedesk.version>
        <pocketknife.features.plugin.version>0.5.1</pocketknife.features.plugin.version>
        <pocketknife.api.commons.version>0.21.0</pocketknife.api.commons.version>
        <jira.email.processor.plugin.version>1.0.36</jira.email.processor.plugin.version>
        <chaperone.version>2.0.4</chaperone.version>
        <atlassian.client.resource.version>1.2.4</atlassian.client.resource.version>
        <workinghours.version>1.5.10</workinghours.version>
        <failOnMilestoneOrReleaseCandidateDeps>false</failOnMilestoneOrReleaseCandidateDeps>

        <test.compile.excludes.1>NOTHING</test.compile.excludes.1>
        <test.compile.excludes.2>NOTHING</test.compile.excludes.2>
        <test.compile.excludes.3>NOTHING</test.compile.excludes.3>
        <test.compile.excludes.4>NOTHING</test.compile.excludes.4>
        <test.compile.excludes.5>NOTHING</test.compile.excludes.5>
        <test.compile.excludes.6>NOTHING</test.compile.excludes.6>
    </properties>

</project>
