<?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.pom</groupId>
        <artifactId>atlassian-public-pom</artifactId>
        <version>17</version>
    </parent>
    <groupId>com.atlassian.upm</groupId>
    <artifactId>atlassian-universal-plugin-manager</artifactId>
    <version>1.0.m1</version>
    <packaging>pom</packaging>
    <name>Plugin Exchange Manager - Parent POM</name>
    <scm>
        <connection>scm:svn:https://studio.atlassian.com/svn/UPM/tags/atlassian-universal-plugin-manager-1.0.m1</connection>
        <developerConnection>scm:svn:https://studio.atlassian.com/svn/UPM/tags/atlassian-universal-plugin-manager-1.0.m1</developerConnection>
        <url>https://studio.atlassian.com/source/browse/UPM/tags/atlassian-universal-plugin-manager-1.0.m1</url>
    </scm>
    <modules>
        <module>test-resources</module>
        <module>plugin</module>
    </modules>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.plugins</groupId>
                <artifactId>pacs-client</artifactId>
                <version>1.0.9</version>
                <exclusions>
                    <exclusion>
                        <groupId>com.sun.xml.bind</groupId>
                        <artifactId>jaxb-impl</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.sun.jersey.contribs</groupId>
                        <artifactId>jersey-multipart</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>commons-lang</groupId>
                        <artifactId>commons-lang</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>javax.ws.rs</groupId>
                <artifactId>jsr311-api</artifactId>
                <version>1.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.codehaus.jackson</groupId>
                <artifactId>jackson-jaxrs</artifactId>
                <version>1.4.3</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.templaterenderer</groupId>
                <artifactId>atlassian-template-renderer-api</artifactId>
                <version>1.0.5</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bundles</groupId>
                <artifactId>google-collections</artifactId>
                <version>1.0-rc2</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugins.rest</groupId>
                <artifactId>atlassian-rest-common</artifactId>
                <version>1.0.5</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>2.4</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>biz.aQute</groupId>
                <artifactId>bndlib</artifactId>
                <version>0.0.255</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit-dep</artifactId>
                <version>4.5</version>
                <scope>test</scope>
                <exclusions>
                    <exclusion>
                        <groupId>org.hamcrest</groupId>
                        <artifactId>hamcrest-core</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>1.8.1</version>
                <scope>test</scope>
                <exclusions>
                    <exclusion>
                        <groupId>org.hamcrest</groupId>
                        <artifactId>hamcrest-core</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>net.sourceforge.htmlunit</groupId>
                <artifactId>htmlunit</artifactId>
                <version>2.6-atlassian-1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.sun.jersey</groupId>
                <artifactId>jersey-client</artifactId>
                <version>1.0.2</version>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-all</artifactId>
                <version>1.2</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugins</groupId>
                <artifactId>atlassian-plugins-core</artifactId>
                <version>2.4.5</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>1.5.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
                <version>1.5.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bundles</groupId>
                <artifactId>jsr305</artifactId>
                <version>1.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.sal</groupId>
                <artifactId>sal-api</artifactId>
                <version>2.0.16</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>1.6</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>rome</groupId>
                <artifactId>rome</artifactId>
                <version>1.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.jdom</groupId>
                <artifactId>com.springsource.org.jdom</artifactId>
                <version>1.0.0</version>
                <scope>provided</scope>
            </dependency>

            <!-- test plugins -->
            <dependency>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>atlassian-universal-plugin-manager-test-plugin-v1-classpath</artifactId>
                <version>1.0.m1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>atlassian-universal-plugin-manager-test-plugin-v1-bundled</artifactId>
                <version>1.0.m1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>atlassian-universal-plugin-manager-test-plugin-v2</artifactId>
                <version>1.0.m1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>atlassian-universal-plugin-manager-test-plugin-v2-not-reloadable</artifactId>
                <version>1.0.m1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>atlassian-universal-plugin-manager-test-plugin-v2-latest-update</artifactId>
                <version>1.0.m1</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>2.3</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-refapp-plugin</artifactId>
                    <version>3.0</version>
                    <extensions>true</extensions>
                    <configuration>
                        <productVersion>${product.version}</productVersion>
                        <instructions>
                            <!-- javax.servlet is specified at 0.0 because that's what
                            the system bundle in JIRA is exporting -->
                            <Import-Package>
                                javax.ws.rs.*;version="1.0",
                                javax.servlet.*;version="0.0",
                                javax.net.ssl.*;version="0.0",
                                javax.xml.*;version="0.0",
                                org.w3c.*;version="0.0",
                                org.xml.*;version="0.0",
                                com.google.common.*;version="1.0",
                                com.atlassian.plugins.rest.common;version="1.0.5",
                                javax.annotation;version="0.0",
                                org.codehaus.jackson.xc.*;version="0.0";resolution:=optional,
                                com.atlassian.plugin*;version="2.4",
                                org.slf4j*;version="1.5.0",
                                com.sun.jersey.core.*;version="1.0",
                                com.sun.jersey.spi.*;version="1.0",
                                com.sun.jersey.multipart;version="1.0";resolution:=optional,
                                sun.misc;version="0.0.0";resolution:=optional,
                                *
                            </Import-Package>
                        </instructions>
                        <pluginArtifacts>
                            <pluginArtifact>
                                <groupId>org.jdom</groupId>
                                <artifactId>com.springsource.org.jdom</artifactId>
                            </pluginArtifact>
                            <pluginArtifact>
                                <groupId>rome</groupId>
                                <artifactId>rome</artifactId>
                            </pluginArtifact>
                            <pluginArtifact>
                                <groupId>com.atlassian.upm</groupId>
                                <artifactId>atlassian-universal-plugin-manager-test-plugin-v2</artifactId>
                            </pluginArtifact>
                            <pluginArtifact>
                                <groupId>com.atlassian.upm</groupId>
                                <artifactId>atlassian-universal-plugin-manager-test-plugin-v2-not-reloadable</artifactId>
                            </pluginArtifact>
                        </pluginArtifacts>
                        <libArtifacts>
                            <libArtifact>
                                <groupId>com.atlassian.upm</groupId>
                                <artifactId>atlassian-universal-plugin-manager-test-plugin-v1-classpath</artifactId>
                            </libArtifact>
                        </libArtifacts>
                        <bundledArtifacts>
                            <bundledArtifact>
                                <groupId>com.atlassian.upm</groupId>
                                <artifactId>atlassian-universal-plugin-manager-test-plugin-v1-bundled</artifactId>
                            </bundledArtifact>
                        </bundledArtifacts>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <skip>${maven.test.unit.skip}</skip>
                        <excludes>
                            <exclude>it/**/*</exclude>
                        </excludes>
                        <junitArtifactName>junit:junit-dep</junitArtifactName>
                    </configuration>
                    <executions>
                        <execution>
                            <id>integration-test</id>
                            <phase>integration-test</phase>
                            <goals>
                                <goal>test</goal>
                            </goals>
                            <configuration>
                                <skip>${maven.test.it.skip}</skip>
                                <includes>
                                    <include>it/**/*java</include>
                                </includes>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <properties>
        <jdkLevel>1.5</jdkLevel>
        <atlassian.plugins.version>2.4.5</atlassian.plugins.version>
        <pacs.client.version>1.0.9</pacs.client.version>
        <amps.version>3.0</amps.version>
        <refapp.version>2.4.1</refapp.version>
        <confluence.version>3.1</confluence.version>
        <jira.version>4.0</jira.version>
        <product.version>${refapp.version}</product.version>
    </properties>
    <profiles>
        <profile>
            <id>confluence</id>
            <properties>
                <product>confluence</product>
                <product.version>${confluence.version}</product.version>
            </properties>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
        </profile>
        <profile>
            <id>jira</id>
            <properties>
                <product>jira</product>
                <product.version>${jira.version}</product.version>
            </properties>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
        </profile>
    </profiles>
</project>
