<?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">

	<parent>
		<groupId>com.atlassian</groupId>
		<artifactId>portfolio-1</artifactId>
		<version>2.1.2-OD-002-D20161010T034325</version>
		<relativePath>../pom.xml</relativePath>
	</parent>

	<modelVersion>4.0.0</modelVersion>

    <artifactId>jira-portfolio-jira-common</artifactId>

	<name>Portfolio for JIRA [JIRA Commons]</name>

	<properties>

		<!-- clover -->
		<clover.targetPercentage>34.0000%</clover.targetPercentage>
		<clover.methodPercentage>29.0000%</clover.methodPercentage>
		<clover.statementPercentage>36.0000%</clover.statementPercentage>
		<clover.conditionalPercentage>33.0000%</clover.conditionalPercentage>

	</properties>

   	<dependencies>

		<dependency>
			<groupId>com.atlassian</groupId>
			<artifactId>jira-portfolio-common</artifactId>
			<version>${project.version}</version>
		</dependency>

		<dependency>
			<groupId>com.atlassian</groupId>
			<artifactId>portfolio-jira-bridge-api</artifactId>
			<version>${project.version}</version>
		</dependency>

		<dependency>
			<groupId>com.atlassian</groupId>
			<artifactId>portfolio-agile-api-api</artifactId>
			<version>${project.version}</version>
		</dependency>

		<dependency>
			<groupId>com.atlassian</groupId>
			<artifactId>portfolio-2-bridge-api</artifactId>
			<version>${project.version}</version>
		</dependency>
		
		<!-- inherited dependencies; versions specified in common.pom -->

		<dependency>
			<groupId>com.atlassian.jira</groupId>
			<artifactId>jira-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>com.atlassian.jira</groupId>
			<artifactId>jira-core</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
		</dependency>

		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
		</dependency>

		<!-- OBH: add dependency to active objects acc. to https://developer.atlassian.com/display/DOCS/Getting+Started+with+Active+Objects -->

		<dependency>
			<groupId>com.atlassian.activeobjects</groupId>
			<artifactId>activeobjects-plugin</artifactId>
		</dependency>

		<dependency>
			<groupId>com.atlassian.sal</groupId>
			<artifactId>sal-api</artifactId>
		</dependency>

		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>2.4</version>
			<scope>provided</scope>
		</dependency>

		<!-- Licensing -->
		<dependency>
		    <groupId>com.atlassian.upm</groupId>
		    <artifactId>licensing-api</artifactId>
		    <version>2.0.1</version>
		    <scope>provided</scope>
		</dependency>
		
		<dependency>
		    <groupId>com.atlassian.upm</groupId>
		    <artifactId>upm-api</artifactId>
		    <version>2.0.1</version>
		    <scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
		</dependency>

		<!-- POCKETKNIFE LOGGING -->

		<dependency>
			<groupId>com.atlassian.pocketknife</groupId>
			<artifactId>jira-pocketknife-enablement</artifactId>
		</dependency>

		<!-- should be required by pocketknife! -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
		</dependency>

		<!-- ATLASSIAN Spring Scanner -->
		<!-- https://bitbucket.org/atlassian/atlassian-spring-scanner -->

		<!--
			This is for the annotations you need to indicate components and OSGI services.
		-->
		<dependency>
			<groupId>com.atlassian.plugin</groupId>
			<artifactId>atlassian-spring-scanner-annotation</artifactId>
			<version>${atlassian.spring.scanner.version}</version>
			<scope>compile</scope>
		</dependency>

	</dependencies>

    <build>

        <plugins>

			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
			</plugin>

			<plugin>
				<artifactId>maven-deploy-plugin</artifactId>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>

        </plugins>
    </build>

	<profiles>

		<profile>

			<id>jira-it</id>
			<activation>
				<property>
					<name>jiraIT</name>
				</property>
			</activation>

			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<configuration>
							<skipTests>true</skipTests>
						</configuration>
					</plugin>
				</plugins>
			</build>

		</profile>

        <profile>

			<id>clover</id>
            <activation>
                <property>
                    <name>coverage</name>
                </property>
            </activation>

            <build>

                <plugins>

					<plugin>

						<groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-clover2-plugin</artifactId>

						<configuration>

							<licenseLocation>${basedir}/../../builds/clover.license</licenseLocation>
                            <contextFilters>property,constructor,static</contextFilters>

                        </configuration>

                    </plugin>

                </plugins>

            </build>

        </profile>

	</profiles>

</project>
