<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-ondemand-plugins</artifactId>
        <version>6.2-20131203.081142</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.atlassian.jira</groupId>
    <artifactId>jira-ondemand-svn-importer-plugin</artifactId>

    <name>Atlassian JIRA - OnDemand - SVN Importer</name>
    <packaging>bundle</packaging>

    <properties>
        <atlassian.plugin.key>com.atlassian.studio.studio-svn-importer-plugin</atlassian.plugin.key>
        <studio.pdk.apps>jira</studio.pdk.apps>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Private-Package>
                            com.atlassian.studio.svnimport.backend,
                            com.atlassian.studio.svnimport.backend.commands,
                            com.atlassian.studio.svnimport.webfragment.conditions
                        </Private-Package>
                        <Export-Package>
                            templates,
                            com.atlassian.studio.svnimport,
                            com.atlassian.studio.svnimport.components,
                            com.atlassian.studio.svnimport.rest.v1,
                            com.atlassian.studio.svnimport.web.action
                        </Export-Package>
                        <Import-Package>
                            !com.sun.jna*,
                            javax.xml.bind.annotation;resolution:=optional,
                            org.apache.commons.io*;resolution:=optional,
                            net.jcip.annotations;resolution:=optional,
                            sun.misc*;resolution:=optional,
                            nu.xom;resolution:=optional,
                            org.springframework.beans.factory,
                            com.atlassian.jira.security,
                            com.atlassian.studio.common.plugins,
                            com.atlassian.applinks.*;version="[3,5)",
                            *;resolution:=optional
                        </Import-Package>
                        <Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency>
                        <Embed-Transitive>true</Embed-Transitive>
                        <Embed-Directory>META-INF/lib</Embed-Directory>
                        <Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
                        <Spring-Context>*;timeout:=60</Spring-Context>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-jira-plugin</artifactId>
            </plugin>

            <!--
                  The following plugin definitions are required to invoke functions that
                  build run-time environment for running integration tests against JIRA
              -->
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
            </plugin>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.codehaus.cargo</groupId>
                <artifactId>cargo-maven2-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <artifactId>jira-ondemand-repository-manager-plugin</artifactId>
            <groupId>com.atlassian.jira</groupId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <artifactId>jira-api</artifactId>
            <groupId>com.atlassian.jira</groupId>
        </dependency>
        <dependency>
            <artifactId>jira-core</artifactId>
            <groupId>com.atlassian.jira</groupId>
        </dependency>
        <dependency>
            <artifactId>applinks-api</artifactId>
            <groupId>com.atlassian.applinks</groupId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <artifactId>sal-api</artifactId>
            <groupId>com.atlassian.sal</groupId>
            <version>${sal.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <artifactId>studio-common-components-plugin</artifactId>
            <groupId>com.atlassian.studio</groupId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <artifactId>studio-common-host-components</artifactId>
            <groupId>com.atlassian.studio</groupId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.svnauth</groupId>
            <artifactId>svnauth</artifactId>
            <version>${svnauth.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>${commons.lang.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>${spring.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <version>${spring.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>
            <classifier>jdk15</classifier>
            <scope>provided</scope>
            <version>2.2.2</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <scope>provided</scope>
        </dependency>
        <!-- HACK: this shoud be pulled in by com.sun.jersey:jersey-server:jar:1.8-atlassian-6, but isn't. -->
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.4</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit-dep</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-all</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>xmlunit</groupId>
            <artifactId>xmlunit</artifactId>
            <version>1.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-tests</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-test-resources</artifactId>
        </dependency>

    </dependencies>

</project>
