<?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>
        <groupId>com.atlassian.confluence.plugins</groupId>
        <artifactId>confluence-jira-content-parent</artifactId>
        <version>2.0.9</version>
    </parent>

    <artifactId>confluence-jira-content</artifactId>

    <name>Confluence and Jira Content Connector</name>
    <description>This plugin allows the creation of Jira issues from selected text on a Confluence page.</description>
    <packaging>atlassian-plugin</packaging>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <artifactId>soy-template-renderer-api</artifactId>
                    <groupId>com.atlassian.soy</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-highlight-actions</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.activeobjects</groupId>
            <artifactId>activeobjects-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-core-asl</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-mapper-asl</artifactId>
            <scope>provided</scope>
        </dependency>
       <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-jira-plugin</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
           <version>${jira.plugin.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.integration.jira</groupId>
            <artifactId>jira-integration-plugin</artifactId>
            <version>${jira.integration.version}</version>
            <scope>provided</scope>
        </dependency>

        <!-- WIRED TEST RUNNER DEPENDENCIES -->
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-dispatcher-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-confluence-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <!-- force MF/MANIFEST.MF to be generated, for OBR generation -->
                    <instructions>
                        <Import-Package>
                            com.atlassian.activeobjects.external,
                            com.atlassian.activeobjects.tx,
                            com.atlassian.applinks.api,
                            com.atlassian.applinks.api.application.jira,
                            com.atlassian.applinks.api.auth,
                            com.atlassian.applinks.api.auth.types,
                            com.atlassian.applinks.api.event,
                            com.atlassian.applinks.host.spi,
                            com.atlassian.applinks.spi.auth,
                            com.atlassian.confluence.content.render.xhtml,
                            com.atlassian.confluence.content.service,
                            com.atlassian.confluence.content.service.comment,
                            com.atlassian.confluence.core,
                            com.atlassian.confluence.extra.jira,
                            com.atlassian.confluence.extra.jira.api.services,
                            com.atlassian.confluence.macro,
                            com.atlassian.confluence.macro.xhtml,
                            com.atlassian.confluence.mail.notification,
                            com.atlassian.confluence.pages,
                            com.atlassian.confluence.plugin.descriptor.web,
                            com.atlassian.confluence.plugin.descriptor.web.conditions,
                            com.atlassian.confluence.plugin.descriptor.web.conditions.user,
                            com.atlassian.confluence.renderer,
                            com.atlassian.confluence.spaces,
                            com.atlassian.confluence.user,
                            com.atlassian.confluence.web.context,
                            com.atlassian.confluence.xhtml.api,
                            com.atlassian.core.util,
                            com.atlassian.event,
                            com.atlassian.integration.jira.*,
                            com.atlassian.plugin,
                            com.atlassian.plugin.osgi.bridge.external,
                            com.atlassian.plugin.web,
                            com.atlassian.renderer,
                            com.atlassian.sal.api.net,
                            com.atlassian.sal.api.user,
                            com.atlassian.user,
                            com.atlassian.util.concurrent,
                            com.atlassian.vcache,
                            com.atlassian.vcache.marshallers,
                            com.google.common.base,
                            com.google.common.collect,
                            com.google.gson;version="${gson.version}",
                            javax.naming,
                            javax.servlet.http,
                            javax.transaction,
                            javax.ws.rs,
                            javax.ws.rs.core,
                            javax.xml.bind.annotation,
                            net.java.ao,
                            net.sf.hibernate,
                            net.sf.hibernate.cache,
                            net.sf.hibernate.collection,
                            net.sf.hibernate.connection,
                            net.sf.hibernate.dialect,
                            net.sf.hibernate.engine,
                            net.sf.hibernate.exception,
                            net.sf.hibernate.metadata,
                            net.sf.hibernate.persister,
                            net.sf.hibernate.type,
                            org.apache.commons.collections,
                            org.apache.commons.lang,
                            org.apache.commons.validator.routines,
                            org.codehaus.jackson,
                            org.codehaus.jackson.map,
                            org.slf4j,
                            org.xml.sax,
                            org.springframework.beans.factory
                        </Import-Package>

                        <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
                    </instructions>
                </configuration>
            </plugin>

            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.3</version>
                <executions>
                    <execution>
                        <id>update</id>
                        <phase>test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <configuration>
                            <skip>true</skip>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
