<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <artifactId>atlassian-whitelist-parent</artifactId>
        <groupId>com.atlassian.plugins</groupId>
        <version>8.0.0</version>
    </parent>
    <artifactId>atlassian-whitelist-ui-plugin</artifactId>

    <name>Atlassian Whitelist UI Plugin</name>
    <description>The plugin provides a user interface to view and modify the application's whitelist.</description>
    <packaging>atlassian-plugin</packaging>

    <properties>
        <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
    </properties>

    <dependencies>
        <!-- Versions and scopes for sibling modules are managed by the parent POM. -->
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-whitelist-api-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-whitelist-internal-api-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-whitelist-core-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-osgi-javaconfig</artifactId>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>osgi.core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-whitelist-core-plugin</artifactId>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-whitelist-refimpl-plugin</artifactId>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-whitelist-test-utils</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.analytics</groupId>
            <artifactId>analytics-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.annotations</groupId>
            <artifactId>atlassian-annotations</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.annotation</groupId>
            <artifactId>jakarta.annotation-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.ws.rs</groupId>
            <artifactId>jakarta.ws.rs-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Versions are managed by the parent POM. -->
        <dependency>
            <groupId>com.atlassian.aui</groupId>
            <artifactId>atlassian-aui-pageobjects</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.jstestrunner</groupId>
            <artifactId>atlassian-jstest-runner-pageobjects</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.refapp</groupId>
            <artifactId>atlassian-refapp-pageobjects</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bamboo</groupId>
            <artifactId>atlassian-bamboo-pageobjects</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.soy</groupId>
            <artifactId>soy-template-renderer-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Versions are managed by the Atlassian Java Platform POM. -->
        <dependency>
            <groupId>com.atlassian.applinks</groupId>
            <artifactId>applinks-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.applinks</groupId>
            <artifactId>applinks-spi</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.event</groupId>
            <artifactId>atlassian-event</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webresource</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-v2-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Versions are managed by the Atlassian Java Third Party POM. -->
        <dependency>
            <groupId>jakarta.inject</groupId>
            <artifactId>jakarta.inject-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>tools.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.findbugs</groupId>
            <artifactId>jsr305</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.servlet</groupId>
            <artifactId>jakarta.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.core</groupId>
            <artifactId>jersey-common</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>amps-maven-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <compressCss>false</compressCss>
                    <jvmArgs>-Xms1g -Xmx2g</jvmArgs>
                    <server>localhost</server>
                    <excludeAllTestDependencies>true</excludeAllTestDependencies>
                    <platformVersion>${platform.version}</platformVersion>
                    <instructions>
                        <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
                        <Import-Package>*</Import-Package>
                        <Spring-Context>*</Spring-Context>
                    </instructions>
                    <products>
                        <product>
                            <id>jira</id>
                            <version>${jira.version}</version>
                            <ajpPort>2995</ajpPort>
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-api-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-internal-api-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-core-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira</groupId>
                                    <artifactId>jira-func-test-plugin</artifactId>
                                    <version>${jira.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira.tests</groupId>
                                    <artifactId>jira-testkit-plugin</artifactId>
                                    <version>${jira.testkit.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins.jstestrunner</groupId>
                                    <artifactId>atlassian-jstest-runner-plugin</artifactId>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </product>
                        <product>
                            <id>confluence</id>
                            <version>${confluence.version}</version>
                            <ajpPort>1995</ajpPort>
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-api-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-internal-api-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-core-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.jira</groupId>
                                    <artifactId>jira-func-test-plugin</artifactId>
                                    <version>${jira.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins.jstestrunner</groupId>
                                    <artifactId>atlassian-jstest-runner-plugin</artifactId>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </product>
                        <product>
                            <id>bamboo</id>
                            <instanceId>bamboo</instanceId>
                            <version>${bamboo.version}</version>
                            <ajpPort>3995</ajpPort>
                            <systemPropertyVariables>
                                <bamboo.websudo.disabled>true</bamboo.websudo.disabled>
                            </systemPropertyVariables>
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-api-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-internal-api-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-core-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins.jstestrunner</groupId>
                                    <artifactId>atlassian-jstest-runner-plugin</artifactId>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </product>
                        <product>
                            <id>refapp</id>
                            <jvmDebugPort>5021</jvmDebugPort>
                            <version>${refapp.version}</version>
                            <ajpPort>5995</ajpPort>
                            <log4jProperties>src/test/resources/log4j.properties</log4jProperties>
                            <output>${project.build.directory}/refapp.log</output>
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-api-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-internal-api-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-core-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-refimpl-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins.jstestrunner</groupId>
                                    <artifactId>atlassian-jstest-runner-plugin</artifactId>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </product>
                        <product>
                            <id>refapp</id>
                            <instanceId>remote</instanceId>
                            <httpPort>5991</httpPort>
                            <ajpPort>5996</ajpPort>
                            <version>${refapp.version}</version>
                            <log4jProperties>src/test/resources/log4j.properties</log4jProperties>
                            <output>${project.build.directory}/refapp-remote.log</output>
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-api-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-internal-api-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-core-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-whitelist-refimpl-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </product>
                    </products>
                    <systemPropertyVariables>
                        <qunit.testoutput.location>${project.build.directory}/qunit/surefire-reports</qunit.testoutput.location>
                        <xvfb.enable>${xvfb.enable}</xvfb.enable>
                    </systemPropertyVariables>
                    <testGroups>
                        <testGroup>
                            <id>rest</id>
                            <productIds>
                                <productId>refapp</productId>
                            </productIds>
                            <includes>
                                <include>it/**/TestWhitelistResource.java</include>
                                <include>it/**/TestCors.java</include>
                                <include>it/**/DenylistTest.java</include>
                            </includes>
                        </testGroup>
                        <testGroup>
                            <id>qunit</id>
                            <productIds>
                                <productId>refapp</productId>
                                <productId>remote</productId>
                            </productIds>
                            <includes>
                                <include>it/**/TestQunit.java</include>
                            </includes>
                        </testGroup>
                        <testGroup>
                            <id>ui</id>
                            <productIds>
                                <productId>refapp</productId>
                            </productIds>
                            <includes>
                                <include>it/**/TestUi.java</include>
                            </includes>
                        </testGroup>
                        <testGroup>
                            <id>bamboo-ui</id>
                            <productIds>
                                <productId>bamboo</productId>
                            </productIds>
                            <includes>
                                <include>it/**/bamboo/Test*.java</include>
                            </includes>
                        </testGroup>
                        <testGroup>
                            <id>ao</id>
                            <productIds>
                                <productId>refapp</productId>
                            </productIds>
                            <excludes>
                                <exclude>**/*</exclude>
                            </excludes>
                        </testGroup>
                    </testGroups>
                    <includedFeModuleManifests>
                        <!-- Required to know what is development only & useful for other future projects -->
                        <includedFeModuleManifest>${project.basedir}/package.json</includedFeModuleManifest>
                        <!-- Required so all versions of all transitive dependencies are declared -->
                        <includedFeModuleManifest>${project.basedir}/package-lock.json</includedFeModuleManifest>
                    </includedFeModuleManifests>
                    <feManifestAssociations>
                        <feManifestAssociation>
                            <!-- package name of the frontend package -->
                            <packageName>@atlassian/dc.shared.atlassian-whitelist.ui-plugin</packageName>
                            <manuallyVerifiedEveryFileHasItsDependenciesDeclaredInTheManifest>
                                <outputDirectoryFiles>
                                    lib/ajs-backbone.js,
                                    lib/ajs-backbone-min.js,
                                    lib/jira-backbone.js,
                                    lib/jira-backbone-min.js,
                                    ui/whitelist.js,
                                    ui/whitelist-min.js
                                </outputDirectoryFiles>
                            </manuallyVerifiedEveryFileHasItsDependenciesDeclaredInTheManifest>
                        </feManifestAssociation>
                    </feManifestAssociations>
                    <testInstructions>
                        <Atlassian-Plugin-Key>${project.groupId}.${project.artifactId}-tests</Atlassian-Plugin-Key>
                        <Spring-Context>*</Spring-Context>
                        <Import-Package>
                            com.atlassian.annotations.nonnull;resolution:=optional,
                            com.atlassian.annotations.nullability;resolution:=optional,
                            com.atlassian.annotations.security;resolution:=optional,
                            com.atlassian.applinks.api;resolution:=optional,
                            com.atlassian.applinks.spi.application;resolution:=optional,
                            com.atlassian.bamboo.pageobjects;resolution:=optional,
                            com.atlassian.bamboo.testutils.user;resolution:=optional,
                            com.atlassian.event.api,
                            com.atlassian.fugue;resolution:=optional,
                            com.atlassian.pageobjects.aui.component.restfultable;resolution:=optional,
                            com.atlassian.pageobjects.binder;resolution:=optional,
                            com.atlassian.pageobjects.elements.query;resolution:=optional,
                            com.atlassian.pageobjects.elements;resolution:=optional,
                            com.atlassian.pageobjects;resolution:=optional,
                            com.atlassian.plugin.module;resolution:=optional,
                            com.atlassian.plugin.osgi.bridge.external,
                            com.atlassian.plugin.osgi.external;resolution:=optional,
                            com.atlassian.plugin;resolution:=optional,
                            com.atlassian.plugins.rest.api.security.annotation;resolution:=optional,
                            com.atlassian.plugins.whitelist,
                            com.atlassian.plugins.whitelist.applinks;resolution:=optional,
                            com.atlassian.plugins.whitelist.core.testing;resolution:=optional,
                            com.atlassian.qunit.test.runner;resolution:=optional,
                            com.atlassian.sal.api.auth;resolution:=optional,
                            com.atlassian.sal.api.message,
                            com.atlassian.sal.api.user;resolution:=optional,
                            com.atlassian.sal.api.websudo;resolution:=optional,
                            com.atlassian.soy.renderer;resolution:=optional,
                            com.atlassian.webdriver.pageobjects;resolution:=optional,
                            com.atlassian.webdriver.refapp.page;resolution:=optional,
                            com.atlassian.webdriver.refapp;resolution:=optional,
                            com.atlassian.webdriver.testing.rule;resolution:=optional,
                            com.atlassian.webresource.api.assembler,
                            com.google.common.base;resolution:=optional,
                            com.google.common.collect;resolution:=optional,
                            jakarta.annotation;resolution:=optional,
                            jakarta.inject;resolution:=optional,
                            jakarta.servlet.http;resolution:=optional,
                            jakarta.ws.rs.core;resolution:=optional,
                            jakarta.ws.rs;resolution:=optional,
                            javax.annotation.*;resolution:=optional,
                            org.apache.commons.lang3.builder;resolution:=optional,
                            org.apache.http.client.methods;resolution:=optional,
                            org.apache.http.client;resolution:=optional,
                            org.apache.http.entity;resolution:=optional,
                            org.apache.http.impl.client;resolution:=optional,
                            org.apache.http.util;resolution:=optional,
                            org.apache.http;resolution:=optional,
                            org.eclipse.gemini.blueprint.context;resolution:=optional,
                            org.eclipse.gemini.blueprint.service.exporter.support;resolution:=optional,
                            org.eclipse.gemini.blueprint.service.exporter;resolution:=optional,
                            org.eclipse.gemini.blueprint.service.importer.support;resolution:=optional,
                            org.hamcrest;resolution:=optional,
                            org.junit.rules;resolution:=optional,
                            org.junit.runner;resolution:=optional,
                            org.junit;resolution:=optional,
                            org.mockito.hamcrest;resolution:=optional,
                            org.mockito.junit;resolution:=optional,
                            org.mockito.stubbing;resolution:=optional,
                            org.mockito;resolution:=optional,
                            org.openqa.selenium;resolution:=optional,
                            org.osgi.framework;resolution:=optional,
                            org.slf4j;resolution:=optional,
                            org.springframework.beans.factory.config;resolution:=optional,
                            org.springframework.beans.factory;resolution:=optional,
                            org.springframework.beans;resolution:=optional,
                            org.springframework.cglib.core;resolution:=optional,
                            org.springframework.cglib.proxy;resolution:=optional,
                            org.springframework.cglib.reflect;resolution:=optional,
                            org.springframework.context.annotation;resolution:=optional,
                            org.springframework.context;resolution:=optional,
                            org.springframework.core.type;resolution:=optional,
                            tools.jackson.core.type;resolution:=optional,
                            tools.jackson.databind.json;resolution:=optional,
                            tools.jackson.databind;resolution:=optional,
                            *;resolution:=optional
                        </Import-Package>
                    </testInstructions>
                </configuration>
                <executions>
                    <execution>
                        <id>js-enforcement</id>
                        <goals>
                            <goal>verify-fe-manifest-associations</goal>
                        </goals>
                        <phase>verify</phase>
                        <configuration>
                            <verifyFeManifestAssociationsInputEntrypoint>
                                ${project.build.directory}/${project.build.finalName}.jar
                            </verifyFeManifestAssociationsInputEntrypoint>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>ao-tests</id>
            <activation>
                <property>
                    <name>testGroups</name>
                    <value>ao</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <configuration>
                            <skipITs>true</skipITs>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>rest-tests</id>
            <activation>
                <property>
                    <name>testGroups</name>
                    <value>rest</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <configuration>
                            <includes>
                                <include>it/**/TestWhitelistResource.java</include>
                                <include>it/**/TestCors.java</include>
                                <include>it/**/DenylistTest.java</include>
                            </includes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>qunit-tests</id>
            <activation>
                <property>
                    <name>testGroups</name>
                    <value>qunit</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <configuration>
                            <includes>
                                <include>it/**/TestQunit.java</include>
                            </includes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>ui-tests</id>
            <activation>
                <property>
                    <name>testGroups</name>
                    <value>ui</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <configuration>
                            <includes>
                                <include>it/**/TestUi.java</include>
                            </includes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>ui-tests-bamboo</id>
            <activation>
                <property>
                    <name>testGroups</name>
                    <value>bamboo-ui</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <configuration>
                            <includes>
                                <include>it/**/bamboo/Test*.java</include>
                            </includes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>