<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.jira</groupId>
    <artifactId>jira-plugins</artifactId>
    <version>6.2-beta1-1</version>
  </parent>
  <artifactId>jira-func-test-plugin</artifactId>
  <name>Atlassian JIRA - Plugins - DevMode - Func Test Plugin</name>
  <description>Provides a plugin that allows code to be injected into a functionally tested JIRA</description>
  <packaging>bundle</packaging>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>1.4.3</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>${atlassian.plugin.key}</Bundle-SymbolicName>
            <Private-Package>com.atlassian.jira.*</Private-Package>
            <Spring-Context>*;timeout:=60</Spring-Context>
            <Import-Package>
              *;resolution:=optional
            </Import-Package>
            <!-- Ideally, we should ensure that the functest-plugin is present, so we can import
                   packages from it, embedding the required dependencies for now -->
            <Embed-Dependency>
              functest-plugin,
              junit,
              hamcrest-core
            </Embed-Dependency>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.twdata.maven</groupId>
        <artifactId>maven-cli-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
  <dependencies>
      <dependency>
          <groupId>com.atlassian.jira</groupId>
          <artifactId>jira-core</artifactId>
          <scope>provided</scope>
      </dependency>
      <dependency>
          <groupId>javax.ws.rs</groupId>
          <artifactId>jsr311-api</artifactId>
          <scope>provided</scope>
      </dependency>
      <dependency>
          <groupId>com.atlassian.jira.tests</groupId>
          <artifactId>jira-testkit-plugin</artifactId>
          <version>${testkit.version}</version>
          <scope>provided</scope>
      </dependency>
      <dependency>
          <groupId>com.atlassian.applinks</groupId>
          <artifactId>applinks-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>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
            <scope>provided</scope>
        </dependency>
      <dependency>
          <groupId>com.atlassian.plugins.rest</groupId>
          <artifactId>atlassian-rest-common</artifactId>
          <scope>provided</scope>
      </dependency>
      <dependency>
          <groupId>log4j</groupId>
          <artifactId>log4j</artifactId>
          <scope>provided</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>com.atlassian.functest</groupId>
          <artifactId>functest-plugin</artifactId>
          <version>${fp.version}</version>
          <scope>provided</scope>
          <exclusions>
              <exclusion>
                  <groupId>com.google.collections</groupId>
                  <artifactId>google-collections</artifactId>
              </exclusion>
          </exclusions>
      </dependency>
      <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <scope>provided</scope>
      </dependency>
      <dependency>
         <groupId>org.hamcrest</groupId>
         <artifactId>hamcrest-core</artifactId>
         <scope>provided</scope>
      </dependency>
  </dependencies>
  <properties>
    <atlassian.plugin.key>com.atlassian.jira.dev.func-test-plugin</atlassian.plugin.key>
  </properties>
</project>
