<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.pom</groupId>
        <artifactId>closedsource-pom</artifactId>
        <version>6.0.2</version>
    </parent>

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

    <name>Atlassian Jira - Plugins - Issue Navigator Parent</name>
    <groupId>com.atlassian.jira</groupId>
    <artifactId>jira-issue-nav-plugin-parent</artifactId>
    <description>Provides issue search and navigation</description>
    <version>19.2.11</version>
    <packaging>pom</packaging>
    <licenses>
        <license>
            <name>Atlassian End User License</name>
            <url>https://www.atlassian.com/end-user-agreement/</url>
            <comments>Atlassian 3.0 End User License Agreement</comments>
        </license>
    </licenses>

    <scm>
        <connection>scm:git:ssh://git@stash.atlassian.com:7997/jiraserver/jira-issue-search-plugin.git</connection>
        <developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/jiraserver/jira-issue-search-plugin.git</developerConnection>
        <url>https://stash.atlassian.com/projects/JIRASERVER/repos/jira-issue-search-plugin</url>
        <tag>jira-issue-nav-plugin-parent-19.2.11</tag>
    </scm>

    <modules>
        <module>jira-issue-navigator-pageobjects</module>
        <module>jira-issue-navigator-components-plugin</module>
        <module>jira-global-issue-navigator-plugin</module>
        <module>jira-projects-issue-navigator-plugin</module>
        <module>jira-issue-navigator-test-runner</module>
        <module>jira-issue-navigator-test-plugin</module>
    </modules>

    <profiles>
        <profile>
            <id>jvm-opens-activation</id>
            <activation>
                <property>
                    <name>env.JVM_OPENS</name>
                </property>
            </activation>
            <properties>
                <jvmOpens>${env.JVM_OPENS}</jvmOpens>
            </properties>
        </profile>
        <profile>
            <id>freezer-release-profile</id>
            <properties>
                <skipITs>true</skipITs>
                <skipTests>false</skipTests> <!-- The plan template expects at least one test -->
                <xvfb.enable>true</xvfb.enable>
            </properties>
        </profile>
        <profile>
            <id>noDev</id>
            <properties>
                <xvfb.enable>true</xvfb.enable>
                <java.awt.headless>true</java.awt.headless>
                <maven.test.failure.ignore>false</maven.test.failure.ignore>
                <ka.devmode>false</ka.devmode>
            </properties>
        </profile>
        <profile>
            <id>sidebar</id>
            <properties>
                <eslint.skip>false</eslint.skip>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>jira-maven-plugin</artifactId>
                        <configuration>
                            <systemProperties>
                                <atlassian.darkfeature.ka.REDIRECT_FROM_GLOBAL_TO_PROJECT>true</atlassian.darkfeature.ka.REDIRECT_FROM_GLOBAL_TO_PROJECT>
                                <atlassian.darkfeature.ka.FLUSH_HEAD_EARLY>true</atlassian.darkfeature.ka.FLUSH_HEAD_EARLY>
                            </systemProperties>
                        </configuration>
                    </plugin>

                    <!--
                        This plugin is used when running the tests in IDEA. In particular, is used by
                        ProjectIssueNavigatorTestCase to determine whether the redirect to /browse is enabled or not.
                        You also have to enable the profile 'sidebar' in the 'Maven Projects' configuration.

                        The name of the variable (atlassian.darkfeature.ka.REDIRECT_FROM_GLOBAL_TO_PROJECT) must be the
                        same in maven-surefire-plugin (used by IDEA) and maven-jira-plugin (used by Hallelujah), if not
                        the condition in `ProjectIssueNavigatorTestCase` will fail.
                     -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <atlassian.darkfeature.ka.REDIRECT_FROM_GLOBAL_TO_PROJECT>true</atlassian.darkfeature.ka.REDIRECT_FROM_GLOBAL_TO_PROJECT>
                            </systemPropertyVariables>
                            <trimStackTrace>false</trimStackTrace>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>runFuncTests</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>jira-maven-plugin</artifactId>
                        <extensions>true</extensions>
                        <configuration>
                            <products>
                                <product>
                                    <id>jira</id>
                                    <version>${jira.version}</version>
                                    <dataVersion>${jira.data.version}</dataVersion>
                                </product>
                            </products>
                            <productVersion>${jira.version}</productVersion>
                            <productDataVersion>${jira.version}</productDataVersion>
                            <testGroups>
                                <testGroup>
                                    <id>runFuncTests</id>
                                    <includes>
                                        <include>**/it/**/func/**</include>
                                    </includes>
                                    <productIds>
                                        <productId>jira</productId>
                                    </productIds>
                                </testGroup>
                            </testGroups>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
            <properties>
                <testGroups>runFuncTests</testGroups>
                <eslint.skip>true</eslint.skip>
            </properties>
        </profile>
        <profile>
            <id>codestyle</id>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-checkstyle-plugin</artifactId>
                            <version>2.15</version>
                            <dependencies>
                                <dependency>
                                    <groupId>com.puppycrawl.tools</groupId>
                                    <artifactId>checkstyle</artifactId>
                                    <version>6.9</version>
                                </dependency>
                            </dependencies>
                        </plugin>
                    </plugins>
                </pluginManagement>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-remote-resources-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>validate</phase>
                                <goals>
                                    <goal>process</goal>
                                </goals>
                                <configuration>
                                    <outputDirectory>${project.build.directory}/codestyle</outputDirectory>
                                    <resourceBundles>
                                        <resourceBundle>com.atlassian.codestyle:platform:1.0.1</resourceBundle>
                                    </resourceBundles>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-checkstyle-plugin</artifactId>
                        <version>2.17</version>
                        <executions>
                            <execution>
                                <id>verify</id>
                                <phase>validate</phase>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                                <configuration>
                                    <configLocation>${project.build.directory}/codestyle/checkstyle-rules.xml</configLocation>
                                    <propertyExpansion>configdir=${project.build.directory}/codestyle</propertyExpansion>
                                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>jira-license-default-dc</id>
            <activation>
                <property>
                    <name>jira-license-default</name>
                    <value>dc</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>jira-maven-plugin</artifactId>
                        <configuration>
                            <products>
                                <product>
                                    <id>jira</id>
                                    <!-- Data Center commercial license, expiry 72H, Jira Software, unlimited users -->
                                    <license>
                                        AAACBA0ODAoPeNp9kl1v2jAUhu/zK460OyQHSLuVIkUaTbwNVBKUhEnbugsTDuA2sSPbgbFfPxOC1
                                        i+4yEXO5+vnPR+yGiGSW/CuoXc7vBoMvT4ENAOv5/WctUIUG1lVqNx7nqPQSJfccCl8GmU0mSXjl
                                        DpRXS5Qxau5RqV90ncCKQzLTcRK9Eu944Ip/cQ/M1MwrTkTbi5LZ1arfMM0hsyg7/X6A9LvE89z2
                                        j3ZvsJmQBBPpzQJxqP7U4r+qbjaN32zG+/baR2dMl6c35ei2qIah/4dvaHkOvzpkU/x5IZ8vbodO
                                        I9cMbdSclnnxj38EC1XZscUunYy36JvVI3OxGZmbZXdzwIU5lVJWi90rnjVQGoi70B873GNhPOQO
                                        51OFGfkS5yQWRKH8yAbxxGZp9Qm/EChpbGExR7MBqGdAlTkcokK7MMeMTfwa2NM9TDsdtfSfQGnW
                                        xw7CB47frsQShDSwJJro/iiNmgncw1GQl5rI0trtetY4sKgYCJ/Y4qVFSR0lNGQ3P04aDxrTKvWO
                                        jMXT0LuxCU33txaSiPffuRjr3fsO/mC6og/VmsmuGYN0Ij93TFYcVXunQaaDb4+wJbFd7vg0OI5I
                                        f53NENtoK2AlVQwGScjSFt5lrjdWymu8WEIgSwtppyzAsLgxRk8P5hG9PMA3bKiPspdsULjJRwX7
                                        ukf5/NX7TAtAhUAhQSHz9DgycOX7wcwERMJb3TLGb4CFGkB/xUWSRK3BZLrPF9Rn6ZmrUqJX02oc
                                    </license>
                                </product>
                            </products>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <properties>
        <atlassian.audit.api.version>1.9.5</atlassian.audit.api.version>
        <atlassian-plugin.description>${project.description}</atlassian-plugin.description>
        <atlassian-plugin.version>${project.version}</atlassian-plugin.version>
        <atlassian.test.run.only.quarantined>false</atlassian.test.run.only.quarantined>
        <atlassian.test.suite.excludes />
        <atlassian.test.suite.includes />
        <atlassian.test.suite.package>com.atlassian.jira.plugin.issuenav</atlassian.test.suite.package>
        <atlassian.test.target.dir>${project.build.directory}</atlassian.test.target.dir>
        <atlassian.jstestsrunner.version>0.10.3</atlassian.jstestsrunner.version>
        <hallelujah.version>3.4</hallelujah.version>
        <jira.data.version>${jira.version}</jira.data.version>
        <jira.functest.single.testclass />
        <jira.hallelujah.queueId />

        <!-- please carefully read 'README > Contributing > Creating new stable branch' if you are bumping major or minor jira.version -->
        <jira.version>9.13.0-QR-20231020125912</jira.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <testkit.version>8.2.2</testkit.version>
        <webdriver.browser>firefox</webdriver.browser>
        <xvfb.enable>false</xvfb.enable>
        <amps.version>8.1.1</amps.version>
        <skipITs>false</skipITs>
        <skipTests>false</skipTests>
        <ka.devmode>true</ka.devmode>
        <jvmOpens />
        <jvmArgs>${jvmOpens} -Xms512m -Xmx2G -Duser.timezone=Australia/Sydney</jvmArgs>
        <skipAllPrompts>true</skipAllPrompts>
        <atlassian.spring.scanner.version>2.2.0</atlassian.spring.scanner.version>
        <jira.projects.version>7.1.4</jira.projects.version>
        <od.testing.configuration>use-maven,3</od.testing.configuration>
        <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
        <compressResources>true</compressResources>
        <jdkLevel>1.8</jdkLevel>
        <java.awt.headless>false</java.awt.headless>
        <maven.test.failure.ignore>false</maven.test.failure.ignore>
        <skip.unit.tests>${skipTests}</skip.unit.tests>
        <frontend.maven.plugin.version>1.12.1</frontend.maven.plugin.version>

        <!-- node -->
        <nodeVersion>10.22.1</nodeVersion>
        <yarnVersion>1.22.5</yarnVersion>
        <nodePath>${project.build.directory}</nodePath>
        <frontend.install.cmd>install --frozen-lockfile --prefer-offline --mutex network --no-progress</frontend.install.cmd>
        <eslint.skip>false</eslint.skip>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>jira-project</artifactId>
                <version>${jira.version}</version>
                <type>pom</type>
                <scope>import</scope>
                <exclusions>
                    <exclusion>
                        <groupId>org.junit.jupiter</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.junit.vintage</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.junit.platform</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>jira-api</artifactId>
                <version>${jira.version}</version>
                <type>pom</type>
                <scope>import</scope>
                <exclusions>
                    <exclusion>
                        <groupId>org.junit.jupiter</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.junit.vintage</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.junit.platform</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>atlassian-jira-pageobjects</artifactId>
                <version>${jira.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.junit.jupiter</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.junit.vintage</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.junit.platform</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira.tests</groupId>
                <artifactId>jira-testkit-client</artifactId>
                <version>${testkit.version}</version>
            </dependency>

            <dependency>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-annotation</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-slf4j-impl</artifactId>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-api</artifactId>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-core</artifactId>
                <scope>test</scope>
            </dependency>

            <!-- AT/SLAT test case annotations -->
            <dependency>
                <groupId>com.atlassian</groupId>
                <artifactId>atlassian-test-categories</artifactId>
                <version>0.5</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>pseudo-loc-maven-plugin</artifactId>
                    <version>1.1</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.lesscss</groupId>
                    <artifactId>lesscss-maven-plugin</artifactId>
                    <version>3.2.0</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>amps-dispatcher-maven-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>amps-maven-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>jira-maven-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
                <plugin>
                    <groupId>com.github.eirslett</groupId>
                    <artifactId>frontend-maven-plugin</artifactId>
                    <version>${frontend.maven.plugin.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <configuration>
                    <nodeVersion>v${nodeVersion}</nodeVersion>
                    <yarnVersion>v${yarnVersion}</yarnVersion>
                    <installDirectory>${nodePath}</installDirectory>
                    <npmInheritsProxyConfigFromMaven>true</npmInheritsProxyConfigFromMaven>
                </configuration>
                <executions>
                    <execution>
                        <id>install node and yarn</id>
                        <goals>
                            <goal>install-node-and-yarn</goal>
                        </goals>
                        <phase>test</phase>
                    </execution>
                    <execution>
                        <id>yarn install</id>
                        <goals>
                            <goal>yarn</goal>
                        </goals>
                        <configuration>
                            <arguments>${frontend.install.cmd}</arguments>
                        </configuration>
                        <phase>test</phase>
                    </execution>
                    <execution>
                        <id>run-eslint</id>
                        <phase>test</phase>
                        <goals>
                            <goal>yarn</goal>
                        </goals>
                        <configuration>
                            <arguments>run lintCI</arguments>
                            <skip>${eslint.skip}</skip>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>atlassian-spring-scanner</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
                <configuration>
                    <verbose>true</verbose>
                </configuration>
            </plugin>
            <!-- 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.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>**/*$*</exclude>
                        <exclude>it/**</exclude>
                        <exclude>at/**</exclude>
                    </excludes>
                    <trimStackTrace>false</trimStackTrace>
                    <skipTests>${skip.unit.tests}</skipTests>
                    <systemProperties>
                        <java.awt.headless>${java.awt.headless}</java.awt.headless>
                        <maven.test.failure.ignore>${maven.test.failure.ignore}</maven.test.failure.ignore>
                    </systemProperties>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>jira-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <compressResources>${compressResources}</compressResources>
                    <extractDependencies>false</extractDependencies>
                    <enableFastdev>false</enableFastdev>
                    <enableDevToolbox>false</enableDevToolbox>
                    <systemPropertyVariables>
                        <jira.websudo.is.disabled>true</jira.websudo.is.disabled>
                        <atlassian.mail.senddisabled>true</atlassian.mail.senddisabled>
                        <atlassian.mail.fetchdisabled>true</atlassian.mail.fetchdisabled>
                        <atlassian.test.target.dir>${project.build.directory}/webdriverTests</atlassian.test.target.dir>
                        <xvfb.enable>${xvfb.enable}</xvfb.enable>
                        <atlassian.dev.mode>${ka.devmode}</atlassian.dev.mode>
                        <webdriver.browser>${webdriver.browser}</webdriver.browser>
                    </systemPropertyVariables>
                    <skipITs>${skipITs}</skipITs>
                    <jvmArgs>${jvmArgs} -Dactiveobjects.servicefactory.ddl.usecurrentthread=true</jvmArgs>
                    <skipManifestValidation>true</skipManifestValidation>
                    <productVersion>${jira.version}</productVersion>
                    <productDataVersion>${jira.version}</productDataVersion>
                    <pluginArtifacts combine.children="append">
                        <pluginArtifact>
                            <groupId>com.atlassian.labs.plugins</groupId>
                            <artifactId>quickreload</artifactId>
                            <version>1.30.1</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.plugins.jstestrunner</groupId>
                            <artifactId>atlassian-jstest-runner-plugin</artifactId>
                            <version>${atlassian.jstestsrunner.version}</version>
                        </pluginArtifact>

                        <pluginArtifact>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-issue-navigator-test-plugin</artifactId>
                            <version>${project.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</groupId>
                            <artifactId>jira-func-tests-legacy</artifactId>
                            <version>${jira.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.8.9</version>
                <executions>
                    <execution>
                        <id>prepare-agent-unit-test</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>report-unit-test</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>prepare-agent-integration-test</id>
                        <goals>
                            <goal>prepare-agent-integration</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>report-integration-test</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>report-integration</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.atlassian.drs</groupId>
                <artifactId>dependency-report-maven-plugin</artifactId>
                <version>1.5.13</version>
                <configuration>
                    <project>jira-issue-search-plugin</project>
                    <unitTestCodeCoveragePaths>${project.build.directory}/jacoco.exec</unitTestCodeCoveragePaths>
                    <integrationTestCodeCoveragePaths>${project.build.directory}/jacoco-it.exec</integrationTestCodeCoveragePaths>
                    <gracefulFailure>true</gracefulFailure>
                </configuration>
                <executions>
                    <execution>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>upload</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
