<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <parent>
        <groupId>com.atlassian.jira</groupId>
        <artifactId>jira-functional-tests</artifactId>
        <version>12.0.0-QR-20260910110626</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>jira-webdriver-tests</artifactId>
    <name>Atlassian JIRA - Testing - WebDriver Tests</name>
    <description>WebDriver tests for JIRA</description>

    <properties>
        <dnd.po.version>7.0.0</dnd.po.version>
        <!-- Licence build will ignore this module -->
        <license.scope>test</license.scope>

        <!-- just to make IDE happy ;) -->
        <http.jira.protocol />
        <context.jira.path />
        <!-- ZDU stable version for XML replacement in jar-with-zdu-xmls artifact -->
        <jira.stable.version>9.11.3</jira.stable.version>

        <!-- ==================== Runner properties (merged from jira-webdriver-tests-runner) ==================== -->
        <!-- Test runner properties -->
        <atlassian.test.suite.numbatches>1</atlassian.test.suite.numbatches>
        <atlassian.test.suite.batch>1</atlassian.test.suite.batch>
        <atlassian.test.suite.package>com.atlassian.jira.webtest.webdriver.tests</atlassian.test.suite.package>
        <atlassian.test.suite.includes>WEBDRIVER_TEST</atlassian.test.suite.includes>
        <atlassian.test.suite.excludes>APP_LINKS_WITH_CONFLUENCE,APP_LINKS_WITH_ANOTHER_JIRA,APP_LINKS_WITH_EXTERNAL_SERVICE,TPM,RELOADABLE_PLUGINS,VISUAL_REGRESSION,VISUAL_REGRESSION_SETUP,SETUP,GADGETS_VR</atlassian.test.suite.excludes>
        <atlassian.test.target.dir>${project.build.directory}</atlassian.test.target.dir>
        <jira.functest.single.testclass/>
        <jira.test.edition>all</jira.test.edition>
        <skipTests/>
        <skipITs>${skipTests}</skipITs>
        <batching.skip>${skipITs}</batching.skip>
        <cargo.skip>${skipITs}</cargo.skip>
        <test.packages>${atlassian.test.suite.package}</test.packages>
        <include.tests>${jira.functest.single.testclass}</include.tests>
        <replicate.tests.in.all.batches/>
        <replicate.batch.with.index/>
        <test.filter>com.atlassian.jira.functest.framework.suite.WebTestCategoriesFilter</test.filter>
        <test.run.order>alphabetical</test.run.order>
        <include.all.test.categories>${atlassian.test.suite.includes.all}</include.all.test.categories>
        <include.test.categories>${atlassian.test.suite.includes}</include.test.categories>
        <exclude.test.categories>${atlassian.test.suite.excludes}</exclude.test.categories>
        <test.blacklist/>
        <use.one.based.index>true</use.one.based.index>
        <batch.count>${atlassian.test.suite.numbatches}</batch.count>
        <batch.index>${atlassian.test.suite.batch}</batch.index>
        <batch.file>${project.build.directory}/batch.properties</batch.file>
        <test.debug/>
        <jira.test.runner.maxMemory>2G</jira.test.runner.maxMemory>
        <jira.test.runner.minMemory>512M</jira.test.runner.minMemory>
        <jira.test.runner.memory>-Xmx${jira.test.runner.maxMemory} -Xms${jira.test.runner.minMemory}</jira.test.runner.memory>
        <test.argLine>${jira.test.runner.memory} ${jira.test.runner.jvmargs} ${test.debug}</test.argLine>
        <git.branch/>
        <rerunFailingTestsCount>5</rerunFailingTestsCount>

        <!-- Container properties -->
        <jira.home>${project.build.directory}/jirahome</jira.home>
        <jira.port>18400</jira.port>
        <jira.rmi.port>18401</jira.rmi.port>
        <jira.context>/atlassian-jira</jira.context>
        <jira.dev.mode>false</jira.dev.mode>
        <jira.jmx.jvmargs/>
        <jira.debug/>
        <jacoco.jvmargs/>
        <jira.funtest.extraargs/>
        <jira.seleniumtest.jvmargs.extra/>
        <!-- Enable deprecated Crowd directory types for LDAP tests - Crowd m17 disabled them by default but m05 admin plugin still uses them -->
        <!-- https://bulldog.internal.atlassian.com/browse/BER-779 -->
        <deprecated.crowd.types>-Dcrowd.directory.deprecated.types.enabled=true</deprecated.crowd.types>
        <jira.tomcat.jvmargs>${jira.functest.jvmargs} ${jira.debug} ${jacoco.jvmargs} ${jira.jmx.jvmargs}
            ${jira.funtest.extraargs}
            ${jira.seleniumtest.jvmargs.extra} ${jira.user.hardmode.jvmargs} -Djira.dev.mode=${jira.dev.mode}
            -Djira.skip.pulp.redirect=true -Djira.i18n.skip.cache.clearance=true
            ${deprecated.crowd.types}
        </jira.tomcat.jvmargs>
        <installed.tomcat.dir>
            ${project.build.directory}/cargo/installs/apache-tomcat-${tomcat.dist.version}-atlassian-hosted/apache-tomcat-${tomcat.dist.version}
        </installed.tomcat.dir>
        <jira.war.version>${project.version}</jira.war.version>
        <tomcat.dist.flavour>tomcat-11x</tomcat.dist.flavour>
        <!-- The following properties are defined in jira-distribution/pom.xml which is not in our inheritance chain.
             Keep these in sync with jira-distribution/pom.xml when upgrading Tomcat or JVM args. -->
        <tomcat.dist.version>11.0.24</tomcat.dist.version>
        <jira.functest.maxMemory>4G</jira.functest.maxMemory>
        <jira.functest.minMemory>4G</jira.functest.minMemory>
        <jira.functest.jvmargs.memory>-Xmx${jira.functest.maxMemory} -Xms${jira.functest.minMemory}</jira.functest.jvmargs.memory>
        <jira.functest.jvmargs.hardmode>${jira.user.hardmode.jvmargs}</jira.functest.jvmargs.hardmode>
        <jira.java17.jvmargs>--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio.file=ALL-UNNAMED --add-opens=java.base/javax.crypto=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.desktop/sun.font=ALL-UNNAMED --add-opens=java.base/sun.reflect.generics.parser=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports=java.base/sun.util.calendar=ALL-UNNAMED --add-exports=java.base/sun.security.action=ALL-UNNAMED --add-exports=java.xml/jdk.xml.internal=ALL-UNNAMED</jira.java17.jvmargs>
        <jira.functest.jvmargs>${jira.java17.jvmargs} -server -Dmail.mime.decodeparameters=true -Dlog4j2.contextSelector=org.apache.logging.log4j.core.selector.BasicContextSelector -Dlog4j2.garbagefree.threadContextMap=true -Dlog4j2.isWebapp=false -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true ${jira.functest.jvmargs.memory} -XX:+HeapDumpOnOutOfMemoryError -Djira.plugins.bundled.disable=false ${jira.user.jvmargs} -Dfile.encoding=utf-8 -Djira.dump=true -Djira.websudo.is.disabled=true -Djira.fisheye.reloadOnClearCache=false -Djira.setup.analytics.iframe.url="" ${jira.functest.jvmargs.hardmode} -Dprofiling.analytics.step=1s -Dactiveobjects.servicefactory.ddl.usecurrentthread=true</jira.functest.jvmargs>

        <!-- WebDriver specific properties -->
        <webdriver.browser>chrome</webdriver.browser>
        <webdriver.chrome.profile.preferences>browser.download.folderList=2;browser.download.dir=${project.build.directory};browser.download.manager.showWhenStarting=false;pdfjs.disabled=true;browser.helperApps.neverAsk.saveToDisk=application/pdf,application/zip,text/plain,text/csv</webdriver.chrome.profile.preferences>
        <!-- known reproducible issue https://issues.chromium.org/issues/376228320 disable feature MojoChannelAssociatedSendUsesRunOrPostTask to prevent chrome renderer crashes -->
        <webdriver.chrome.switches>--disable-features=MojoChannelAssociatedSendUsesRunOrPostTask,--disable-gcm-registration</webdriver.chrome.switches>
        <!--
            ChromeDriver waits for a navigation to finish before answering any further
            command. Chrome 151 can leave a navigation apparently pending, so that wait
            never completes and the whole session is lost (see the note below).

            Two strategies were measured on Chrome 151 across the full suite:

              none    0 hangs, but it breaks tests that observe in-page state across a
                      navigation, because navigateTo* returns before the document exists.
                      TestBrowserMetricsEvents is the clearest case: its collector lives in
                      window.__browser_metrics_context, which the pending navigation destroys.
                      wd-23: 7 failures, 5 of them that one class.
              normal  navigation waiting is preserved, so those tests keep working. The wedge
                      is contained instead of avoided: webdriver.pageLoad.timeout bounds the
                      driver's wait, and NavigationTimeoutRecovery recycles the browser so a
                      retry starts clean.

            "normal" is therefore preferred: the wedge is a browser defect we can contain,
            whereas "none" changes a semantic the suite legitimately depends on.

            Override per-run with -Dwebdriver.page.load.strategy=none.
            See agent-paper-trail/notes/webdriver-chrome-151-driver-hangs.md
        -->
        <webdriver.page.load.strategy>normal</webdriver.page.load.strategy>
        <!-- keep ridiculous high readTimeout for profiles that do not use db snapshot -->
        <!--
            Bound ChromeDriver's own navigation wait. MUST stay below webdriver.httpclient.readTimeout:
            if the HTTP client gives up first, the session is left wedged and later tests fail too.
            See PageLoadTimeoutRule.
        -->
        <webdriver.pageLoad.timeout>45</webdriver.pageLoad.timeout>
        <webdriver.httpclient.readTimeout>180</webdriver.httpclient.readTimeout>
        <webdriver.httpclient.wsTimeout>5</webdriver.httpclient.wsTimeout>
        <webdriver.httpclient.connectionTimeout>1</webdriver.httpclient.connectionTimeout>
        <jira.user.timezone/>

        <!--
            Local repository passed through to the nested product builds (Crowd / provider Jira /
            Confluence) started by the exec-maven-plugin executions below.

            Defaults to the *effective* local repository of the outer build, so nested builds reuse
            the same artifacts instead of populating an empty repo and re-downloading whole products
            (which pushed provisioning past the health-check timeout on local runs).

            CI passes -Dmaven.repo.local=... on the command line, which overrides this pom property
            and is also reflected by ${settings.localRepository}, so the CI behaviour is unchanged.
        -->
        <maven.repo.local>${settings.localRepository}</maven.repo.local>
        <docker.plugin.version>0.48.0</docker.plugin.version>
        <applink.jira.version>${project.version}</applink.jira.version>
        <applink.testkit.version>${testkit.version}</applink.testkit.version>
        <applink.jira.http.port>2990</applink.jira.http.port>
        <ldap.provider.jira.product.data.path>${project.basedir}/src/test/resources/ldap/preconfigured-jira-home.zip</ldap.provider.jira.product.data.path>
        <applink.confluence.http.port>1990</applink.confluence.http.port>
        <!-- Latest Confluence LTS, it's dynamically overwritten in test execution, can be outdated in pom.xml -->
        <applink.confluence.version>9.2.0</applink.confluence.version>
        <!-- Default: use standard jira-webdriver-tests JAR (no classifier) -->
        <!-- Can be overridden by zdu-mixed profile to use jar-with-zdu-xmls -->
        <jira.webdriver.tests.classifier></jira.webdriver.tests.classifier>
        <!-- flaky-tests.txt lives in jira-distribution/ -->
        <flaky.tests.file>${project.basedir}/../../jira-distribution/flaky-tests.txt</flaky.tests.file>
    </properties>

    <profiles>
        <!--
            Everything the merged jira-webdriver-tests-runner needs in order to *run* the WebDriver
            tests: the Tomcat/Cargo orchestration plugins and the test-only artifacts (test-batching,
            the Jira WAR, the backdoor/reference plugins...).

            None of it is required to merely build this module, and some of those artifacts - most
            notably com.atlassian:test-batching - are not published to the public Atlassian
            repositories. Keeping them out of the default build is what allows the source
            distribution (which customers, and the "Source Distribution WAR" CI job, build with
            -Dmaven.test.skip against public repositories only) to resolve this module at all.

            Note the value-based negation (<value>!true</value>) rather than a name-based one
            (<name>!maven.test.skip</name>): the latter only checks whether the property is *defined*,
            so an explicit -Dmaven.test.skip=false would silently deactivate the runner. With the form
            below the profile stays active unless the property is actually set to 'true', i.e. every
            job that really runs the WebDriver tests keeps the previous behaviour.

            This profile is declared first on purpose: the plugins used to live in the base <build>,
            where every other profile could override them, and profile order decides who wins.
        -->
        <profile>
            <id>webdriver-runner</id>
            <activation>
                <property>
                    <name>maven.test.skip</name>
                    <value>!true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>copy-test-plugins</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>copy-dependencies</goal>
                                </goals>
                                <configuration>
                                    <includeArtifactIds>
                                        jira-func-test-plugin,
                                        jira-testkit-plugin,
                                        atlassian-jstest-runner-plugin,
                                        jira-editor-ref-plugin,
                                        jira-issue-navigator-test-support-plugin,
                                        jira-projects-reference-plugin,
                                        jira-reference-plugin,
                                        jira-reference-dependent-plugin,
                                        jira-reference-language-pack,
                                        atlassian-whisper-backdoor-plugin
                                    </includeArtifactIds>
                                    <outputDirectory>${project.build.directory}/jirahome/plugins/installed-plugins</outputDirectory>
                                </configuration>
                            </execution>
                            <execution>
                                <id>copy-tomcat11-jars</id>
                                <goals>
                                    <goal>unpack</goal>
                                </goals>
                                <phase>pre-integration-test</phase>
                                <configuration>
                                    <skip>${skipITs}</skip>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>com.atlassian.jira</groupId>
                                            <artifactId>jira-jars-tomcat-distribution</artifactId>
                                            <version>${project.version}</version>
                                            <type>zip</type>
                                            <classifier>${tomcat.dist.flavour}</classifier>
                                        </artifactItem>
                                    </artifactItems>
                                    <outputDirectory>${installed.tomcat.dir}/lib</outputDirectory>
                                    <includes>**/*.jar</includes>
                                </configuration>
                            </execution>
                            <execution>
                                <id>copy-postgres-driver</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>copy</goal>
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>org.postgresql</groupId>
                                            <artifactId>postgresql</artifactId>
                                            <version>${postgres.jdbc.version}</version>
                                            <type>jar</type>
                                        </artifactItem>
                                    </artifactItems>
                                    <outputDirectory>${installed.tomcat.dir}/lib</outputDirectory>
                                </configuration>
                            </execution>
                            <execution>
                                <id>copy-h2-driver</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>copy</goal>
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>com.h2database</groupId>
                                            <artifactId>h2</artifactId>
                                            <version>${h2.jdbc.version}</version>
                                            <type>jar</type>
                                        </artifactItem>
                                    </artifactItems>
                                    <outputDirectory>${installed.tomcat.dir}/lib</outputDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>flaky-test-scanner</id>
                                <goals>
                                    <goal>java</goal>
                                </goals>
                                <phase>pre-integration-test</phase>
                                <configuration>
                                    <skip>${flaky.test.scanner.skip}</skip>
                                    <mainClass>com.atlassian.jira.functest.FlakyTestScanner</mainClass>
                                    <classpathScope>test</classpathScope>
                                    <arguments>
                                        <argument>${flaky.tests.file}</argument>
                                        <argument>${project.build.outputDirectory}</argument>
                                        <argument>${git.branch}</argument>
                                    </arguments>
                                </configuration>
                            </execution>
                            <execution>
                                <id>batching</id>
                                <goals>
                                    <goal>java</goal>
                                </goals>
                                <phase>pre-integration-test</phase>
                                <configuration>
                                    <skip>${batching.skip}</skip>
                                    <mainClass>com.atlassian.test.batching.StaticTestBatcher</mainClass>
                                    <classpathScope>test</classpathScope>
                                    <includePluginDependencies>true</includePluginDependencies>
                                    <systemProperties>
                                        <systemProperty>
                                            <key>product.init.skip</key>
                                            <value>true</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>include.tests</key>
                                            <value>${include.tests}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>test.packages</key>
                                            <value>${test.packages}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>batch.count</key>
                                            <value>${batch.count}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>batch.index</key>
                                            <value>${batch.index}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>use.one.based.index</key>
                                            <value>${use.one.based.index}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>batch.properties</key>
                                            <value>${batch.file}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>test.filter</key>
                                            <value>${test.filter}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>include.all.test.categories</key>
                                            <value>${include.all.test.categories}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>include.test.categories</key>
                                            <value>${include.test.categories}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>exclude.test.categories</key>
                                            <value>${exclude.test.categories}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>jira.xml.data.location</key>
                                            <value>${jira.xml.data.location}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>test.blacklist</key>
                                            <value>${test.blacklist}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>replicate.batch.with.index</key>
                                            <value>${replicate.batch.with.index}</value>
                                        </systemProperty>
                                        <systemProperty>
                                            <key>replicate.tests.in.all.batches</key>
                                            <value>${replicate.tests.in.all.batches}</value>
                                        </systemProperty>
                                    </systemProperties>
                                </configuration>
                            </execution>
                        </executions>
                        <dependencies>
                            <dependency>
                                <groupId>com.atlassian</groupId>
                                <artifactId>test-batching</artifactId>
                                <version>${atlassian-test-batching.version}</version>
                            </dependency>
                        </dependencies>
                    </plugin>

                    <plugin>
                        <groupId>org.codehaus.cargo</groupId>
                        <artifactId>cargo-maven3-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>start-jira</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>start</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>stop-jira</id>
                                <phase>post-integration-test</phase>
                                <goals>
                                    <goal>stop</goal>
                                </goals>
                                <configuration>
                                    <ignoreFailures>true</ignoreFailures>
                                </configuration>
                            </execution>
                        </executions>
                        <configuration>
                            <skip>${cargo.skip}</skip>
                            <container>
                                <timeout>300000</timeout>
                                <containerId>${amps.product.specific.cargo.container}</containerId>
                                <artifactInstaller>
                                    <groupId>org.apache.tomcat</groupId>
                                    <artifactId>apache-tomcat</artifactId>
                                    <version>${tomcat11x.version}</version>
                                </artifactInstaller>
                                <output>${jira.home}/log/container.log</output>
                                <append>false</append>
                                <systemProperties>
                                    <jira.home>${jira.home}</jira.home>
                                    <applinks.allow.all.hosts>true</applinks.allow.all.hosts>
                                    <atlassian.disable.caches>true</atlassian.disable.caches>
                                </systemProperties>
                            </container>
                            <configuration>
                                <properties>
                                    <cargo.jvmargs>${jira.tomcat.jvmargs}</cargo.jvmargs>
                                    <cargo.servlet.port>${jira.port}</cargo.servlet.port>
                                    <cargo.rmi.port>${jira.rmi.port}</cargo.rmi.port>
                                    <cargo.datasource.jndi>jdbc/JiraDS</cargo.datasource.jndi>
                                    <cargo.datasource.type>javax.sql.DataSource</cargo.datasource.type>
                                    <cargo.datasource.driver>org.h2.Driver</cargo.datasource.driver>
                                    <cargo.datasource.url>jdbc:h2:mem:h2db</cargo.datasource.url>
                                    <cargo.datasource.username>sa</cargo.datasource.username>
                                    <cargo.datasource.password></cargo.datasource.password>
                                </properties>
                                <configfiles>
                                    <configfile>
                                        <file>${project.build.testOutputDirectory}/server.xml</file>
                                        <tofile>conf/server.xml</tofile>
                                    </configfile>
                                </configfiles>
                            </configuration>
                            <deployables>
                                <deployable>
                                    <groupId>com.atlassian.jira</groupId>
                                    <artifactId>atlassian-jira-webapp</artifactId>
                                    <type>war</type>
                                    <pingURL>http://localhost:${jira.port}/${jira.context}</pingURL>
                                    <pingTimeout>300000</pingTimeout>
                                    <properties>
                                        <context>${jira.context}</context>
                                    </properties>
                                </deployable>
                            </deployables>
                        </configuration>
                    </plugin>

                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <version>${maven.failsafe.version}</version>
                        <executions>
                            <execution>
                                <id>integration-test</id>
                                <goals>
                                    <goal>integration-test</goal>
                                    <goal>verify</goal>
                                </goals>
                                <phase>integration-test</phase>
                            </execution>
                        </executions>
                        <configuration>
                            <argLine>${test.argLine}</argLine>
                            <forkCount>1</forkCount>
                            <reuseForks>true</reuseForks>
                            <includesFile>${batch.file}</includesFile>
                            <excludesFile>${flaky.tests.file}</excludesFile>
                            <rerunFailingTestsCount>${rerunFailingTestsCount}</rerunFailingTestsCount>
                            <runOrder>${test.run.order}</runOrder>
                            <systemPropertyVariables>
                                <atlassian.test.target.dir>${atlassian.test.target.dir}</atlassian.test.target.dir>
                                <jira.functest.single.testclass>${jira.functest.single.testclass}</jira.functest.single.testclass>
                                <jira.setup.analytics.iframe.url>${jira.setup.analytics.iframe.url}</jira.setup.analytics.iframe.url>
                                <webdriver.browser>${webdriver.browser}</webdriver.browser>
                                <webdriver.chrome.switches>${webdriver.chrome.switches}</webdriver.chrome.switches>
                                <webdriver.capabilities>pageLoadStrategy=${webdriver.page.load.strategy}</webdriver.capabilities>
                                <webdriver.chrome.profile.preferences>${webdriver.chrome.profile.preferences}</webdriver.chrome.profile.preferences>
                                <webdriver.httpclient.readTimeout>${webdriver.httpclient.readTimeout}</webdriver.httpclient.readTimeout>
                                <webdriver.pageLoad.timeout>${webdriver.pageLoad.timeout}</webdriver.pageLoad.timeout>
                                <webdriver.httpclient.wsTimeout>${webdriver.httpclient.wsTimeout}</webdriver.httpclient.wsTimeout>
                                <webdriver.httpclient.connectionTimeout>${webdriver.httpclient.connectionTimeout}</webdriver.httpclient.connectionTimeout>
                                <jira.qunit.testoutput.location>${project.build.directory}/failsafe-reports</jira.qunit.testoutput.location>
                                <jira.qunit.batch.index>${jira.qunit.batch.index}</jira.qunit.batch.index>
                                <jira.qunit.batch.amount>${jira.qunit.batch.amount}</jira.qunit.batch.amount>
                                <do.not.fail.on.javascript.errors>${do.not.fail.on.javascript.errors}</do.not.fail.on.javascript.errors>
                                <samba.ad.hostname>${samba.ad.hostname}</samba.ad.hostname>
                                <samba.ad.port>${samba.ad.port}</samba.ad.port>
                                <samba.ad.username>${samba.ad.username}</samba.ad.username>
                                <samba.ad.password>${samba.ad.password}</samba.ad.password>
                                <samba.ad.base.dn>${samba.ad.base.dn}</samba.ad.base.dn>
                                <ldap.provider.jira.host>${ldap.provider.jira.host}</ldap.provider.jira.host>
                                <ldap.provider.jira.http.port>${ldap.provider.jira.http.port}</ldap.provider.jira.http.port>
                                <ldap.provider.jira.context.path>${ldap.provider.jira.context.path}</ldap.provider.jira.context.path>
                                <ldap.provider.jira.application.name>${ldap.provider.jira.application.name}</ldap.provider.jira.application.name>
                                <ldap.provider.jira.application.password>${ldap.provider.jira.application.password}</ldap.provider.jira.application.password>
                                <!-- flaky test reporter config -->
                                <junitflakylistener.branchName>${env.bamboo_planRepository_branchName}</junitflakylistener.branchName>
                                <junitflakylistener.failBranchWithNewFlakes>false</junitflakylistener.failBranchWithNewFlakes>
                                <junitflakylistener.jiraPassword>${env.bamboo_bulldog_jira_ci_reporter_bot_password}</junitflakylistener.jiraPassword>
                                <junitflakylistener.jiraProjectConfigPath>issuecreator_config.json</junitflakylistener.jiraProjectConfigPath>
                                <junitflakylistener.jiraUserName>${env.bamboo_bulldog_jira_ci_reporter_bot_username}</junitflakylistener.jiraUserName>
                                <junitflakylistener.maxFailuresReportedToJiraPerSession>30</junitflakylistener.maxFailuresReportedToJiraPerSession>
                                <junitflakylistener.reportBranchName>true</junitflakylistener.reportBranchName>
                                <junitflakylistener.reportAllFailures>true</junitflakylistener.reportAllFailures>
                                <junitflakylistener.runnerId>${env.bamboo_buildResultKey}</junitflakylistener.runnerId>
                                <junitflakylistener.trackFlakyTest>true</junitflakylistener.trackFlakyTest>
                                <junitflakylistener.trackFlakyTestOnBranchesRegExp>master|cihealthmonitor-master-.*|stable/10.*</junitflakylistener.trackFlakyTestOnBranchesRegExp>
                                <junitflakylistener.updateIssueOnBranches>false</junitflakylistener.updateIssueOnBranches>
                                <test.jira.setup.skip>${test.jira.setup.skip}</test.jira.setup.skip>
                                <test.server.properties>${project.build.testOutputDirectory}/localtest.properties</test.server.properties>
                            </systemPropertyVariables>
                            <properties>
                                <property>
                                    <name>listener</name>
                                    <value>com.atlassian.jira.webtest.capture.JUnit4FFMpegRunListener</value>
                                </property>
                            </properties>
                        </configuration>
                        <dependencies>
                            <dependency>
                                <groupId>com.atlassian.upm</groupId>
                                <artifactId>upm-application-plugin</artifactId>
                                <version>${upm.version}</version>
                            </dependency>
                        </dependencies>
                    </plugin>

                    <!-- Confluence instance for applinks integration tests -->
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>confluence-maven-plugin</artifactId>
                        <version>${amps.version}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <productVersion>${applink.confluence.version}</productVersion>
                            <httpPort>${applink.confluence.http.port}</httpPort>
                            <output>${project.build.directory}/confluence/home/logs/atlassian-confluence.log</output>
                            <allowGoogleTracking>false</allowGoogleTracking>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
            <dependencies>
                <dependency>
                    <groupId>com.atlassian.jira</groupId>
                    <artifactId>atlassian-jira-webapp</artifactId>
                    <version>${jira.war.version}</version>
                    <type>war</type>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.jira</groupId>
                    <artifactId>jira-func-test-plugin</artifactId>
                    <version>${project.version}</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.jira.tests</groupId>
                    <artifactId>jira-testkit-plugin</artifactId>
                    <version>${testkit.version}</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.jira</groupId>
                    <artifactId>jira-issue-navigator-test-support-plugin</artifactId>
                    <version>${project.version}</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.jira</groupId>
                    <artifactId>jira-reference-plugin</artifactId>
                    <version>${project.version}</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.jira</groupId>
                    <artifactId>jira-reference-dependent-plugin</artifactId>
                    <version>${project.version}</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.jira</groupId>
                    <artifactId>jira-reference-language-pack</artifactId>
                    <version>${project.version}</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.jira</groupId>
                    <artifactId>jira-projects-reference-plugin</artifactId>
                    <version>${project.version}</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.jira.plugins</groupId>
                    <artifactId>jira-editor-ref-plugin</artifactId>
                    <version>${project.version}</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.plugins.jstestrunner</groupId>
                    <artifactId>atlassian-jstest-runner-plugin</artifactId>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>com.atlassian.whisper</groupId>
                    <artifactId>atlassian-whisper-backdoor-plugin</artifactId>
                    <version>${whisper.version}</version>
                    <scope>runtime</scope>
                </dependency>
            </dependencies>
        </profile>

        <profile>
            <id>jar-with-dependencies</id>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <configuration>
                            <descriptors>
                                <descriptor>jar-with-dependencies-less-xmls-descriptor.xml</descriptor>
                            </descriptors>
                        </configuration>
                        <executions>
                            <execution>
                                <id>build-jar-with-dependencies</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>single</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>webdriver-backup-files-validation</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-backup-files-validator-plugin</artifactId>
                        <version>1.0.0</version>
                        <executions>
                            <execution>
                                <phase>generate-resources</phase>
                                <goals>
                                    <goal>validate</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <xmlLocation>xml/webdriver_test_xml_resources</xmlLocation>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>webdriver-backup-files-validation-local</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-backup-files-validator-plugin</artifactId>
                        <version>1.0.0</version>
                        <executions>
                            <execution>
                                <phase>generate-resources</phase>
                                <goals>
                                    <goal>validate</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <localMode>true</localMode>
                            <xmlLocation>xml/webdriver_test_xml_resources</xmlLocation>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!-- ==================== Profiles merged from jira-webdriver-tests-runner ==================== -->
        <profile>
            <id>use-h2-snapshot</id>
            <activation>
                <property>
                    <name>!test.jira.setup.skip</name>
                </property>
            </activation>
            <properties>
                <!--
                    Kept low so a browser crash is detected quickly, but it MUST stay above
                    webdriver.pageLoad.timeout (45s): whichever fires first decides whether a stuck
                    navigation costs one failed command (driver times out, session survives) or a
                    wedged session that also fails later tests (HTTP client times out first).
                    See PageLoadTimeoutRule.
                -->
                <webdriver.httpclient.readTimeout>90</webdriver.httpclient.readTimeout>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>com.atlassian.jira.plugins</groupId>
                    <artifactId>jira-plugin-test-resources</artifactId>
                    <version>${project.version}</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
            <build>
                <testResources>
                    <testResource>
                        <directory>src/test/resources</directory>
                        <includes>
                            <include>dbconfig.xml</include>
                        </includes>
                        <filtering>true</filtering>
                        <targetPath>../jirahome</targetPath>
                    </testResource>
                </testResources>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <artifactId>maven-dependency-plugin</artifactId>
                            <executions>
                                <execution>
                                    <id>unpack-database-snapshot</id>
                                    <goals>
                                        <goal>unpack-dependencies</goal>
                                    </goals>
                                    <phase>pre-integration-test</phase>
                                    <configuration>
                                        <includeArtifactIds>jira-plugin-test-resources</includeArtifactIds>
                                        <outputDirectory>${project.build.directory}/generated-snapshot</outputDirectory>
                                        <excludeTransitive>true</excludeTransitive>
                                        <overWriteSnapshots>true</overWriteSnapshots>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>
                        <plugin>
                            <groupId>org.codehaus.mojo</groupId>
                            <artifactId>exec-maven-plugin</artifactId>
                            <executions>
                                <execution>
                                    <id>move-database-cfg-and-snapshot</id>
                                    <phase>pre-integration-test</phase>
                                    <goals>
                                        <goal>exec</goal>
                                    </goals>
                                    <configuration>
                                        <executable>sh</executable>
                                        <arguments>
                                            <argument>-c</argument>
                                            <argument>rm -rf "${project.build.directory}/jirahome/database"; mkdir -p "${project.build.directory}/jirahome/data/attachments"; cp "${project.build.directory}/test-classes/dbconfig.xml" "${project.build.directory}/jirahome/."; mv -f "${project.build.directory}/generated-snapshot/jira-home/snapshot/" "${project.build.directory}/jirahome/database"</argument>
                                        </arguments>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>

        <profile>
            <id>qunit-test</id>
            <activation>
                <property>
                    <name>jira.functest.single.testclass</name>
                    <value>com.atlassian.jira.webtest.webdriver.qunit.TestQunit</value>
                </property>
            </activation>
            <properties>
                <test.packages>com.atlassian.jira.webtest.webdriver.qunit</test.packages>
                <include.test.categories>QUNIT</include.test.categories>
                <exclude.test.categories/>
                <do.not.fail.on.javascript.errors>true</do.not.fail.on.javascript.errors>
            </properties>
        </profile>

        <profile>
            <id>qunit-test-artifact-cache</id>
            <activation>
                <property>
                    <name>jira.test.suite.class</name>
                    <value>com.atlassian.jira.webdriver.testsuite.EmptyTestSuite</value>
                </property>
            </activation>
            <properties>
                <test.packages>com.atlassian.jira.webdriver.webtest</test.packages>
                <include.tests>com.atlassian.jira.webdriver.webtest.TestDummy</include.tests>
                <include.test.categories>WEBDRIVER_TEST</include.test.categories>
                <exclude.test.categories/>
            </properties>
        </profile>

        <profile>
            <id>provide-openldap-docker</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>io.fabric8</groupId>
                        <artifactId>docker-maven-plugin</artifactId>
                        <version>${docker.plugin.version}</version>
                        <configuration>
                            <images>
                                <image>
                                    <alias>openldap</alias>
                                    <name>rroemhild/test-openldap</name>
                                    <run>
                                        <platform>linux/amd64</platform>
                                        <ports>
                                            <port>10389:10389</port>
                                            <port>10636:10636</port>
                                        </ports>
                                        <wait>
                                            <log>slapd starting</log>
                                            <time>60000</time>
                                        </wait>
                                    </run>
                                </image>
                            </images>
                        </configuration>
                        <executions>
                            <execution>
                                <id>start</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>start</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>stop</id>
                                <phase>post-integration-test</phase>
                                <goals>
                                    <goal>stop</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>provide-activedirectory-docker</id>
            <properties>
                <samba.ad.hostname>localhost</samba.ad.hostname>
                <samba.ad.port>10389</samba.ad.port>
                <samba.ad.username>cn=admin,ou=system,dc=test,dc=local</samba.ad.username>
                <samba.ad.password>password</samba.ad.password>
                <samba.ad.base.dn>dc=test,dc=local</samba.ad.base.dn>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>io.fabric8</groupId>
                        <artifactId>docker-maven-plugin</artifactId>
                        <version>${docker.plugin.version}</version>
                        <configuration>
                            <images>
                                <image>
                                    <name>diegogslomp/samba-ad-dc:4.23.4</name>
                                    <alias>samba-ad-dc</alias>
                                    <run>
                                        <platform>linux/amd64</platform>
                                        <privileged>true</privileged>
                                        <namingStrategy>alias</namingStrategy>
                                        <env>
                                            <REALM>TEST.LOCAL</REALM>
                                            <DOMAIN>TEST</DOMAIN>
                                            <ADMIN_PASS>AdminPassword123</ADMIN_PASS>
                                            <DNS_FORWARDER>8.8.8.8</DNS_FORWARDER>
                                            <BIND_NETWORK_INTERFACES>false</BIND_NETWORK_INTERFACES>
                                        </env>
                                        <ports>
                                            <port>10389:389</port>
                                            <port>636:636</port>
                                        </ports>
                                        <volumes>
                                            <bind>
                                                <volume>${project.basedir}/src/test/resources/ldap/activedirectory-init.sh:/ldif/import-ldif.sh</volume>
                                            </bind>
                                        </volumes>
                                        <wait>
                                            <log>LDIF import completed successfully</log>
                                            <time>60000</time>
                                        </wait>
                                        <log>
                                            <prefix>samba-ad-dc:</prefix>
                                            <color>yellow</color>
                                        </log>
                                        <entrypoint>
                                            <exec>
                                                <arg>/bin/bash</arg>
                                                <arg>-c</arg>
                                                <arg>samba-domain-provision &amp;&amp; chmod +x /ldif/import-ldif.sh &amp;&amp; /ldif/import-ldif.sh &amp;&amp; samba -F</arg>
                                            </exec>
                                        </entrypoint>
                                    </run>
                                </image>
                            </images>
                        </configuration>
                        <executions>
                            <execution>
                                <id>start</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>start</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>stop</id>
                                <phase>post-integration-test</phase>
                                <goals>
                                    <goal>stop</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>provide-crowd-as-ldap</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>crowd-maven-plugin</artifactId>
                        <version>${amps.version}</version>
                        <extensions>true</extensions>

                        <configuration>
                            <output>${project.build.directory}/jirahome/log/crowd-instance.log</output>
                            <jvmArgs>${jira.user.extra.jvmargs}</jvmArgs>

                            <skipTests>true</skipTests>
                            <allowGoogleTracking>false</allowGoogleTracking>
                            <awaitFullInitialization>true</awaitFullInitialization>
                            <buildTestPlugin>false</buildTestPlugin>
                            <compressResources>true</compressResources>
                            <enableDevToolbox>false</enableDevToolbox>
                            <enablePde>false</enablePde>
                            <enablePluginViewer>false</enablePluginViewer>
                            <enableQuickReload>false</enableQuickReload>
                            <extractDependencies>false</extractDependencies>
                            <extractTestDependencies>false</extractTestDependencies>
                            <installPlugin>false</installPlugin>
                            <skipAllPrompts>true</skipAllPrompts>
                            <skipBanningDependencies>true</skipBanningDependencies>
                            <skipManifestValidation>true</skipManifestValidation>
                            <skipRestDocGeneration>true</skipRestDocGeneration>
                            <writePropertiesToFile>true</writePropertiesToFile>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>start-crowd</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                                <configuration>
                                    <async>true</async>
                                    <asyncDestroyOnShutdown>true</asyncDestroyOnShutdown>
                                    <executable>mvn</executable>
                                    <workingDirectory>${project.basedir}</workingDirectory>
                                    <arguments>
                                        <argument>crowd:run</argument>
                                        <argument>-P provide-crowd-as-ldap</argument>
                                        <argument>-ntp</argument>
                                        <argument>-B</argument>
                                        <!--
                                          `crowd:run` forks the `package` lifecycle. This profile used to live in the
                                          (test-less) jira-webdriver-tests-runner module, where that fork was a no-op.
                                          Now that it lives in the test module itself, the fork would compile and run
                                          this module's tests before Crowd ever starts, so skip all test work in the
                                          nested build - we only need it to reach `package`.
                                        -->
                                        <argument>-Dmaven.test.skip=true</argument>
                                        <!-- Needed to provide bamboo mvn artifacts with custom version set -->
                                        <argument>-Dmaven.repo.local=${maven.repo.local}</argument>
                                    </arguments>
                                </configuration>
                            </execution>
                            <execution>
                                <id>wait-for-crowd-startup</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                                <configuration>
                                    <executable>sh</executable>
                                    <arguments>
                                        <argument>-c</argument>
                                        <argument>
                                            <![CDATA[
                                            timeout=300
                                            interval=10
                                            url="http://localhost:4990/crowd/status"
                                            elapsed=0

                                            echo "Starting Crowd health check:"
                                            echo "- URL: $url"
                                            echo "- Timeout: ${timeout}s"
                                            echo "- Check interval: ${interval}s"

                                            while [ $elapsed -lt $timeout ]; do
                                                echo "⋯ Checking Crowd health at $url (${elapsed}s elapsed)"

                                                response=$(curl -s -w "\n%{http_code}" $url -u admin:admin)
                                                http_code=$(echo "$response" | tail -n1)
                                                body=$(echo "$response" | sed '$d')

                                                if [ "$http_code" == "200" ]; then
                                                    echo "✓ Crowd is up and running (took ${elapsed}s)"
                                                    exit 0
                                                elif [ "$http_code" == "000" ]; then
                                                    echo "⚠ Connection refused"
                                                else
                                                    if [ -n "$body" ]; then
                                                        echo "⚠ Received HTTP $http_code with body: $body"
                                                    else
                                                        echo "⚠ Received HTTP $http_code (no response body)"
                                                    fi
                                                fi

                                                sleep $interval
                                                elapsed=$((elapsed + interval))
                                            done

                                            echo "✗ Crowd did not start in ${timeout} seconds"
                                            echo "✗ Last attempt returned HTTP $http_code"
                                            exit 1
                                        ]]>
                                        </argument>
                                    </arguments>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>provide-second-jira-as-ldap</id>
            <properties>
                <!--
                  These values are surfaced to the tests as system properties via the failsafe
                  `systemProperties` block below; TestJiraAsLdapProvider reads them through
                  `jira.environmentData().getRequiredProperty(...)`.
                  `ldap.provider.jira.product.data.path` is declared with the other module
                  properties, as it is independent of this profile being active.
                -->
                <ldap.provider.jira.version>${project.version}</ldap.provider.jira.version>
                <ldap.provider.jira.host>localhost</ldap.provider.jira.host>
                <ldap.provider.jira.http.port>3990</ldap.provider.jira.http.port>
                <ldap.provider.jira.context.path>/jira-ldap</ldap.provider.jira.context.path>
                <ldap.provider.jira.application.name>otherjira</ldap.provider.jira.application.name>
                <ldap.provider.jira.application.password>otherjira</ldap.provider.jira.application.password>
                <ldap.provider.jira.testkit.version>${testkit.version}</ldap.provider.jira.testkit.version>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>jira-maven-plugin</artifactId>
                        <version>${amps.version}</version>
                        <extensions>true</extensions>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>start-provider-jira</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                                <configuration>
                                    <async>true</async>
                                    <asyncDestroyOnShutdown>true</asyncDestroyOnShutdown>
                                    <executable>mvn</executable>
                                    <workingDirectory>${project.basedir}</workingDirectory>
                                    <arguments>
                                        <argument>jira:run</argument>
                                        <argument>-P provide-second-jira-as-ldap</argument>
                                        <argument>-ntp</argument>
                                        <argument>-B</argument>
                                        <!--
                                          `jira:run` forks the `package` lifecycle. This profile used to live in the
                                          (test-less) jira-webdriver-tests-runner module, where that fork was a no-op.
                                          Now that it lives in the test module itself, the fork would compile and run
                                          this module's tests before the provider Jira ever starts, so skip all test
                                          work in the nested build - we only need it to reach `package`.
                                        -->
                                        <argument>-Dmaven.test.skip=true</argument>
                                        <argument>-Dhttp.port=${ldap.provider.jira.http.port}</argument>
                                        <argument>-Dcontext.path=${ldap.provider.jira.context.path}</argument>
                                        <argument>-Djira.version=${ldap.provider.jira.version}</argument>
                                        <argument>-Dproduct.version=${ldap.provider.jira.version}</argument>
                                        <!-- Needed to provide bamboo mvn artifacts with custom version set -->
                                        <argument>-Dmaven.repo.local=${maven.repo.local}</argument>
                                        <argument>-Dproduct.data.path=${ldap.provider.jira.product.data.path}</argument>
                                    </arguments>
                                </configuration>
                            </execution>
                            <execution>
                                <id>wait-for-provider-jira-startup</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                                <configuration>
                                    <executable>sh</executable>
                                    <arguments>
                                        <argument>-c</argument>
                                        <argument>
                                            <![CDATA[
                                            timeout=300
                                            interval=10
                                            port=${ldap.provider.jira.http.port}
                                            url="http://localhost:$port/jira-ldap/rest/api/2/serverInfo"
                                            elapsed=0

                                            echo "Starting Jira health check:"
                                            echo "- URL: $url"
                                            echo "- Timeout: ${timeout}s"
                                            echo "- Check interval: ${interval}s"

                                            while [ $elapsed -lt $timeout ]; do
                                                echo "⋯ Checking Jira health at $url (${elapsed}s elapsed)"

                                                response=$(curl -s -w "\n%{http_code}" $url -u admin2:admin2)
                                                http_code=$(echo "$response" | tail -n1)
                                                body=$(echo "$response" | sed '$d')

                                                if [ "$http_code" == "200" ]; then
                                                    echo "✓ Jira is up and running (took ${elapsed}s)"
                                                    echo "✓ Server info: $body"
                                                    exit 0
                                                elif [ "$http_code" == "000" ]; then
                                                    echo "⚠ Connection refused"
                                                else
                                                    if [ -n "$body" ]; then
                                                        echo "⚠ Received HTTP $http_code with body: $body"
                                                    else
                                                        echo "⚠ Received HTTP $http_code (no response body)"
                                                    fi
                                                fi

                                                sleep $interval
                                                elapsed=$((elapsed + interval))
                                            done

                                            echo "✗ Jira did not start in ${timeout} seconds"
                                            echo "✗ Last attempt returned HTTP $http_code"
                                            exit 1
                                        ]]>
                                        </argument>
                                    </arguments>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>debug-test</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <test.debug>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5006</test.debug>
            </properties>
        </profile>

        <profile>
            <id>debug-jira</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <jira.debug>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005</jira.debug>
            </properties>
        </profile>

        <profile>
            <id>remote-jmx</id>
            <properties>
                <jira.jmx.jvmargs>-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8199
                    -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
                </jira.jmx.jvmargs>
            </properties>
        </profile>

        <profile>
            <id>jacoco</id>
            <properties>
                <jacoco.jvmargs>${jacoco.agent}</jacoco.jvmargs>
            </properties>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.jacoco</groupId>
                            <artifactId>jacoco-maven-plugin</artifactId>
                            <executions>
                                <execution>
                                    <id>prepare-agent</id>
                                    <goals>
                                        <goal>prepare-agent</goal>
                                    </goals>
                                    <configuration>
                                        <propertyName>jacoco.agent</propertyName>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>
                        <plugin>
                            <groupId>org.codehaus.mojo</groupId>
                            <artifactId>exec-maven-plugin</artifactId>
                            <executions>
                                <execution>
                                    <id>kill-tomcat-jvm-to-trigger-jacoco-dump</id>
                                    <phase>post-integration-test</phase>
                                    <goals>
                                        <goal>exec</goal>
                                    </goals>
                                    <configuration>
                                        <executable>sh</executable>
                                        <arguments>
                                            <argument>-c</argument>
                                            <argument>pkill -f "org.apache.catalina.startup.Bootstrap start"</argument>
                                        </arguments>
                                        <successCodes>
                                            <successCode>0</successCode>
                                            <successCode>1</successCode>
                                            <successCode>143</successCode>
                                        </successCodes>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>

        <profile>
            <id>cuj</id>
            <properties>
                <test.filter>com.atlassian.jira.functest.framework.suite.WebTestCriticalUserJourneyFilter</test.filter>
            </properties>
        </profile>

        <!-- Runner ZDU profile: overrides classifier for ZDU-mixed testing -->
        <profile>
            <id>zdu-mixed-runner</id>
            <properties>
                <jira.webdriver.tests.classifier>jar-with-zdu-xmls</jira.webdriver.tests.classifier>
            </properties>
        </profile>
        <!-- ==================== End of merged runner profiles ==================== -->

        <profile>
            <!-- To be replaced by generate-zdu-xml-sources in regular build   -->
            <id>zdu-mixed</id>
            <properties>
                <jira.stable.version>7.3.0</jira.stable.version>
            </properties>
            <build>
                <resources>
                    <resource>
                        <directory>${project.build.directory}/generated-resources/xml</directory>
                        <targetPath>xml</targetPath>
                    </resource>
                </resources>
                <plugins>
                    <plugin>
                        <artifactId>maven-resources-plugin</artifactId>
                        <configuration>
                            <overwrite>true</overwrite>
                        </configuration>
                    </plugin>
                    <plugin>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>generate-test-xml-sources</id>
                                <phase>none</phase>
                            </execution>
                            <execution>
                                <id>generate-test-xml-sources-zdu</id>
                                <goals>
                                    <goal>unpack</goal>
                                </goals>
                                <phase>generate-resources</phase>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>com.atlassian.jira</groupId>
                                            <artifactId>jira-webdriver-tests</artifactId>
                                            <version>${jira.stable.version}</version>
                                            <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
                                            <overWrite>true</overWrite>
                                            <includes>xml/**</includes>
                                        </artifactItem>
                                    </artifactItems>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!-- Profile for running AppLinks tests that requires External Service (Gitlab) -->
        <profile>
            <id>applinks-tests-with-external-service</id>
            <properties>
                <include.test.categories>APP_LINKS_WITH_EXTERNAL_SERVICE</include.test.categories>
                <exclude.test.categories/>
            </properties>
        </profile>

        <!-- Profile for running AppLinks tests against a second Jira instance -->
        <profile>
            <id>applinks-tests-with-second-jira</id>
            <properties>
                <include.test.categories>APP_LINKS_WITH_ANOTHER_JIRA</include.test.categories>
                <exclude.test.categories/>
            </properties>
            <build>
                <plugins>
                    <!-- configuration for an additional Jira instance used for application links integration tests -->
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>jira-maven-plugin</artifactId>
                        <version>${amps.version}</version>
                        <extensions>true</extensions>

                        <configuration>
                            <httpPort>${applink.jira.http.port}</httpPort>
                            <productVersion>${applink.jira.version}</productVersion>
                            <productDataVersion>${applink.jira.version}</productDataVersion>
                            <output>${project.build.directory}/jirahome/log/second-jira-instance.log</output>

                            <skipTests>true</skipTests>
                            <allowGoogleTracking>false</allowGoogleTracking>
                            <awaitFullInitialization>true</awaitFullInitialization>
                            <buildTestPlugin>false</buildTestPlugin>
                            <compressResources>true</compressResources>
                            <enableDevToolbox>false</enableDevToolbox>
                            <enablePde>false</enablePde>
                            <enablePluginViewer>false</enablePluginViewer>
                            <enableQuickReload>false</enableQuickReload>
                            <extractDependencies>false</extractDependencies>
                            <extractTestDependencies>false</extractTestDependencies>
                            <installPlugin>false</installPlugin>
                            <skipAllPrompts>true</skipAllPrompts>
                            <skipBanningDependencies>true</skipBanningDependencies>
                            <skipManifestValidation>true</skipManifestValidation>
                            <skipRestDocGeneration>true</skipRestDocGeneration>
                            <writePropertiesToFile>true</writePropertiesToFile>

                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.tests</groupId>
                                    <artifactId>jira-testkit-plugin</artifactId>
                                    <version>${applink.testkit.version}</version>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>start-second-jira-in-background</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                                <configuration>
                                    <async>true</async>
                                    <asyncDestroyOnShutdown>true</asyncDestroyOnShutdown>
                                    <executable>mvn</executable>
                                    <workingDirectory>${project.basedir}</workingDirectory>
                                    <arguments>
                                        <argument>jira:run</argument>
                                        <argument>-P applinks-tests-with-second-jira</argument>
                                        <argument>-ntp</argument>
                                        <argument>-B</argument>
                                        <!--
                                          `jira:run` forks the `package` lifecycle. This profile used to live in the
                                          (test-less) jira-webdriver-tests-runner module, where that fork was a no-op.
                                          Now that it lives in the test module itself, the fork would compile and run
                                          this module's tests before the second Jira ever starts, so skip all test
                                          work in the nested build - we only need it to reach `package`.
                                        -->
                                        <argument>-Dmaven.test.skip=true</argument>
                                        <argument>-Dapplink.jira.version=${applink.jira.version}</argument>
                                        <argument>-Dapplink.testkit.version=${applink.testkit.version}</argument>
                                        <!-- Needed for JDK21 support for byte-buddy in older Jira LTS -->
                                        <argument>-Dnet.bytebuddy.experimental=true</argument>
                                        <!-- Needed to provide bamboo mvn artifacts with custom version set -->
                                        <argument>-Dmaven.repo.local=${maven.repo.local}</argument>
                                    </arguments>
                                </configuration>
                            </execution>
                            <execution>
                                <id>wait-for-second-jira-startup</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                                <configuration>
                                    <executable>sh</executable>
                                    <arguments>
                                        <argument>-c</argument>
                                        <argument>
                                            <![CDATA[
                                            timeout=300
                                            interval=10
                                            port=${applink.jira.http.port}
                                            url="http://localhost:$port/jira/rest/api/2/serverInfo"
                                            elapsed=0

                                            echo "Starting Jira health check:"
                                            echo "- URL: $url"
                                            echo "- Timeout: ${timeout}s"
                                            echo "- Check interval: ${interval}s"

                                            while [ $elapsed -lt $timeout ]; do
                                                echo "⋯ Checking Jira health at $url (${elapsed}s elapsed)"

                                                response=$(curl -s -w "\n%{http_code}" $url -u admin:admin)
                                                http_code=$(echo "$response" | tail -n1)
                                                body=$(echo "$response" | sed '$d')

                                                if [ "$http_code" == "200" ]; then
                                                    echo "✓ Jira is up and running (took ${elapsed}s)"
                                                    echo "✓ Server info: $body"
                                                    exit 0
                                                elif [ "$http_code" == "000" ]; then
                                                    echo "⚠ Connection refused"
                                                else
                                                    if [ -n "$body" ]; then
                                                        echo "⚠ Received HTTP $http_code with body: $body"
                                                    else
                                                        echo "⚠ Received HTTP $http_code (no response body)"
                                                    fi
                                                fi

                                                sleep $interval
                                                elapsed=$((elapsed + interval))
                                            done

                                            echo "✗ Jira did not start in ${timeout} seconds"
                                            echo "✗ Last attempt returned HTTP $http_code"
                                            exit 1
                                        ]]>
                                        </argument>
                                    </arguments>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!-- Profile for running AppLinks tests against a Confluence instance -->
        <profile>
            <id>applinks-tests-with-confluence</id>
            <properties>
                <include.test.categories>APP_LINKS_WITH_CONFLUENCE</include.test.categories>
                <exclude.test.categories/>
            </properties>
            <build>
                <plugins>
                    <!--
                      The confluence-maven-plugin itself (product version, http port, log output) is
                      declared in the always-active build section, so this profile only has to launch
                      it and wait for it to come up.
                    -->
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>start-confluence-in-background</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                                <configuration>
                                    <async>true</async>
                                    <asyncDestroyOnShutdown>true</asyncDestroyOnShutdown>
                                    <executable>mvn</executable>
                                    <workingDirectory>${project.basedir}</workingDirectory>
                                    <arguments>
                                        <argument>confluence:run</argument>
                                        <argument>-ntp</argument>
                                        <argument>-B</argument>
                                        <!--
                                          `confluence:run` forks the `package` lifecycle. This profile used to live in
                                          the (test-less) jira-webdriver-tests-runner module, where that fork was a
                                          no-op. Now that it lives in the test module itself, the fork would compile
                                          and run this module's tests before Confluence ever starts, so skip all test
                                          work in the nested build - we only need it to reach `package`.
                                        -->
                                        <argument>-Dmaven.test.skip=true</argument>
                                        <argument>-Dapplink.confluence.version=${applink.confluence.version}</argument>
                                        <argument>-Dserver=localhost</argument>
                                        <!-- Needed to provide bamboo mvn artifacts with custom version set -->
                                        <argument>-Dmaven.repo.local=${maven.repo.local}</argument>
                                    </arguments>
                                </configuration>
                            </execution>
                            <execution>
                                <id>wait-for-confluence-startup</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                                <configuration>
                                    <executable>sh</executable>
                                    <arguments>
                                        <argument>-c</argument>
                                        <argument>
                                            <![CDATA[
                                            timeout=300
                                            interval=10
                                            port=${applink.confluence.http.port}
                                            url="http://localhost:$port/confluence/rest/api/space"
                                            elapsed=0

                                            echo "Starting Confluence health check:"
                                            echo "- URL: $url"
                                            echo "- Timeout: ${timeout}s"
                                            echo "- Check interval: ${interval}s"

                                            while [ $elapsed -lt $timeout ]; do
                                                echo "⋯ Checking Confluence health at $url (${elapsed}s elapsed)"

                                                response=$(curl -s -w "\n%{http_code}" $url -u admin:admin)
                                                http_code=$(echo "$response" | tail -n1)
                                                body=$(echo "$response" | sed '$d')

                                                if [ "$http_code" == "200" ]; then
                                                    echo "✓ Confluence is up and running (took ${elapsed}s)"
                                                    exit 0
                                                elif [ "$http_code" == "000" ]; then
                                                    echo "⚠ Connection refused"
                                                else
                                                    if [ -n "$body" ]; then
                                                        echo "⚠ Received HTTP $http_code with body: $body"
                                                    else
                                                        echo "⚠ Received HTTP $http_code (no response body)"
                                                    fi
                                                fi

                                                sleep $interval
                                                elapsed=$((elapsed + interval))
                                            done

                                            echo "✗ Confluence did not start in ${timeout} seconds"
                                            echo "✗ Last attempt returned HTTP $http_code"
                                            exit 1
                                        ]]>
                                        </argument>
                                    </arguments>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <build>
        <resources>
            <!--
              The XML backups stay in src/main/xml so that they are published in the module's main
              jar: the zdu profile below unpacks xml/** from the released jira-webdriver-tests
              artifact, jira-func-tests-runner points jira.xml.upgrade.dataLocation here, and the
              webdriver-backup-files-validation profile resolves its root as <basedir>/src/main/xml.
            -->
            <resource>
                <directory>src/main/xml</directory>
                <targetPath>xml</targetPath>
            </resource>
        </resources>
        <testResources>
            <testResource>
                <directory>src/test/resources</directory>
                <filtering>true</filtering>
                <excludes>
                    <exclude>**/*.zip</exclude>
                    <exclude>**/*.jar</exclude>
                    <exclude>**/*.obr</exclude>
                    <exclude>**/*.png</exclude>
                    <exclude>**/*.jpg</exclude>
                    <exclude>**/*.gif</exclude>
                </excludes>
            </testResource>
            <testResource>
                <directory>src/test/resources</directory>
                <filtering>false</filtering>
                <includes>
                    <include>**/*.zip</include>
                    <include>**/*.jar</include>
                    <include>**/*.obr</include>
                    <include>**/*.png</include>
                    <include>**/*.jpg</include>
                    <include>**/*.gif</include>
                </includes>
            </testResource>
        </testResources>
        <plugins>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>${maven.test.unit.skip}</skip>
                    <includes>
                        <include>**/TestDummy.java</include>
                        <include>**/TestWebDriverXmlBackups.java</include>
                        <include>**/TestWebDriverUpgradeXmls.java</include>
                    </includes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <id>test-jar</id>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                        <configuration>
                            <forceCreation>true</forceCreation>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- Always build jar-with-zdu-xmls artifact alongside the main JAR -->
            <!-- Step 1: Copy source XML files to zdu-resources as base -->
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-source-xmls-for-zdu</id>
                        <phase>generate-test-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/zdu-resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>src/main/xml</directory>
                                    <targetPath>xml</targetPath>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- Step 2: Overlay with stable version XML files (overwriting source XMLs) -->
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>generate-zdu-xml-sources</id>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <phase>process-resources</phase>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>com.atlassian.jira</groupId>
                                    <artifactId>jira-webdriver-tests</artifactId>
                                    <version>${jira.stable.version}</version>
                                    <outputDirectory>${project.build.directory}/zdu-resources</outputDirectory>
                                    <overWrite>true</overWrite>
                                    <includes>xml/**</includes>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- Use Assembly plugin to create JAR with ZDU XMLs -->
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <id>build-jar-with-zdu-xmls</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <!-- Use relative path like jar-with-dependencies-less-xmls-descriptor.xml -->
                            <descriptors>
                                <descriptor>jar-with-zdu-xmls-descriptor.xml</descriptor>
                            </descriptors>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-func-tests</artifactId>
            <version>${project.version}</version>
            <scope>compile</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-simple</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>jetty-server</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-library</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.selenium</groupId>
            <artifactId>atlassian-webdriver-core</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-ui-test-utils</artifactId>
            <version>${project.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-library</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.upm</groupId>
            <artifactId>atlassian-universal-plugin-manager-pageobjects</artifactId>
            <version>${upm.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>atlassian-jira-pageobjects</artifactId>
            <version>${project.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-library</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.selenium</groupId>
            <artifactId>atlassian-pageobjects-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.selenium</groupId>
            <artifactId>atlassian-pageobjects-elements</artifactId>
        </dependency>
        <!-- jira-editor-pageobjects merged into atlassian-jira-pageobjects -->
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-dnd-attachment-pageobjects</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.integrationtesting</groupId>
            <artifactId>atlassian-integrationtesting-lib</artifactId>
            <version>1.1.3</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.inject</groupId>
                    <artifactId>guice</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.google.collections</groupId>
                    <artifactId>google-collections</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>junit</groupId>
                    <artifactId>junit-dep</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>xalan</groupId>
                    <artifactId>xalan</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.jstestrunner</groupId>
            <artifactId>atlassian-jstest-runner-pageobjects</artifactId>
        </dependency>

        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-rest-java-client-core</artifactId>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.tests</groupId>
            <artifactId>jira-testkit-client</artifactId>
            <scope>compile</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-library</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.velocity</groupId>
            <artifactId>atlassian-velocity</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>log4j</groupId>
                    <artifactId>log4j</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.velocity</groupId>
            <artifactId>velocity</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-pool2</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian</groupId>
            <artifactId>atlassian-test-categories</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.uri</groupId>
            <artifactId>atlassian-uri</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.browsers</groupId>
            <artifactId>atlassian-browsers-auto</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.pageweight</groupId>
            <artifactId>webdriver-page-weight</artifactId>
            <version>2.0.3</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-importers-plugin-tests</artifactId>
            <version>${jim.version}</version>
            <exclusions>
                <!-- Embedded scanner 1.x libs violate enforce_spring_scanner_scope because they get dependency managed up to 2.x:
                     irrelevant side effect of jira-importers-plugin having 'compile' scope here to put it in test's classpath -->
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.feedback</groupId>
            <artifactId>jira-feedback-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>
        <dependency>
            <groupId>io.atlassian.util.concurrent</groupId>
            <artifactId>atlassian-util-concurrent</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.whisper</groupId>
            <artifactId>atlassian-whisper-testkit</artifactId>
            <version>${whisper.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-library</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.activation</groupId>
                    <artifactId>activation</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.json</groupId>
                    <artifactId>javax.json-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- Hamcrest dependency standardization: Use only hamcrest-all to avoid classpath conflicts.
             hamcrest-core and hamcrest-library are excluded from transitive dependencies above. -->
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-all</artifactId>
        </dependency>
        <dependency>
            <groupId>jakarta.json</groupId>
            <artifactId>jakarta.json-api</artifactId>
            <version>2.1.3</version>
        </dependency>
        <dependency>
            <groupId>com.google.code.findbugs</groupId>
            <artifactId>jsr305</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <version>${assertj.version}</version>
            <scope>compile</scope> <!-- please move tests to src/test where their place is, and then remove this line -->
        </dependency>
        <dependency>
            <groupId>org.awaitility</groupId>
            <artifactId>awaitility</artifactId>
            <version>${awaitility.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>embedded-crowd-pageobjects</artifactId>
            <version>${crowd-admin-plugin.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-issue-nav-components</artifactId>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
        </dependency>
        <dependency>
            <groupId>org.junit.vintage</groupId>
            <artifactId>junit-vintage-engine</artifactId>
        </dependency>
        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <version>${postgres.jdbc.version}</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
</project>
