<?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.servicedesk</groupId>
        <artifactId>servicedesk-tests-parent</artifactId>
        <version>2.5.0-release-test-2</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>jira-servicedesk-it</artifactId>

    <name>Service Desk Integration Tests</name>
    <description>Atlassian Service Desk Integration Tests</description>
    <packaging>atlassian-plugin</packaging>

    <profiles>

        <profile>
            <id>release</id>
            <!-- This gets run when we are asked to build and deploy ourselves -->
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <!-- ======== FOR DOCUMENTATION ======== see http://confluence.atlassian.com/display/DEVNET/AMPS+Plugin+for+Maven -->
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>

                        <configuration>
                            <!-- amps replaces localhost by the hostname, unless we specify the server here -->
                            <server>localhost</server>
                        </configuration>

                        <executions>
                            <!-- Bring up JIRA in AMPS with HSQL always (we don't have control over the Bamboo Plan to get Postgres started up) -->
                            <!-- But we can control how these tests are executed -->
                            <!-- Previously used AMPS integration test step that would run up JIRA and execute tests, so we modify to run up JIRA ourselves -->
                            <execution>
                                <id>start-jira</id>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <phase>pre-integration-test</phase>
                            </execution>
                            <execution>
                                <id>stop-jira</id>
                                <goals>
                                    <goal>stop</goal>
                                </goals>
                                <phase>post-integration-test</phase>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <configuration>
                            <summaryFile>${project.build.directory}/${sd.release.test.directory}/failsafe-summary.xml
                            </summaryFile>
                            <reportsDirectory>${project.build.directory}/${sd.release.test.directory}</reportsDirectory>
                        </configuration>
                        <executions>
                            <execution>
                                <id>run_release_tests_failsafe</id>
                                <goals>
                                    <goal>integration-test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <includes>
                                        <!-- webdriver suite to run last -->
                                        <include>it/com/atlassian/servicedesk/rest/**</include>
                                        <include>it/com/atlassian/servicedesk/webdriver/**</include>
                                    </includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- enable scalatest -->
                    <plugin>
                        <groupId>org.scalatest</groupId>
                        <artifactId>scalatest-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run_release_tests_scalatest</id>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <wildcardSuites>
                                        it.com.atlassian.servicedesk.rest,it.com.atlassian.servicedesk.webdriver
                                    </wildcardSuites>
                                    <tagsToExclude>com.atlassian.servicedesk.RenaissanceTag</tagsToExclude>
                                    <reportsDirectory>${project.build.directory}/${sd.release.test.directory}
                                    </reportsDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <properties>
                <xvfb.enable>true</xvfb.enable>
                <atlassian.dev.mode>false</atlassian.dev.mode>
                <sd.release.test.directory>group-service-desk-release-tests/surefire-reports</sd.release.test.directory>
            </properties>
        </profile>

        <profile>
            <!-- This must be listed before the other CI & TPM test execution profiles here -->
            <id>ci</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <!-- ======== FOR DOCUMENTATION ======== see http://confluence.atlassian.com/display/DEVNET/AMPS+Plugin+for+Maven -->
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>start-jira</id>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <phase>pre-integration-test</phase>
                            </execution>
                            <execution>
                                <id>stop-jira</id>
                                <goals>
                                    <goal>stop</goal>
                                </goals>
                                <phase>post-integration-test</phase>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <executions>
                            <execution>
                                <!-- make sure this execution is defined before ci-webdriver so that we run this first ALWAYS -->
                                <id>db_setup_database_tests</id>
                                <goals>
                                    <goal>integration-test</goal>
                                    <goal>verify</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <failIfNoTests>true</failIfNoTests>
                                    <includes>
                                        <include>it/com/atlassian/dbsetup/**</include>
                                    </includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.scalatest</groupId>
                            <artifactId>scalatest-maven-plugin</artifactId>
                            <configuration></configuration>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>

        <profile>
            <!-- Defines the location of Service Desk dependencies at the location where Bamboo places them -->
            <id>ci-deps</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>jira-servicedesk</artifactId>
                    <version>${project.version}</version>
                    <scope>system</scope>
                    <systemPath>${artifactDir}/jira-servicedesk-${project.version}.jar</systemPath>
                </dependency>
                <dependency>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>servicedesk-testutils-plugin</artifactId>
                    <version>${project.version}</version>
                    <scope>system</scope>
                    <systemPath>${artifactDir}/servicedesk-testutils-plugin-${project.version}.jar</systemPath>
                </dependency>
                <dependency>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>jira-servicedesk-web-test-fixtures</artifactId>
                    <version>${project.version}</version>
                    <scope>system</scope>
                    <systemPath>${artifactDir}/jira-servicedesk-web-test-fixtures-${project.version}.jar</systemPath>
                </dependency>
                <dependency>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>servicedesk-project-ui-plugin</artifactId>
                    <version>${project.version}</version>
                    <scope>system</scope>
                    <systemPath>${artifactDir}/servicedesk-project-ui-plugin-${project.version}.jar</systemPath>
                </dependency>
            </dependencies>
        </profile>

        <profile>
            <id>ci-realdb</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <!-- ======== FOR DOCUMENTATION ======== see http://confluence.atlassian.com/display/DEVNET/AMPS+Plugin+for+Maven -->
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <!-- this config only makes sense for a real database, not HSQL -->
                        <configuration>
                            <!-- amps replaces localhost by the hostname, unless we specify the server here -->
                            <server>localhost</server>

                            <productDataPath>${project.build.directory}/new-jira-home.zip</productDataPath>

                            <!-- install the database driver as defined by the profile - hack alert - lib goes into WEB-INF/lib -->
                            <libArtifacts>
                                <libArtifact>
                                    <groupId>${db.artifactGroup}</groupId>
                                    <artifactId>${db.artifactId}</artifactId>
                                    <version>${db.artifactVersion}</version>
                                </libArtifact>
                            </libArtifacts>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>ci-rest-renaissance</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <atlassian.darkfeature.com.atlassian.jira.config.CoreFeatures.LICENSE_ROLES_ENABLED>true</atlassian.darkfeature.com.atlassian.jira.config.CoreFeatures.LICENSE_ROLES_ENABLED>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                    <!-- enable scalatest -->
                    <plugin>
                        <groupId>org.scalatest</groupId>
                        <artifactId>scalatest-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run_renaissance_tests_scalatest</id>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <wildcardSuites>it.com.atlassian.servicedesk.rest</wildcardSuites>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>ci-webdriver-renaissance</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <atlassian.darkfeature.com.atlassian.jira.config.CoreFeatures.LICENSE_ROLES_ENABLED>true</atlassian.darkfeature.com.atlassian.jira.config.CoreFeatures.LICENSE_ROLES_ENABLED>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                    <!-- enable scalatest -->
                    <plugin>
                        <groupId>org.scalatest</groupId>
                        <artifactId>scalatest-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run_renaissance_tests_scalatest</id>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <wildcardSuites>it.com.atlassian.servicedesk.webdriver</wildcardSuites>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>ci-testkit-7</id>
            <properties>
                <testkit.version>7.0.19</testkit.version>
            </properties>
        </profile>

        <profile>
            <id>ci-rest</id>
            <activation>
                <activeByDefault>false</activeByDefault>
                <property>
                    <!-- TPM build is only running rest tests -->
                    <name>tpm</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run_rest_tests_failsafe</id>
                                <goals>
                                    <goal>integration-test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <includes>
                                        <include>it/com/atlassian/servicedesk/rest/**</include>
                                    </includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- enable scalatest -->
                    <plugin>
                        <groupId>org.scalatest</groupId>
                        <artifactId>scalatest-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run_rest_tests_scalatest</id>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <wildcardSuites>it.com.atlassian.servicedesk.rest</wildcardSuites>
                                    <tagsToExclude>com.atlassian.servicedesk.RenaissanceTag</tagsToExclude>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>ci-webdriver</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run_webdriver_tests_failsafe</id>
                                <goals>
                                    <goal>integration-test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <includes>
                                        <include>it/com/atlassian/servicedesk/webdriver/**</include>
                                    </includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- enable scalatest -->
                    <plugin>
                        <groupId>org.scalatest</groupId>
                        <artifactId>scalatest-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run_webdriver_tests_scalatest</id>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <wildcardSuites>it.com.atlassian.servicedesk.webdriver</wildcardSuites>
                                    <tagsToExclude>com.atlassian.servicedesk.RenaissanceTag</tagsToExclude>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>ci-renaissance-ui</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <!-- this config only makes sense for a real database, not HSQL -->
                        <configuration>

                            <systemPropertyVariables>
                                <atlassian.darkfeature.sd.renaissance.project.ui.testing.enabled>true</atlassian.darkfeature.sd.renaissance.project.ui.testing.enabled>
                                <atlassian.darkfeature.sd.renaissance.project.ui.pinnablenavigator.enabled>true</atlassian.darkfeature.sd.renaissance.project.ui.pinnablenavigator.enabled>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                        <!-- enable scalatest -->
                        <plugin>
                            <groupId>org.scalatest</groupId>
                            <artifactId>scalatest-maven-plugin</artifactId>
                            <executions>
                                <execution>
                                    <id>run_webdriver_tests_scalatest</id>
                                    <goals>
                                        <goal>test</goal>
                                    </goals>
                                    <phase>integration-test</phase>
                                    <configuration>
                                        <wildcardSuites>it.com.atlassian.servicedesk.webdriver</wildcardSuites>
                                        <tagsToExclude>com.atlassian.servicedesk.PreRenaissanceTag</tagsToExclude>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <!-- Profile run by the OD acceptance runner when we want to run only the OD acceptance tests -->
            <id>ondemand-acceptance-tests</id>
            <activation>
                <property>
                    <name>ondemand-acceptance-tests</name>
                </property>
            </activation>
            <build>
                <!-- Freezer process delegates to maven with integration-test goal -->
                <!-- However, we don't have too much control over what is happening, so best to ensure these tests are JUnit / Failsafe compatible and run by AMPS -->
                <plugins>
                    <plugin>
                        <!-- ======== FOR DOCUMENTATION ======== see http://confluence.atlassian.com/display/DEVNET/AMPS+Plugin+for+Maven -->
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <configuration>
                            <!-- OnDemand Acceptance testing is run using AMPS, so don't skip the tests -->
                            <skipITs>false</skipITs>
                            <skipTests>false</skipTests>
                            <skipManifestValidation>false</skipManifestValidation>

                            <testGroups>
                                <testGroup>
                                    <id>freezer-acceptance-tests</id>
                                    <productIds>
                                        <productId>jira</productId>
                                    </productIds>
                                    <includes>
                                        <include>it/com/atlassian/servicedesk/acceptance/**</include>
                                    </includes>
                                </testGroup>
                            </testGroups>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>sd-with-confluence-webdriver</id>
            <dependencies>
                <dependency>
                    <groupId>com.atlassian.confluence.plugins</groupId>
                    <artifactId>confluence-scriptsfinished-plugin</artifactId>
                    <version>${confluence.version}</version>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.confluence.plugins</groupId>
                    <artifactId>confluence-functestrpc-plugin</artifactId>
                    <version>${confluence.version}</version>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.confluence.plugins</groupId>
                    <artifactId>confluence-functest-rest-plugin</artifactId>
                    <version>${confluence.version}</version>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-amps-plugin</artifactId>
                        <version>${amps.version}</version>
                        <extensions>true</extensions>
                        <configuration>

                            <!-- Starts the applications in parallel -->
                            <parallel>true</parallel>
                            <enableFastdev>false</enableFastdev>
                            <enableDevToolbox>false</enableDevToolbox>
                            <extractDependencies>false</extractDependencies>

                            <systemPropertyVariables>
                                <!-- Let us use our own log4j properties file to spin up JIRA and run with integration tests -->
                                <!--<log4j.configuration>file:///${project.basedir}/../../plugin/src/test/resources/log4j.properties</log4j.configuration>-->

                                <atlassian.dev.mode>false</atlassian.dev.mode>
                                <atlassian.mail.senddisabled>false</atlassian.mail.senddisabled>
                                <atlassian.mail.fetchdisabled>false</atlassian.mail.fetchdisabled>

                                <!-- By default, we don't like to deal with websudo, it's just an annoyance -->
                                <jira.websudo.is.disabled>true</jira.websudo.is.disabled>
                                <webdriver.browser>${webdriver.browser}</webdriver.browser>

                                <!-- we run on XVFB, since that's the way the build engineers would
                                    like to go, as opposed to VNC server (according to Min'an) -->
                                <xvfb.enable>${xvfb.enable}</xvfb.enable>
                                <confluence.version>5.5-m6</confluence.version>
                            </systemPropertyVariables>

                            <products>
                                <product>
                                    <id>jira</id>
                                    <instanceId>jira</instanceId>
                                    <httpPort>2990</httpPort>
                                    <jvmDebugPort>5034</jvmDebugPort>
                                    <version>${jira.test.version}</version>
                                    <productDataVersion>${jira.data.version}</productDataVersion>
                                    <output>${project.build.directory}/jira.log</output>

                                    <pluginArtifacts>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.jira</groupId>
                                            <artifactId>jira-func-test-plugin</artifactId>
                                            <version>${jira.test.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.jira.tests</groupId>
                                            <artifactId>jira-testkit-plugin</artifactId>
                                            <version>${testkit.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>jira-servicedesk</artifactId>
                                            <version>${project.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.prettyurls</groupId>
                                            <artifactId>atlassian-pretty-urls-plugin</artifactId>
                                            <version>${pretty.url.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.plugins</groupId>
                                            <artifactId>atlassian-chaperone</artifactId>
                                            <version>${chaperone.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.jira</groupId>
                                            <artifactId>jira-issue-nav-components</artifactId>
                                            <version>${issuenav.components.version}</version>
                                        </pluginArtifact>
                                        <pluginArtifact>
                                            <groupId>com.atlassian.plugins</groupId>
                                            <artifactId>atlassian-client-resource</artifactId>
                                            <version>${atlassian.client.resource.version}</version>
                                        </pluginArtifact>
                                        <pluginArtifact>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>servicedesk-testutils-plugin</artifactId>
                                            <version>${project.version}</version>
                                        </pluginArtifact>
                                        <pluginArtifact>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>servicedesk-project-ui-plugin</artifactId>
                                            <version>${project.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.jira.plugins.workflow.sharing</groupId>
                                            <artifactId>jira-workflow-sharing-plugin</artifactId>
                                            <version>${jira.workflow.importer.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.jira.plugins.workinghours</groupId>
                                            <artifactId>jira-workinghours-plugin</artifactId>
                                            <version>${workinghours.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.jira.plugins.workinghours</groupId>
                                            <artifactId>jira-workinghours-spi-test-plugin</artifactId>
                                            <version>${workinghours.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.plugin.timedpromise</groupId>
                                            <artifactId>atlassian-timed-promise-plugin</artifactId>
                                            <version>${timed.promise.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.jira</groupId>
                                            <artifactId>jira-email-processor-plugin</artifactId>
                                            <version>${jira.email.processor.plugin.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>applinks-util-plugin</artifactId>
                                            <version>${project.version}</version>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.servicedesk.plugins.automation</groupId>
                                            <artifactId>servicedesk-automation-modules-plugin</artifactId>
                                        </pluginArtifact>

                                        <pluginArtifact>
                                            <groupId>com.atlassian.pocketknife</groupId>
                                            <artifactId>pocketknife-features-plugin</artifactId>
                                            <version>${pocketknife.features.plugin.version}</version>
                                        </pluginArtifact>
                                    </pluginArtifacts>
                                </product>
                                <product>
                                    <id>confluence</id>
                                    <instanceId>confluence</instanceId>
                                    <httpPort>1990</httpPort>
                                    <jvmDebugPort>5005</jvmDebugPort>
                                    <version>${confluence.version}</version>
                                    <output>${project.build.directory}/confluence.log</output>
                                    <productDataVersion>${confluence.data.version}</productDataVersion>
                                    <pluginArtifacts>
                                        <pluginArtifact>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>applinks-util-plugin</artifactId>
                                            <version>${project.version}</version>
                                        </pluginArtifact>
                                        <pluginArtifact>
                                            <groupId>com.atlassian.confluence.plugins</groupId>
                                            <artifactId>confluence-scriptsfinished-plugin</artifactId>
                                            <version>${confluence.version}</version>
                                        </pluginArtifact>
                                        <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-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>${project.groupId}</groupId>
                                            <artifactId>servicedesk-testutils-plugin</artifactId>
                                            <version>${project.version}</version>
                                        </pluginArtifact>
                                    </pluginArtifacts>
                                </product>
                            </products>
                            <testGroups>
                                <testGroup>
                                    <id>sd-confluence-integration</id>
                                    <productIds>
                                        <productId>jira</productId>
                                        <productId>confluence</productId>
                                    </productIds>
                                    <includes>
                                        <include>it/com/atlassian/servicedesk/confluence/**</include>
                                    </includes>
                                </testGroup>
                            </testGroups>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>ci-sd-with-confluence-webdriver</id>
            <dependencies>
                <dependency>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>applinks-util-plugin</artifactId>
                    <version>${project.version}</version>
                    <scope>system</scope>
                    <systemPath>${artifactDir}/applinks-util-plugin-${project.version}.jar</systemPath>
                </dependency>
            </dependencies>
        </profile>

        <profile>
            <id>hallelujah-client-server</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.scalatest</groupId>
                        <artifactId>scalatest-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run_hallelujah_client_server</id>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <suites>hallelujah.agents.HallelujahServer,hallelujah.agents.HallelujahClient</suites>
                                    <parallel>true</parallel>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!--
            This profile is a combination of 1- ci-renaissance-ui profile 2- ci-webdriver profile 3- Hallelujah setting specific
            Until Hallelujah is stable, and Scala test runner on master is retired
            Need to duplicate the setting
        -->
        <profile>
            <id>hallelujah-client-server-renaissance-ui</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <hallelujah.packagesToTest>it.com.atlassian.servicedesk.webdriver</hallelujah.packagesToTest>
                <!--<hallelujah.tagsToInclude></hallelujah.tagsToInclude>-->
                <hallelujah.tagsToExclude>com.atlassian.servicedesk.PreRenaissanceTag</hallelujah.tagsToExclude>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <atlassian.darkfeature.sd.renaissance.project.ui.testing.enabled>true</atlassian.darkfeature.sd.renaissance.project.ui.testing.enabled>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>hallelujah-client-renaissance-ui</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                    <version>11.0.2-atlassian-01</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <atlassian.darkfeature.sd.renaissance.project.ui.testing.enabled>true</atlassian.darkfeature.sd.renaissance.project.ui.testing.enabled>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.scalatest</groupId>
                        <artifactId>scalatest-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run_hallelujah_client</id>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <suites>hallelujah.agents.HallelujahClient</suites>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>hallelujah-client</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                    <version>11.0.2-atlassian-01</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.scalatest</groupId>
                        <artifactId>scalatest-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run_hallelujah_client</id>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
                                    <suites>hallelujah.agents.HallelujahClient</suites>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-projects-page-objects</artifactId>
            <version>${jira.projects.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>atlassian-confluence-pageobjects</artifactId>
            <version>${confluence.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.atlassian.selenium</groupId>
                    <artifactId>atlassian-webdriver-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-test-support</artifactId>
            <version>${confluence.version}</version>
            <scope>test</scope>
            <exclusions>
                <!-- Use the version provided by JIRA -->
                <exclusion>
                    <groupId>com.atlassian.extras</groupId>
                    <artifactId>atlassian-extras-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.jsoup</groupId>
            <artifactId>jsoup</artifactId>
        </dependency>

        <dependency>
            <groupId>org.scalaz</groupId>
            <artifactId>scalaz-core_${scala.version.base}</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.jsuereth</groupId>
            <artifactId>scala-arm_${scala.version.base}</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-compiler</artifactId>
            <version>${scala.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
            <version>${scala.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
            <version>2.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.joda</groupId>
            <artifactId>joda-convert</artifactId>
            <version>1.1</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.sun.jersey.contribs</groupId>
            <artifactId>jersey-multipart</artifactId>
            <version>${jersey.multipart.version}</version>
            <scope>test</scope>
        </dependency>

        <!-- Unit test dependencies -->
        <dependency>
            <groupId>org.scalatest</groupId>
            <artifactId>scalatest_${scala.version.base}</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>${mockito.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4</artifactId>
            <version>1.5.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-api-mockito</artifactId>
            <version>1.5.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <version>${jira.test.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-core</artifactId>
            <version>${jira.test.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-tests</artifactId>
            <version>${jira.test.version}</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.pocketknife</groupId>
            <artifactId>jira-pocketknife-enablement</artifactId>
            <version>${pocketknife.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.pocketknife</groupId>
            <artifactId>atlassian-pocketknife-api-commons-jira</artifactId>
            <version>${pocketknife.api.commons.version}</version>
            <scope>test</scope>
        </dependency>

        <!-- WebDriver test dependencies -->
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>jira-servicedesk-pageobjects</artifactId>
            <version>${sd.page.objects.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>atlassian-jira-pageobjects</artifactId>
            <version>${jira.test.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>ka-func-test-framework</artifactId>
            <version>${issuenav.components.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.scalenium</groupId>
            <artifactId>atlassian-scalenium</artifactId>
            <version>1.2</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>${guava.version}</version>
            <scope>provided</scope>
        </dependency>

        <!-- Func test dependencies -->
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-func-tests</artifactId>
            <version>${jira.test.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>io.spray</groupId>
            <artifactId>spray-json_${scala.version.base}</artifactId>
            <version>${spray.json.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>io.spray</groupId>
            <artifactId>spray-http_${scala.version.base}</artifactId>
            <version>${spray.http.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.jira.plugins.workinghours</groupId>
            <artifactId>jira-workinghours-rest-client</artifactId>
            <version>${workinghours.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian</groupId>
            <artifactId>atlassian-test-categories</artifactId>
            <version>0.5</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.4</version>
            <scope>test</scope>
        </dependency>


        <!-- SLAT dependencies -->
        <dependency>
            <artifactId>acceptance-data-helper</artifactId>
            <groupId>com.atlassian.test.ondemand</groupId>
            <version>1.0.22</version>
            <scope>test</scope>
        </dependency>

        <!-- Fixtures, JSON models and more -->
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>jira-servicedesk-web-test-fixtures</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.jira.tests</groupId>
            <artifactId>jira-testkit-client</artifactId>
            <version>${testkit.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-simple</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-rest-java-client-core</artifactId>
            <version>${rest.java.client.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-context</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
        </dependency>

        <dependency>
            <groupId>com.atlassian.buildeng.hallelujah</groupId>
            <artifactId>client</artifactId>
            <version>${hallelujah.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.buildeng.hallelujah</groupId>
            <artifactId>server</artifactId>
            <version>${hallelujah.version}</version>
            <scope>test</scope>
        </dependency>


        <dependency>
            <groupId>org.reflections</groupId>
            <artifactId>reflections</artifactId>
            <version>0.9.9-RC1</version>
            <scope>test</scope>
        </dependency>

    </dependencies>

    <build>
        <testResources>
            <testResource>
                <directory>src/test/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/hallelujah.properties</include>
                </includes>
            </testResource>
            <testResource>
                <directory>src/test/resources</directory>
                <filtering>false</filtering>
                <excludes>
                    <exclude>**/hallelujah.properties</exclude>
                </excludes>
            </testResource>
        </testResources>
        <resources>
            <resource>
                <directory>src/test/xml</directory>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>net.alchim31.maven</groupId>
                <artifactId>scala-maven-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-jira-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <jvmArgs>${jira.jvm.args}</jvmArgs>

                    <!-- wait to false, mean AMPS will return from start-jira call and leave instance running -->
                    <wait>false</wait>

                    <!-- instead of product id -->
                    <instanceId>jira</instanceId>

                    <!-- Defining the product version and data version. These configurations control
                        the version which starts when you run jira:run. These do NOT control the
                        version used the integration tests-->
                    <productVersion>${jira.test.version}</productVersion>
                    <productDataVersion>${jira.data.version}</productDataVersion>
                    <enableFastdev>false</enableFastdev>
                    <enableDevToolbox>false</enableDevToolbox>
                    <extractDependencies>false</extractDependencies>

                    <!-- skip the AMPS integration test step -->
                    <skipITs>true</skipITs>
                    <skipTests>true</skipTests>

                    <skipAmpsPomCheck>true</skipAmpsPomCheck>
                    <skipManifestValidation>true</skipManifestValidation>
                    <skipAllPrompts>true</skipAllPrompts>

                    <!--<log4jProperties>src/test/resources/log4j.properties</log4jProperties>-->

                    <products>
                        <product>
                            <id>jira</id>
                            <version>${jira.test.version}</version>
                            <dataVersion>${jira.data.version}</dataVersion>
                        </product>
                    </products>

                    <systemPropertyVariables>
                        <!-- Let us use our own log4j properties file to spin up JIRA and run with integration tests -->
                        <!--<log4j.configuration>file:///${project.basedir}/../../plugin/src/test/resources/log4j.properties</log4j.configuration>-->

                        <atlassian.dev.mode>false</atlassian.dev.mode>
                        <atlassian.mail.senddisabled>false</atlassian.mail.senddisabled>
                        <atlassian.mail.fetchdisabled>false</atlassian.mail.fetchdisabled>

                        <!-- By default, we don't like to deal with websudo, it's just an annoyance -->
                        <jira.websudo.is.disabled>true</jira.websudo.is.disabled>

                        <webdriver.browser>${webdriver.browser}</webdriver.browser>

                        <!-- we run on XVFB, since that's the way the build engineers would
                            like to go, as opposed to VNC server (according to Min'an) -->
                        <xvfb.enable>${xvfb.enable}</xvfb.enable>
                    </systemPropertyVariables>

                    <pluginArtifacts>
                        <!-- Useful for Func / WebDriver tests, in particular provides backdoor resources -->
                        <pluginArtifact>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-func-test-plugin</artifactId>
                            <version>${jira.test.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.jira.tests</groupId>
                            <artifactId>jira-testkit-plugin</artifactId>
                            <version>${testkit.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>jira-servicedesk</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.prettyurls</groupId>
                            <artifactId>atlassian-pretty-urls-plugin</artifactId>
                            <version>${pretty.url.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.plugins</groupId>
                            <artifactId>atlassian-chaperone</artifactId>
                            <version>${chaperone.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-issue-nav-components</artifactId>
                            <version>${issuenav.components.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.plugins</groupId>
                            <artifactId>atlassian-client-resource</artifactId>
                            <version>${atlassian.client.resource.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>servicedesk-testutils-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.servicedesk.plugins.automation</groupId>
                            <artifactId>servicedesk-automation-testutils-plugin</artifactId>
                            <version>${automation.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>servicedesk-project-ui-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.jira.plugins.workflow.sharing</groupId>
                            <artifactId>jira-workflow-sharing-plugin</artifactId>
                            <version>${jira.workflow.importer.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.jira.plugins.workinghours</groupId>
                            <artifactId>jira-workinghours-plugin</artifactId>
                            <version>${workinghours.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.jira.plugins.workinghours</groupId>
                            <artifactId>jira-workinghours-spi-test-plugin</artifactId>
                            <version>${workinghours.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.plugin.timedpromise</groupId>
                            <artifactId>atlassian-timed-promise-plugin</artifactId>
                            <version>${timed.promise.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.servicedesk.plugins.automation</groupId>
                            <artifactId>servicedesk-automation-plugin</artifactId>
                            <version>${automation.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.servicedesk.plugins.automation</groupId>
                            <artifactId>servicedesk-automation-modules-plugin</artifactId>
                            <version>${automation.version}</version>
                        </pluginArtifact>
                        
                        <pluginArtifact>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-email-processor-plugin</artifactId>
                            <version>${jira.email.processor.plugin.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.pocketknife</groupId>
                            <artifactId>pocketknife-features-plugin</artifactId>
                            <version>${pocketknife.features.plugin.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.pocketknife</groupId>
                            <artifactId>atlassian-pocketknife-api-commons-plugin</artifactId>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.servicedesk</groupId>
                            <artifactId>jira-servicedesk-application</artifactId>
                            <version>${servicedesk.application.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-projects-plugin</artifactId>
                            <version>${jira.projects.version}</version>
                        </pluginArtifact>
                        
                        <!--AMPS doesnt support OBR itself yet so we need to put this into play-->
                    </pluginArtifacts>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
                <executions>
                    <execution>
                        <id>test-jar</id>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                        <configuration>
                            <forceCreation>true</forceCreation>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${surefire.version}</version>
                    <configuration>
                        <excludes>
                            <exclude>**/*$*</exclude>
                            <exclude>it/**</exclude>
                        </excludes>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-dispatcher-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <version>${failsafe.version}</version>
                    <configuration>
                        <systemProperties>
                            <xvfb.enable>${xvfb.enable}</xvfb.enable>
                            <atlassian.dev.mode>false</atlassian.dev.mode>
                        </systemProperties>
                        <excludes>
                            <exclude>**/*$*</exclude>
                            <exclude>**/Abstract*</exclude>
                        </excludes>
                    </configuration>
                    <executions>
                        <execution>
                            <goals>
                                <goal>verify</goal>
                            </goals>
                            <phase>verify</phase>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.scalatest</groupId>
                    <artifactId>scalatest-maven-plugin</artifactId>
                    <configuration>
                        <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
                        <junitxml>.</junitxml>
                        <!-- for what the letters in stdout mean http://www.scalatest.org/user_guide/using_the_runner -->
                        <filereports>WDF ScalaTestLog.txt</filereports>
                        <stdout>WDF</stdout>
                        <parallel>false</parallel>
                        <systemProperties>
                            <xvfb.enable>${xvfb.enable}</xvfb.enable>
                            <atlassian.dev.mode>false</atlassian.dev.mode>
                        </systemProperties>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <properties>
        <confluence.data.version>5.6.6</confluence.data.version>
        <generated-src>${project.build.directory}/generated-src</generated-src>
        <pretty.url.version>1.8</pretty.url.version>
        <jsr305.version>1.3.9</jsr305.version>
        <atl.soy.version>1.1.3</atl.soy.version>
        <atl.lf.version>1.2</atl.lf.version>
        <vp.qa.data>src/test/resources/vp-qa-data.zip</vp.qa.data>
        <jrebel.agent><!-- see jrebel profile to enable --></jrebel.agent>
        <jvmargs><!-- placeholeder for -jvmargs param from atlas-debug  --></jvmargs>
        <artifactDir>${project.basedir}/../../passed-artifacts</artifactDir>
        <webdriver.browser>firefox</webdriver.browser>
        <hallelujah.queueId>sdTests</hallelujah.queueId>
        <hallelujah.tagsToInclude></hallelujah.tagsToInclude>
        <hallelujah.tagsToExclude>com.atlassian.servicedesk.RenaissanceTag</hallelujah.tagsToExclude>
        <hallelujah.packagesToTest>it.com.atlassian.servicedesk.rest,it.com.atlassian.servicedesk.webdriver</hallelujah.packagesToTest>
        <od.testing.configuration>
            use-maven,3.2
            use-java,7
            set-categories,on-trigger="com.atlassian.confluence:.*webapp",categories="it.com.atlassian.servicedesk.acceptance.categories.AgainstConfluenceSuiteTest"
            set-categories,on-trigger="com.atlassian.crowd:user-provisioning-plugin",categories="it.com.atlassian.servicedesk.acceptance.categories.AgainstUMSuiteTest"
            set-categories,on-trigger="com.atlassian.crowd:horde-web-app",categories="it.com.atlassian.servicedesk.acceptance.categories.AgainstHordeSuiteTest"
        </od.testing.configuration>

    </properties>

</project>
