<?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/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>confluence-highlight-actions-parent</artifactId>
        <groupId>com.atlassian.confluence.plugins</groupId>
        <version>1.7.2</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <name>Page Highlight Actions - Plugin</name>
    <artifactId>confluence-highlight-actions</artifactId>
    <packaging>atlassian-plugin</packaging>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webresource-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <scope>provided</scope>
        </dependency>
        <!-- WIRED TEST RUNNER DEPENDENCIES -->
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.analytics</groupId>
            <artifactId>analytics-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
            <version>${hamcrest.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>${mockito.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-confluence-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${confluence.version}</productVersion>
                    <productDataVersion>${confluence.data.version}</productDataVersion>
                    <output>${project.build.directory}/output.log</output>
                    <systemPropertyVariables>
                        <!-- This sets a system property required by the Functest RPC plugin to run in this environment -->
                        <confluence.version>${confluence.version}</confluence.version>
                        <!--                         <xvfb.enable>${xvfb.enable}</xvfb.enable> -->
                        <!--                         <xvfb.display>${xvfb.display}</xvfb.display> -->
                        <http.port>${http.confluence.port}</http.port>
                        <baseurl.confluence>${baseurl.confluence}</baseurl.confluence>
                        <context.path>${context.confluence.path}</context.path>
                    </systemPropertyVariables>
                    <instructions>
                        <Import-Package>
                            bucket.user,
                            com.atlassian.analytics.api.annotations,
                            com.atlassian.confluence.core,
                            com.atlassian.confluence.event.events,
                            com.atlassian.confluence.pages,
                            com.atlassian.confluence.plugin.descriptor.web,
                            com.atlassian.confluence.plugin.descriptor.web.conditions,
                            com.atlassian.confluence.security,
                            com.atlassian.confluence.setup.settings,
                            com.atlassian.confluence.spaces,
                            com.atlassian.confluence.user,
                            com.atlassian.confluence.user.actions,
                            com.atlassian.confluence.util.i18n,
                            com.atlassian.confluence.xml,
                            com.atlassian.core.exception,
                            com.atlassian.core.user.preferences,
                            com.atlassian.event.api,
                            com.atlassian.plugin,
                            com.atlassian.plugin.osgi.bridge.external,
                            com.atlassian.plugin.web,
                            com.atlassian.plugin.web.descriptors,
                            com.atlassian.plugin.web.model,
                            com.atlassian.plugin.webresource,
                            com.atlassian.plugin.webresource.condition,
                            com.atlassian.plugin.webresource.url,
                            com.atlassian.plugins.rest.common.security,
                            com.atlassian.sal.api.user,
                            com.atlassian.webresource.api.prebake,
                            com.atlassian.user,
                            com.atlassian.user.repository,
                            com.atlassian.user.search,
                            com.atlassian.user.search.page,
                            com.atlassian.user.search.query,
                            com.atlassian.user.security.password,
                            com.google.common.collect,
                            com.opensymphony.module.propertyset,
                            javax.ws.rs,
                            javax.ws.rs.core,
                            javax.xml.bind.annotation,
                            javax.xml.parsers,
                            javax.xml.transform,
                            javax.xml.transform.dom,
                            javax.xml.transform.stream,
                            org.apache.commons.lang3,
                            org.apache.xerces.util,
                            org.codehaus.jackson.annotate,
                            org.slf4j,
                            org.springframework.beans.factory.annotation,
                            org.springframework.util,
                            org.w3c.dom,
                            org.w3c.dom.traversal,
                            org.xml.sax
                        </Import-Package>
                        <Export-Package>
                            com.atlassian.confluence.plugins.highlight.urlreadingconditions,
                            com.atlassian.confluence.plugins.highlight.rest,
                            com.atlassian.confluence.plugins.highlight,
                            com.atlassian.confluence.plugins.highlight.events,
                            com.atlassian.confluence.plugins.highlight.service,
                            com.atlassian.confluence.plugins.highlight.xml,
                            com.atlassian.confluence.plugins.highlight.conditions,
                            com.atlassian.confluence.plugins.highlight.model
                        </Export-Package>
                        <Atlassian-Plugin-Key>com.atlassian.confluence.plugins.confluence-highlight-actions</Atlassian-Plugin-Key>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.3</version>
                <configuration>
                    <!-- Ignoring integration tests on test phase so they just run in integration-test phase.-->
                    <!-- This configuration is necessary when using AMPS together with a parent POM.-->
                    <excludes>
                        <exclude>it/**</exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>