<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.atlassian.mywork</groupId>
        <artifactId>mywork-project</artifactId>
        <version>21.0.52</version>
    </parent>

    <artifactId>mywork-confluence-host-plugin</artifactId>
    <packaging>atlassian-plugin</packaging>

    <name>Workbox - Host Plugin</name>
    <description>Provides persistence and rendering for Workbox</description>

    <properties>
        <doc.directory>${basedir}/src/main/doc</doc.directory>
        <jira.http.port>2990</jira.http.port>

        <!-- sbom properties -->
        <npm.build.skip>false</npm.build.skip>
        <npm.install.skip>false</npm.install.skip>
        <restdoc.directory>${project.build.directory}/restapi</restdoc.directory>
        <skip.js.enforcement>false</skip.js.enforcement>
        <skipJacocoReport>false</skipJacocoReport>
        <sonar.sources>src/main</sonar.sources>
        <sonar.tests>src/test</sonar.tests>

        <test-coverage.skip-copy-integration-test-report>false</test-coverage.skip-copy-integration-test-report>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.usercompatibility</groupId>
            <artifactId>usercompatibility-confluence</artifactId>
            <version>${usercompatibility-confluence.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.google.template.soy</groupId>
            <artifactId>soycompiler</artifactId>
            <version>${soycompiler.version}</version>
            <scope>compile</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.google.inject</groupId>
                    <artifactId>guice</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.google.inject.extensions</groupId>
                    <artifactId>guice-assistedinject</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.google.inject.extensions</groupId>
                    <artifactId>guice-multibindings</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.inject</groupId>
                    <artifactId>javax.inject</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.google.inject.extensions</groupId>
            <artifactId>guice-assistedinject</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.inject.extensions</groupId>
            <artifactId>guice-multibindings</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.mywork</groupId>
            <artifactId>mywork-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.mywork</groupId>
            <artifactId>mywork-common-plugin</artifactId>
            <type>atlassian-plugin</type>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.mywork</groupId>
            <artifactId>mywork-jira-provider-plugin</artifactId>
            <type>atlassian-plugin</type>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.mywork</groupId>
            <artifactId>mywork-confluence-provider-plugin</artifactId>
            <type>atlassian-plugin</type>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-annotation</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-servlet</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.rest</groupId>
            <artifactId>atlassian-rest-v2-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.annotation</groupId>
            <artifactId>jakarta.annotation-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.inject</groupId>
            <artifactId>jakarta.inject-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.ws.rs</groupId>
            <artifactId>jakarta.ws.rs-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-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>tools.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.validation</groupId>
            <artifactId>jakarta.validation-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.oauth</groupId>
            <artifactId>atlassian-oauth-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-nav-links-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.analytics</groupId>
            <artifactId>analytics-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>io.atlassian.fugue</groupId>
            <artifactId>fugue</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.templaterenderer</groupId>
            <artifactId>atlassian-template-renderer-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.seraph</groupId>
            <artifactId>atlassian-seraph</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.xmlgraphics</groupId>
            <artifactId>batik-css</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webresource-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>io.atlassian.util.concurrent</groupId>
            <artifactId>atlassian-util-concurrent</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webresource</artifactId>
            <scope>provided</scope>
        </dependency>
        <!-- Active Objects dependencies -->
        <dependency>
            <groupId>com.atlassian.activeobjects</groupId>
            <artifactId>activeobjects-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <!-- Confluence dependency -->
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-log4j12</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- These need to be here just for REST documentation -->
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <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.applinks</groupId>
            <artifactId>applinks-host</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.mail</groupId>
            <artifactId>atlassian-mail</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.ibm.icu</groupId>
            <artifactId>icu4j</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>atlassian-antisamy-support</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.vintage</groupId>
            <artifactId>junit-vintage-engine</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.activeobjects</groupId>
            <artifactId>activeobjects-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.beehive</groupId>
            <artifactId>beehive-single-node</artifactId>
            <version>${beehive-core.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.cache</groupId>
            <artifactId>atlassian-cache-memory</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>osgi.core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>opensymphony</groupId>
            <artifactId>propertyset</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>confluence-maven-plugin</artifactId>
                <configuration>
                    <instructions>
                        <Atlassian-Plugin-Key>${project.groupId}.${project.artifactId}</Atlassian-Plugin-Key>
                        <Spring-Context>*</Spring-Context>
                        <Export-Package>com.atlassian.mywork.host.service,</Export-Package>
                        <Import-Package>com.atlassian.confluence.plugin.descriptor.mail,
                            com.atlassian.activeobjects.external;version="${ao.compatibility.version}",
                            com.atlassian.activeobjects.tx;version="${ao.compatibility.version}",
                            com.atlassian.annotations.security*,
                            com.atlassian.applinks.api*,
                            com.atlassian.applinks.spi*,
                            com.atlassian.core.util,
                            com.atlassian.core.task.*,
                            com.atlassian.event.api,
                            com.atlassian.mywork.event.*,
                            com.atlassian.mywork.model,
                            com.atlassian.mywork.service,
                            com.atlassian.mywork.util,
                            com.atlassian.mywork.rest,
                            com.atlassian.plugin.elements,
                            com.atlassian.plugin.event.events,
                            com.atlassian.plugin.servlet,
                            com.atlassian.plugin.web,
                            com.atlassian.plugin.webresource,
                            com.atlassian.plugin.webresource.transformer,
                            com.atlassian.plugin.webresource.condition,
                            com.atlassian.plugin.webresource.url,
                            com.atlassian.plugins.navlink.consumer.menu.services,
                            com.atlassian.plugin.util.collect.*,
                            com.atlassian.user.impl.*,
                            com.atlassian.confluence.cluster,
                            com.atlassian.confluence.content,
                            com.atlassian.confluence.event.events.*,
                            com.atlassian.confluence.plugin.descriptor.web.urlreadingconditions,
                            com.atlassian.confluence.plugin.descriptor.web.*,
                            com.atlassian.confluence.plugins.mobile.velocity,
                            com.atlassian.confluence.security.*,
                            com.atlassian.confluence.mail.*,
                            com.atlassian.confluence.content.render.xhtml,
                            com.atlassian.confluence.renderer.template,
                            com.atlassian.oauth.event,
                            com.atlassian.sal.*,
                            com.atlassian.seraph.*,
                            com.atlassian.spring.*,
                            com.atlassian.templaterenderer*,
                            com.atlassian.cache*,
                            tools.jackson.core,
                            tools.jackson.databind,
                            com.google.common.*,
                            net.java.ao;version="${ao.compatibility.version}",
                            net.java.ao.schema;version="${ao.compatibility.version}",
                            org.apache.batik.css.*,
                            org.apache.commons.io;version="[1.4,3.0)",
                            org.apache.commons.lang3,
                            org.apache.commons.lang3.builder,
                            org.apache.commons.lang3.time,
                            org.apache.commons.logging,
                            org.apache.xml.serialize,
                            org.cyberneko.html*,
                            org.dom4j,
                            org.dom4j.io,
                            org.osgi.framework,
                            org.slf4j,
                            org.springframework*,
                            org.w3c.css.sac,
                            org.w3c.dom,
                            org.w3c.dom.ls,
                            org.w3c.dom.traversal,
                            org.xml.sax,
                            org.xml.sax.ext,
                            io.atlassian.fugue.*,
                            com.atlassian.plugin.descriptors.*;version="2.9",
                            com.atlassian.confluence.plugin.descriptor.web.conditions.user;version="5.10.0",
                            *;resolution:=optional</Import-Package>
                    </instructions>
                    <products>
                        <product>
                            <id>jira</id>
                            <containerId>${jira.containerId}</containerId>
                            <instanceId>jira1</instanceId>
                            <version>${jira.version}</version>
                            <dataVersion>${jira.data.version}</dataVersion>
                            <httpPort>${jira.http.port}</httpPort>
                            <jvmArgs>${jira.jvm.args}</jvmArgs>
                            <systemPropertyVariables>
                                <cargo.java.home>${jira.java.home}</cargo.java.home>
                            </systemPropertyVariables>
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.mywork</groupId>
                                    <artifactId>mywork-common-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.mywork</groupId>
                                    <artifactId>mywork-jira-provider-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-plugins-webresource-plugin</artifactId>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </product>
                        <product>
                            <id>confluence</id>
                            <containerId>${containerId}</containerId>
                            <instanceId>confluence</instanceId>
                            <version>${confluence.version}</version>
                            <dataVersion>${confluence.data.version}</dataVersion>
                            <jvmArgs>${jvm.args}</jvmArgs>
                            <systemPropertyVariables>
                                <cargo.java.home>${confluence.java.home}</cargo.java.home>
                            </systemPropertyVariables>
                            <pluginArtifacts>
                                <pluginArtifact>
                                    <groupId>com.atlassian.mywork</groupId>
                                    <artifactId>mywork-common-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.mywork</groupId>
                                    <artifactId>mywork-confluence-provider-plugin</artifactId>
                                    <version>${project.version}</version>
                                </pluginArtifact>
                                <pluginArtifact>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>atlassian-plugins-webresource-plugin</artifactId>
                                </pluginArtifact>
                            </pluginArtifacts>
                        </product>
                    </products>
                    <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>
                            <outputDirectoryFilesDeclaration>${project.basedir}/fe-files-declaration.json</outputDirectoryFilesDeclaration>
                        </feManifestAssociation>
                    </feManifestAssociations>
                    <skipManifestValidation>true</skipManifestValidation>
                </configuration>
                <executions>
                    <execution>
                        <id>copy-fe-module-manifests</id>
                        <goals>
                            <goal>copy-fe-module-manifests</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>report-fe-manifest-associations</id>
                        <goals>
                            <goal>report-fe-manifest-associations</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.github.klieber</groupId>
                <artifactId>phantomjs-maven-plugin</artifactId>
                <version>0.7</version>
                <configuration>
                    <version>2.1.1</version>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>install</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.github.searls</groupId>
                <artifactId>jasmine-maven-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <webDriverClassName>org.openqa.selenium.phantomjs.PhantomJSDriver</webDriverClassName>
                    <webDriverCapabilities>
                        <capability>
                            <name>phantomjs.binary.path</name>
                            <value>${phantomjs.binary}</value>
                        </capability>
                    </webDriverCapabilities>
                    <jsSrcDir>${project.basedir}</jsSrcDir>
                    <jsTestSrcDir>${project.basedir}/src/test/js</jsTestSrcDir>
                    <sourceIncludes>
                        <!-- Explicitly include files for order-->
                        <!-- Had to move it backwards to the root directory to include node_modules -->
                        <include>node_modules/backbone/backbone-min.js</include>
                        <include>/src/main/resources/js/views/notification-main-view.js</include>
                        <include>/src/main/resources/js/views/notification-entry-view.js</include>
                        <include>/src/main/resources/js/views/drilldown-view.js</include>
                        <include>/src/main/resources/js/views/header-view.js</include>
                        <include>/src/main/resources/js/views/action-view.js</include>
                        <include>/src/main/resources/js/views/notification-view.js</include>
                        <include>/src/main/resources/js/views/miniview/notification-views.js</include>
                        <include>/src/main/resources/js/views/task-main-view.js</include>
                        <include>/src/main/resources/js/views/taskdetail-view.js</include>
                        <include>/src/main/resources/js/views/header-view.js</include>
                        <include>/src/main/resources/js/views/task-view.js</include>
                        <include>/src/main/resources/js/views/miniview/deprecated-tasks-view.js</include>
                        <include>/src/main/resources/js/**/*.js</include>
                    </sourceIncludes>
                    <sourceExcludes>
                        <exclude>/src/main/resources/js/mywork.js</exclude>
                        <exclude>/src/main/resources/js/mobile/mobile-routes.js</exclude>
                        <exclude>/src/main/resources/js/mobile/mobile-mywork.js</exclude>
                        <exclude>/src/main/resources/js/views/mobile/notification-views.js</exclude>
                        <exclude>/src/main/resources/js/views/mobile/task-views.js</exclude>
                        <exclude>/src/main/resources/js/util/mobile-util.js</exclude>
                        <exclude>/src/main/resources/js/miniview-anchor.js</exclude>
                        <exclude>/src/main/resources/js/miniview-login.js</exclude>
                    </sourceExcludes>
                    <specIncludes>
                        <include>**/*.js</include>
                    </specIncludes>
                    <specExcludes>
                        <exclude>helper.js</exclude>
                    </specExcludes>
                    <preloadSources>
                        <source>${project.basedir}/node_modules/jquery/dist/jquery.min.js</source>
                        <source>${project.basedir}/node_modules/underscore/underscore-min.js</source>
                        <source>${project.basedir}/src/test/js/sinon-1.17.7.js</source>
                        <source>${project.basedir}/src/test/js/helper.js</source>
                        <source>${project.basedir}/node_modules/jasmine-jquery/lib/jasmine-jquery.js</source>
                    </preloadSources>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>ro.isdc.wro4j</groupId>
                <artifactId>wro4j-maven-plugin</artifactId>
                <version>2.1.1</version>
                <configuration>
                    <minimize>false</minimize>
                    <options>expr,devel,evil,noarg,trailing</options>
                    <contextFolder>${basedir}/src/main/resources/</contextFolder>
                    <wroFile>${basedir}/src/main/resources/wro.xml</wroFile>
                    <skip>${skipTests}</skip>
                </configuration>
                <dependencies>
                    <!-- Upgrade Mockito to Java17-friendly version -->
                    <dependency>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-core</artifactId>
                        <version>5.21.0</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <goals>
                            <goal>jshint</goal>
                        </goals>
                        <phase>test</phase>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.carrot2.labs</groupId>
                <artifactId>smartsprites-maven-plugin</artifactId>
                <version>1.0</version>
                <configuration>
                    <rootDirPath>${project.basedir}/src/main/resources</rootDirPath>
                    <outputDirPath>${project.build.directory}/classes</outputDirPath>
                </configuration>
                <executions>
                    <execution>
                        <id>spritify</id>
                        <goals>
                            <goal>spritify</goal>
                        </goals>
                        <phase>generate-resources</phase>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>create-rest-apidocs</id>
            <activation>
                <activeByDefault>false</activeByDefault>
                <property>
                    <name>nat.generateDocs</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-resources-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>copy-doc-resources</id>
                                <goals>
                                    <goal>copy-resources</goal>
                                </goals>
                                <phase>validate</phase>
                                <configuration>
                                    <outputDirectory>${restdoc.directory}</outputDirectory>
                                    <resources>
                                        <resource>
                                            <directory>${doc.directory}</directory>
                                            <filtering>true</filtering>
                                        </resource>
                                    </resources>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>create-api-zip</id>
                                <goals>
                                    <goal>single</goal>
                                </goals>
                                <phase>package</phase>
                                <configuration>
                                    <descriptors>
                                        <descriptor>${doc.directory}/api.xml</descriptor>
                                    </descriptors>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>mywork-legacy-tests</id>
            <properties>
                <test-coverage.integration-test-directory>../mywork-acceptance-test-runner</test-coverage.integration-test-directory>
            </properties>
        </profile>
        <profile>
            <id>mywork-new-tests</id>
            <properties>
                <test-coverage.integration-test-directory>../mywork-stateless-acceptance-test-runner</test-coverage.integration-test-directory>
            </properties>
        </profile>
        <profile>
            <id>sonar-ut</id>
            <properties>
                <sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../mywork-api/target/site/jacoco-unit/${jacoco.report.name},
                    ${project.basedir}/../mywork-common-plugin/target/site/jacoco-unit/${jacoco.report.name},
                    ${project.basedir}/../mywork-confluence-provider-plugin/target/site/jacoco-unit/${jacoco.report.name},
                    ${project.basedir}/../mywork-confluence-host-plugin/target/site/jacoco-unit/${jacoco.report.name},
                    ${project.basedir}/../mywork-jira-provider-plugin/target/site/jacoco-unit/${jacoco.report.name}</sonar.coverage.jacoco.xmlReportPaths>
            </properties>
        </profile>
        <profile>
            <id>sonar-it</id>
            <properties>
                <sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../mywork-confluence-host-plugin/target/site/jacoco-integration/${jacoco.report.name}</sonar.coverage.jacoco.xmlReportPaths>
            </properties>
        </profile>
    </profiles>
</project>
