<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">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.atlassian.jira.plugins</groupId>
        <artifactId>jira-development-status-parent</artifactId>
        <version>3.3.14-D20150922T050242</version>
    </parent>
    <artifactId>jira-development-integration-plugin</artifactId>
    <name>Atlassian JIRA - Plugins - Development Integration Plugin</name>
    <description>Provides better integration for Development Projects In JIRA</description>
    <packaging>atlassian-plugin</packaging>
    <build>
        <testResources>
            <testResource>
                <directory>src/test/resources</directory>
                <includes>
                    <include>localtest.properties</include>
                    <include>**/ctk/**</include>
                    <include>**/contracts/**</include>
                    <include>com/**</include>
                </includes>
                <filtering>true</filtering>
            </testResource>
            <testResource>
                <directory>src/test/resources/xml</directory>
                <targetPath>xml</targetPath>
            </testResource>
            <testResource>
                <directory>src/test/resources</directory>
                <includes>
                    <include>**/**.zip</include>
                </includes>
            </testResource>
            <testResource>
                <directory>src/test/xml</directory>
            </testResource>
        </testResources>
        <plugins>
            <!-- Build test JAR for AT/SLAT execution -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                        <configuration>
                            <forceCreation>true</forceCreation>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.twdata.maven</groupId>
                <artifactId>maven-cli-plugin</artifactId>
                <version>1.0.10</version>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.8</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <includes>
                        <include>com/atlassian/jira/plugin/devstatus/**/*.java</include>
                    </includes>
                    <excludes>
                        <exclude>**/*$*</exclude>
                        <exclude>**/*.sql</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-jira-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <applications>
                        <application>
                            <applicationKey>jira-software</applicationKey>
                            <version>${jira.software.application.version}</version>
                        </application>
                    </applications>
                    <containerId>tomcat7x</containerId>
                    <enableDevToolbox>false</enableDevToolbox>
                    <enableFastdev>false</enableFastdev>
                    <systemPropertyVariables>
                        <atlassian.dev.mode>${jira.devmode}</atlassian.dev.mode>
                        <atlassian.mail.fetchdisabled>true</atlassian.mail.fetchdisabled>
                        <atlassian.mail.senddisabled>false</atlassian.mail.senddisabled>
                        <jira.qunit.testoutput.location>${project.build.directory}/surefire-reports</jira.qunit.testoutput.location>
                        <jira.websudo.is.disabled>true</jira.websudo.is.disabled>
                        <jira.autoexport>false</jira.autoexport>
                        <user.timezone>Australia/Brisbane</user.timezone>
                        <xvfb.display>${xvfb.display}</xvfb.display>
                        <xvfb.enable>${xvfb.enable}</xvfb.enable>

                        <atlassian.darkfeature.jira.plugin.devstatus.smartcommits.dvcs.enabled>true</atlassian.darkfeature.jira.plugin.devstatus.smartcommits.dvcs.enabled>
                        <atlassian.darkfeature.dvcs.connector.smartcommits.disabled>true</atlassian.darkfeature.dvcs.connector.smartcommits.disabled>

                    </systemPropertyVariables>
                    <productVersion>${jira.version}</productVersion>
                    <productDataVersion>${jira.data.version}</productDataVersion>
                    <!-- This test data loads in Renaissance, but Dark Ages still enters setup mode, which is OK -->
                    <productDataPath>${basedir}/src/test/resources/JIRA-build-70102.zip</productDataPath>
                    <skipRestDocGeneration>${skip.javadoc}</skipRestDocGeneration>
                    <pluginArtifacts>
                        <pluginArtifact>
                            <groupId>com.atlassian.qunit</groupId>
                            <artifactId>atlassian-qunit-plugin</artifactId>
                            <version>${atlassian.qunit.plugin.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.plugins</groupId>
                            <artifactId>atlassian-it-contract-plugin</artifactId>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.plugins</groupId>
                            <artifactId>jira-greenhopper-plugin</artifactId>
                            <version>${agile.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.applinks</groupId>
                            <artifactId>applinks-tests</artifactId>
                            <version>${applinks.tests.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.tests</groupId>
                            <artifactId>jira-testkit-plugin</artifactId>
                            <version>${testkit.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-func-test-plugin</artifactId>
                            <version>${jira.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.plugins</groupId>
                            <artifactId>jira-development-status-contract-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.plugins</groupId>
                            <artifactId>jira-transition-triggers-plugin</artifactId>
                            <version>${trigger.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.plugins</groupId>
                            <artifactId>jira-dvcs-connector-plugin</artifactId>
                            <version>${dvcs.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.plugins</groupId>
                            <artifactId>atlassian-remote-event-common-plugin</artifactId>
                            <version>${remote.events.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.plugins</groupId>
                            <artifactId>atlassian-remote-event-consumer-plugin</artifactId>
                            <version>${remote.events.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.plugins</groupId>
                            <artifactId>jira-bamboo-plugin</artifactId>
                            <version>${jira.bamboo.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-projects-plugin</artifactId>
                            <version>${jira.projects.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.plugins</groupId>
                            <artifactId>jira-software-plugin</artifactId>
                            <version>${jira.software.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.plugins</groupId>
                            <artifactId>jira-development-integration-testkit</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                    <instructions>
                        <Private-Package>
                            com.atlassian.jira.plugin.devstatus.impl*,
                            com.atlassian.jira.plugin.devstatus.rest*,
                            com.atlassian.jira.plugin.devstatus.web*,
                        </Private-Package>
                        <!-- also exporting atlassian-dev-status-spi -->
                        <Export-Package>
                            com.atlassian.jira.plugin.devstatus.api*,
                            com.atlassian.devstatus,
                            com.atlassian.devstatus.build,
                            com.atlassian.devstatus.vcs,
                            com.atlassian.jira.plugin.devstatus.triggers,
                            com.atlassian.jira.plugin.devstatus.smartcommits,
                            com.atlassian.jira.plugin.devstatus.smartcommits.*
                        </Export-Package>
                        <Import-Package>
                            com.atlassian.jira.software.api.conditions,
                            com.atlassian.jira.plugin.ext.bamboo.service,
                            com.atlassian.jira.plugins.dvcs.service.api,
                            com.atlassian.jira.plugins.dvcs.model,
                            com.atlassian.jira.projects.api.service,
                            com.atlassian.jira.projects.darkfeature,
                            com.atlassian.plugin.osgi.bridge.external,
                            com.atlassian.scheduler,
                            com.atlassian.scheduler.config,
                            com.atlassian.scheduler.status,
                            javax.annotation,
                            *;resolution:=optional
                        </Import-Package>
                        <Spring-Context>*</Spring-Context>
                        <Atlassian-Plugin-Key>${project.groupId}.${project.artifactId}</Atlassian-Plugin-Key>
                        <Atlassian-Scan-Folders>META-INF/plugin-descriptor</Atlassian-Scan-Folders>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.lesscss</groupId>
                <artifactId>lesscss-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>compile-less</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                <version>${spring.scanner.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>atlassian-spring-scanner</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
                <configuration>
                    <scannedDependencies>
                        <dependency>
                            <groupId>com.atlassian.pocketknife</groupId>
                            <artifactId>atlassian-pocketknife-querydsl</artifactId>
                        </dependency>
                        <dependency>
                            <groupId>com.atlassian.jira.plugins</groupId>
                            <artifactId>jira-software-conditions-factory</artifactId>
                        </dependency>
                    </scannedDependencies>
                    <verbose>false</verbose>
                </configuration>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/*.xml</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
                <excludes>
                    <exclude>**/*.xml</exclude>
                </excludes>
            </resource>
        </resources>
    </build>
    <dependencies>
        <!-- API (gets inlined into the plugin JAR) -->
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-development-status-api</artifactId>
        </dependency>

        <!-- QueryDSL -->
        <dependency>
            <groupId>com.atlassian.pocketknife</groupId>
            <artifactId>atlassian-pocketknife-querydsl</artifactId>
        </dependency>
        <dependency>
            <groupId>com.mysema.querydsl</groupId>
            <artifactId>querydsl-sql</artifactId>
        </dependency>
        <!--JIRA-->
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-core</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.fusion</groupId>
            <artifactId>fusion-schema-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-projects-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Sidebar -->
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-projects-plugin</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- used by optional service accessors -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <scope>provided</scope>
        </dependency>

        <!--JIRA bundled plugins-->
        <dependency>
            <groupId>com.atlassian.prettyurls</groupId>
            <artifactId>atlassian-pretty-urls-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-rest-plugin</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-dvcs-connector-plugin</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-dvcs-connector-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-transition-triggers-plugin</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-dev-status-api</artifactId>
            <version>${atlassian.dev.status.version}</version>
        </dependency>

        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-remote-event-api</artifactId>
            <version>${remote.events.version}</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-bamboo-plugin</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Active Objects -->
        <dependency>
            <groupId>com.atlassian.activeobjects</groupId>
            <artifactId>activeobjects-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.activeobjects</groupId>
            <artifactId>activeobjects-test</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-software-api</artifactId>
            <version>${jira.software.version}</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-software-conditions-factory</artifactId>
        </dependency>

        <!--Atlassian-->
        <dependency>
            <groupId>com.atlassian.fugue</groupId>
            <artifactId>fugue</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.oauth</groupId>
            <artifactId>atlassian-oauth-consumer-spi</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-nav-links-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-nav-links-plugin</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-osgi</artifactId>
            <scope>provided</scope>
        </dependency>

        <!--Others-->
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-annotation</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-processor</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-runtime</artifactId>
        </dependency>

        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
        </dependency>

        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.ozymandias</groupId>
            <artifactId>atlassian-plugin-point-safety</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava-rate-limiter</artifactId>
        </dependency>

        <!--Tests-->
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-development-integration-testkit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-projects-page-objects</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-tests</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.federation</groupId>
            <artifactId>federated-api-ctk-server</artifactId>
            <version>${ctk.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.qunit</groupId>
            <artifactId>atlassian-qunit-plugin-util</artifactId>
            <version>0.51</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.federation</groupId>
            <artifactId>federated-api-ctk-test-utilities</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>atlassian-jira-pageobjects</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-nimble-func-tests</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>ka-func-test-framework</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.tests</groupId>
            <artifactId>jira-testkit-client</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-greenhopper-integration-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.codehaus.jackson</groupId>
                    <artifactId>jackson-jaxrs</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.fusion</groupId>
            <artifactId>ctk-test-resources</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-it-contract-plugin</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-development-status-contract-plugin</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <!-- Added for access to impl classes by RefreshDevToolStartTest -->
            <groupId>com.atlassian.applinks</groupId>
            <artifactId>applinks-plugin</artifactId>
            <version>4.2.4</version>
            <scope>test</scope>
        </dependency>

        <!-- Hallelujah -->
        <dependency>
            <groupId>com.atlassian.buildeng.hallelujah</groupId>
            <artifactId>client</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.buildeng.hallelujah</groupId>
            <artifactId>server</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.reflections</groupId>
            <artifactId>reflections</artifactId>
            <version>0.9.8</version>
            <scope>test</scope>
        </dependency>

        <!-- AT/SLAT test case annotations -->
        <dependency>
            <groupId>com.atlassian</groupId>
            <artifactId>atlassian-test-categories</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
        </dependency>

        <!-- DVCS dependencies necessary for AT's. Bumped ahead of JIRA to get around Bitbucket -->
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-dvcs-connector-pageobjects</artifactId>
            <version>${dvcs.pageobjects.version}</version>
            <scope>test</scope>
        </dependency>

        <!-- jersey dependencies necessary for AT's -->
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
            <version>${com.sun.jersey.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-core</artifactId>
            <version>${com.sun.jersey.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-json</artifactId>
            <version>${com.sun.jersey.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-software-test</artifactId>
            <version>${jira.software.version}</version>
            <scope>test</scope>
        </dependency>

    </dependencies>
    <properties>
        <od.testing.configuration>
            use-maven,32
            use-java,8
            set-categories,on-trigger="com.atlassian.studio:studio-bamboo",categories="it.com.atlassian.jira.plugin.devstatus.webdriver.at.BambooTest"
            actions,ssh-reverse-tunnel(8990:8990)
        </od.testing.configuration>
        <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
        <generated.locale.dir>${project.build.directory}/generated-sources/pseudo-loc</generated.locale.dir>
        <jira.devmode>true</jira.devmode> <!-- use -DnoDevMode to disable -->
        <skipITs>true</skipITs> <!-- disable integration tests by default -->
        <xvfb.enable>true</xvfb.enable>
        <xvfb.display>:20</xvfb.display>
        <releaseReport>true</releaseReport>
    </properties>
    <profiles>
        <profile>
            <id>runTestSuite</id>
            <activation>
                <property>
                    <name>testGroups</name>
                </property>
            </activation>
            <properties>
                <skipITs>false</skipITs>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <jira.devstatus.oauth.3lo.disabled>true</jira.devstatus.oauth.3lo.disabled>
                            </systemPropertyVariables>
                            <products>
                                <product>
                                    <id>jira</id>
                                    <version>${jira.version}</version>
                                    <dataVersion>${jira.data.version}</dataVersion>
                                </product>
                            </products>
                            <testGroups>
                                <testGroup>
                                    <id>QUnit</id>
                                    <includes>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/qunit/*</include>
                                    </includes>
                                    <productIds>
                                        <productId>jira</productId>
                                    </productIds>
                                </testGroup>

                                <testGroup>
                                    <id>FuncTest</id>
                                    <includes>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/functest/**/Test*.java</include>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/functest/**/*Test.java</include>
                                        <!--Test for checking whether all contracts have been used-->
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/contract/*</include>
                                    </includes>
                                    <productIds>
                                        <productId>jira</productId>
                                    </productIds>
                                </testGroup>

                                <testGroup>
                                    <id>WebDriver1</id>
                                    <includes>
                                        <!-- Once FUSE-2969 is fixed, this needs to be changed to ** to pick up the release report tests -->
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/webdriver/*</include>
                                    </includes>
                                    <excludes>
                                        <exclude>**/it/com/atlassian/jira/plugin/devstatus/webdriver/at/*</exclude>
                                        <exclude>**/it/com/atlassian/jira/plugin/devstatus/webdriver/TestDevStatus.java</exclude>
                                        <exclude>**/it/com/atlassian/jira/plugin/devstatus/webdriver/TestDevStatusIssuePanelSoftwarePermission.java</exclude>
                                    </excludes>
                                    <productIds>
                                        <productId>jira</productId>
                                    </productIds>
                                </testGroup>

                                <testGroup>
                                    <id>WebDriver2</id>
                                    <includes>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/webdriver/TestDevStatus.java</include>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/webdriver/TestDevStatusIssuePanelSoftwarePermission.java</include>
                                    </includes>
                                    <productIds>
                                        <productId>jira</productId>
                                    </productIds>
                                </testGroup>

                                <testGroup>
                                    <id>All</id>
                                    <includes>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/functest/**/*Test.java</include>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/functest/**/Test*.java</include>
                                        <!--Test for checking whether all contracts have been used-->
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/contract/*</include>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/qunit/*</include>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/webdriver/**</include>
                                    </includes>
                                    <excludes>
                                        <exclude>**/it/com/atlassian/jira/plugin/devstatus/webdriver/at/*</exclude>
                                    </excludes>
                                    <productIds>
                                        <productId>jira</productId>
                                    </productIds>
                                </testGroup>

                                <testGroup>
                                    <id>HallelujahClient</id>
                                    <includes>
                                        <include>hallelujah/HallelujahClient.java</include>
                                    </includes>
                                    <productIds>
                                        <productId>jira</productId>
                                    </productIds>
                                </testGroup>

                                <testGroup>
                                    <id>HallelujahServer</id>
                                    <includes>
                                        <!-- always run the client with the server -->
                                        <include>hallelujah/HallelujahServer.java</include>
                                        <include>hallelujah/HallelujahClient.java</include>
                                    </includes>
                                    <productIds>
                                        <productId>jira</productId>
                                    </productIds>
                                </testGroup>

                            </testGroups>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>runHallelujahServer</id>
            <activation>
                <property>
                    <name>testGroups</name>
                    <value>HallelujahServer</value>
                </property>
            </activation>
            <properties>
                <!-- use JUnit parallel execution to run Hallelujah client+server in one JVM -->
                <parallel>classes</parallel>
                <threadCount>2</threadCount>
                <hallelujah.retries>2</hallelujah.retries>
                <hallelujah.slow.tests>3</hallelujah.slow.tests>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <excludes>
                                <!-- don't run unit tests at all when running Hallelujah server -->
                                <exclude>**/*</exclude>
                            </excludes>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <!-- these are passed by maven-failsafe-plugin to the JVM running Hallelujah -->
                                <hallelujah.retries>${hallelujah.retries}</hallelujah.retries>
                                <hallelujah.slow.tests>${hallelujah.slow.tests}</hallelujah.slow.tests>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <!-- use different settings when running in Bamboo (no dev is present) -->
            <id>no-dev-mode</id>
            <activation>
                <property>
                    <name>noDevMode</name>
                </property>
            </activation>
            <properties>
                <jira.devmode>false</jira.devmode>
            </properties>
        </profile>
        <profile>
            <id>pseudo-loc</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>pseudo-loc-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>pseudo-loc</id>
                                <phase>generate-sources</phase>
                                <goals>
                                    <goal>pseudo-loc</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <sourceLocale>en_UK</sourceLocale>
                            <targetLocale>en_AQ</targetLocale>
                            <pseudoLocaliseActions>
                                <pseudoLocaliseAction>
                                    <source>src/main/resources/i18n.properties</source>
                                    <target>src/main/resources/i18n_{loc}.properties</target>
                                </pseudoLocaliseAction>
                            </pseudoLocaliseActions>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>copy</id>
                                <phase>generate-resources</phase>
                                <goals>
                                    <goal>copy</goal>
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>com.atlassian.jira</groupId>
                                            <artifactId>jira-languages</artifactId>
                                            <classifier>en_AQ</classifier>
                                            <version>${jira.version}</version>
                                            <type>jar</type>
                                            <overWrite>false</overWrite>
                                            <outputDirectory>${project.build.directory}/jira/home/plugins/installed-plugins</outputDirectory>
                                        </artifactItem>
                                    </artifactItems>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>ondemand-acceptance-tests</id>
            <properties>
                <skipITs>false</skipITs> <!-- enable integration tests -->
                <skip.javadoc>true</skip.javadoc> <!-- disable javadocs generation -->
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <!-- Skip unit tests during AT/SLAT execution -->
                        <configuration>
                            <skipTests>true</skipTests>
                            <systemPropertyVariables>
                                <ctk.port>${bitbucket.ctk.port}</ctk.port>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <!-- TPM Profiles -->
        <profile>
            <id>tpm</id>
            <dependencies>
                <dependency>
                    <groupId>com.atlassian.jira.plugins</groupId>
                    <artifactId>jira-plugin-test-resources</artifactId>
                    <version>${jira.version}</version>
                </dependency>

                <dependency>
                    <groupId>org.postgresql</groupId>
                    <artifactId>postgresql</artifactId>
                    <version>${database.driver.version.postgres}</version>
                </dependency>

                <dependency>
                    <groupId>mysql</groupId>
                    <artifactId>mysql-connector-java</artifactId>
                    <version>${database.driver.version.mysql}</version>
                </dependency>

                <dependency>
                    <groupId>com.oracle</groupId>
                    <artifactId>ojdbc6</artifactId>
                    <version>${database.driver.version.oracle}</version>
                </dependency>

                <dependency>
                    <groupId>net.sourceforge.jtds</groupId>
                    <artifactId>jtds</artifactId>
                    <version>${database.driver.version.mssql}</version>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <configuration>
                            <libArtifacts>
                                <libArtifact>
                                    <groupId>org.postgresql</groupId>
                                    <artifactId>postgresql</artifactId>
                                    <version>${database.driver.version.postgres}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>mysql</groupId>
                                    <artifactId>mysql-connector-java</artifactId>
                                    <version>${database.driver.version.mysql}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>com.oracle</groupId>
                                    <artifactId>ojdbc6</artifactId>
                                    <version>${database.driver.version.oracle}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>net.sourceforge.jtds</groupId>
                                    <artifactId>jtds</artifactId>
                                    <version>${database.driver.version.mssql}</version>
                                </libArtifact>
                            </libArtifacts>
                            <server>localhost</server>
                            <testGroups>
                                <testGroup>
                                    <id>integration-tests</id>
                                    <productIds>
                                        <productId>jira-tpm</productId>
                                    </productIds>
                                    <includes>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/functest/**/*Test.java</include>
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/functest/**/Test*.java</include>
                                        <!-- TODO fix this to be ** instead of * to include release report tests -->
                                        <include>**/it/com/atlassian/jira/plugin/devstatus/webdriver/*</include>
                                    </includes>
                                    <excludes>
                                        <exclude>**/it/com/atlassian/jira/plugin/devstatus/webdriver/at/*</exclude>
                                    </excludes>
                                </testGroup>
                            </testGroups>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>jira-postgres-93</id>
            <properties>
                <product>jira</product>
                <instanceId>jira-tpm</instanceId>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <version>${amps.version}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <products>
                                <product>
                                    <instanceId>jira-tpm</instanceId>
                                    <version>${jira.version}</version>
                                    <output>${project.build.directory}/jira-postgres-${jira.version}.log</output>
                                    <dataSources>
                                        <dataSource>
                                            <jndi>${datasource.jndi}</jndi>
                                            <url>jdbc:postgresql://localhost:5432/jiradb</url>
                                            <driver>org.postgresql.Driver</driver>
                                            <username>${datasource.username}</username>
                                            <password>${datasource.password}</password>
                                            <schema>public</schema>
                                            <defaultDatabase>jdbc:postgresql://localhost:5432/postgres</defaultDatabase>
                                            <systemUsername>postgres</systemUsername>
                                            <systemPassword>postgres</systemPassword>
                                            <dumpFilePath>${project.build.directory}/classes/jira_70_postgres93_dump.sql</dumpFilePath>
                                            <importMethod>Sql</importMethod>
                                            <type>postgres93</type>
                                        </dataSource>
                                    </dataSources>
                                </product>
                            </products>
                        </configuration>
                        <executions>
                            <execution>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>prepare-database</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>default-integration-test</id>
                                <phase>integration-test</phase>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>jira-mssql-2012</id>
            <properties>
                <product>jira</product>
                <instanceId>jira-tpm</instanceId>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <version>${amps.version}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <dumpFilePath>${project.build.directory}/classes/jira_70_mssql2012_dump.bak</dumpFilePath>
                            <importMethod>SQLCMD</importMethod>
                            <products>
                                <product>
                                    <instanceId>jira-tpm</instanceId>
                                    <version>${jira.version}</version>
                                    <output>${project.build.directory}/jira-mssql-${jira.version}.log</output>
                                    <dataSources>
                                        <dataSource>
                                            <jndi>${datasource.jndi}</jndi>
                                            <url>jdbc:jtds:sqlserver://localhost:1433/jiradb</url>
                                            <driver>net.sourceforge.jtds.jdbc.Driver</driver>
                                            <username>${datasource.username}</username>
                                            <password>@!123456ABC888</password>
                                            <schema>dbo</schema>
                                            <defaultDatabase>jdbc:jtds:sqlserver://localhost:1433/master</defaultDatabase>
                                            <systemUsername>sa</systemUsername>
                                            <systemPassword>@!1234abc</systemPassword>
                                            <type>mssql</type>
                                        </dataSource>
                                    </dataSources>
                                </product>
                            </products>
                        </configuration>
                        <executions>
                            <execution>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>prepare-database</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>default-integration-test</id>
                                <phase>integration-test</phase>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>jira-oracle-12c</id>
            <properties>
                <product>jira</product>
                <instanceId>jira-tpm</instanceId>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <version>${amps.version}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <dumpFilePath>${project.build.directory}/classes/jira_70_oracle_11g_dump.dmp</dumpFilePath>
                            <importMethod>IMPDP</importMethod>
                            <products>
                                <product>
                                    <instanceId>jira-tpm</instanceId>
                                    <version>${jira.version}</version>
                                    <output>${project.build.directory}/jira-oracle-${jira.version}.log</output>
                                    <dataSources>
                                        <dataSource>
                                            <jndi>${datasource.jndi}</jndi>
                                            <url>jdbc:oracle:thin:@localhost:1521:TEST</url>
                                            <driver>oracle.jdbc.OracleDriver</driver>
                                            <username>${datasource.username}</username>
                                            <password>${datasource.password}</password>
                                            <schema>dbo</schema>
                                            <defaultDatabase>jdbc:oracle:thin:@localhost:1521:TEST</defaultDatabase>
                                            <systemUsername>oracle</systemUsername>
                                            <systemPassword>oracle</systemPassword>
                                            <type>oracle11g</type>
                                        </dataSource>
                                    </dataSources>
                                </product>
                            </products>
                        </configuration>
                        <executions>
                            <execution>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>prepare-database</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>default-integration-test</id>
                                <phase>integration-test</phase>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>jira-mysql</id>
            <properties>
                <product>jira</product>
                <instanceId>jira-tpm</instanceId>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <version>${amps.version}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <products>
                                <product>
                                    <instanceId>jira-tpm</instanceId>
                                    <version>${jira.version}</version>
                                    <output>${project.build.directory}/jira-mysql-${jira.version}.log</output>
                                    <dataSources>
                                        <dataSource>
                                            <jndi>${datasource.jndi}</jndi>
                                            <url>jdbc:mysql://localhost:3307/jiradb</url>
                                            <driver>com.mysql.jdbc.Driver</driver>
                                            <username>${datasource.username}</username>
                                            <password>${datasource.password}</password>
                                            <schema/>
                                            <defaultDatabase>jdbc:mysql://localhost:3307/mysql</defaultDatabase>
                                            <systemUsername>root</systemUsername>
                                            <systemPassword/>
                                            <dumpFilePath>${project.build.directory}/classes/jira_70_mysql55_dump.sql</dumpFilePath>
                                            <importMethod>SQL</importMethod>
                                            <type>mysql</type>
                                        </dataSource>
                                    </dataSources>
                                </product>
                            </products>
                        </configuration>
                        <executions>
                            <execution>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>prepare-database</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>default-integration-test</id>
                                <phase>integration-test</phase>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <!-- end of TPM Profiles -->
		<profile>
            <!--
                 QuickReload enabled. Defined separately so as not to interfere with ITs etc.
                 e.g. mvn jira:run -Pqr
            -->
            <id>qr</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-jira-plugin</artifactId>
                        <extensions>true</extensions>
                        <configuration>
                            <!-- Speedup startup times -->
                            <enableFastdev>false</enableFastdev>
                            <enableDevToolbox>false</enableDevToolbox>
                            <enablePde>false</enablePde>
                            <skipRestDocGeneration>true</skipRestDocGeneration>
                            <allowGoogleTracking>false</allowGoogleTracking>
                            <skipManifestValidation>true</skipManifestValidation>
                            <extractDependencies>false</extractDependencies>
                            <skipManifestValidation>true</skipManifestValidation>

                            <applications>
                                <application>
                                    <applicationKey>jira-software</applicationKey>
                                    <version>${jira.software.application.version}</version>
                                </application>
                            </applications>
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.qunit</groupId>
                                    <artifactId>atlassian-qunit-plugin</artifactId>
                                    <version>${atlassian.qunit.plugin.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-it-contract-plugin</artifactId>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.plugins</groupId>
                                    <artifactId>jira-greenhopper-plugin</artifactId>
                                    <version>${agile.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.applinks</groupId>
                                    <artifactId>applinks-tests</artifactId>
                                    <version>${applinks.tests.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.tests</groupId>
                                    <artifactId>jira-testkit-plugin</artifactId>
                                    <version>${testkit.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira</groupId>
                                    <artifactId>jira-func-test-plugin</artifactId>
                                    <version>${jira.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.plugins</groupId>
                                    <artifactId>jira-development-status-contract-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.plugins</groupId>
                                    <artifactId>jira-transition-triggers-plugin</artifactId>
                                    <version>${trigger.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.plugins</groupId>
                                    <artifactId>jira-dvcs-connector-plugin</artifactId>
                                    <version>${dvcs.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-remote-event-common-plugin</artifactId>
                                    <version>${remote.events.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-remote-event-consumer-plugin</artifactId>
                                    <version>${remote.events.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.plugins</groupId>
                                    <artifactId>jira-bamboo-plugin</artifactId>
                                    <version>${jira.bamboo.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira</groupId>
                                    <artifactId>jira-projects-plugin</artifactId>
                                    <version>${jira.projects.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.plugins</groupId>
                                    <artifactId>jira-software-plugin</artifactId>
                                    <version>${jira.software.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.plugins</groupId>
                                    <artifactId>jira-development-integration-testkit</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.labs.plugins</groupId>
                                    <artifactId>quickreload</artifactId>
                                    <version>${quickreload.version}</version>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
