<?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.pom</groupId>
        <artifactId>atlassian-closedsource-pom</artifactId>
        <version>25</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.atlassian.labs</groupId>
    <artifactId>atlassian-bot-killer</artifactId>
    <version>1.7.5</version>

    <name>Atlassian Bot Session Killer</name>
    <description>This will remove unwanted http sessions for requests that exhibit Bot like behaviour.
        That is they make a single request, don't preserve cookies and never call again.
    </description>
    <packaging>atlassian-plugin</packaging>

    <organization>
        <name>Atlassian</name>
        <url>http://www.atlassian.com/</url>
    </organization>
	<licenses>
		<license>
			<name>Atlassian 3.0 End User License Agreement</name>
			<url>http://www.atlassian.com/end-user-agreement/</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
    <scm>
        <connection>scm:hg:ssh://hg@bitbucket.org/bbaker/atlassian-bot-killer</connection>
        <developerConnection>scm:hg:ssh://hg@bitbucket.org/bbaker/atlassian-bot-killer</developerConnection>
        <url>ssh://hg@bitbucket.org/bbaker/atlassian-bot-killer</url>
    </scm>


    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.3</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
            <version>2.0.17</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.6.2</version>
            <scope>provided</scope>
        </dependency>

        <!--
            I leave this here so that I can run atlas-debug and IDEA can easily include JIRA source if need be

            This is NOT a JIRA plugin and has no code dependencies on any Atlassian product
            and hence it can be used in any Atlassian product
        -->
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-core</artifactId>
            <version>6.0.2</version>
            <scope>test</scope>
        </dependency>
		<dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <version>6.0.2</version>
            <scope>test</scope>
        </dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.8.1</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>com.atlassian.jira</groupId>
			<artifactId>jira-func-tests</artifactId>
			<version>6.0.2</version>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>com.sun.jersey</groupId>
					<artifactId>jersey-server</artifactId>
				</exclusion>
				<exclusion>
					<groupId>javax.jms</groupId>
					<artifactId>jms</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>com.atlassian.jira</groupId>
			<artifactId>jira-nimble-func-tests</artifactId>
			<version>0.2.1</version>
			<scope>test</scope>
		</dependency>
    </dependencies>

	<build>
		<testResources>
			<testResource>
				<directory>src/test/resources</directory>
			</testResource>
			<testResource>
				<directory>src/test/xml</directory>
				<targetPath>xml</targetPath>
			</testResource>
		</testResources>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>net.sf.alchim</groupId>
					<artifactId>yuicompressor-maven-plugin</artifactId>
					<version>0.7.1</version>
					<configuration>
						<encoding>UTF-8</encoding>
						<!-- Everything on one line -->
						<linebreakpos>-1</linebreakpos>
						<!-- Turning off JSlint warnings -->
						<jswarn>false</jswarn>
						<excludes>
							<exclude>**/*-min*</exclude>
						</excludes>
					</configuration>

				</plugin>
				<plugin>
					<groupId>com.atlassian.maven.plugins</groupId>
					<artifactId>maven-amps-plugin</artifactId>
					<version>3.9.3</version>
				</plugin>
			</plugins>
		</pluginManagement>

		<plugins>
			<plugin>
				<groupId>com.atlassian.maven.plugins</groupId>
				<artifactId>maven-jira-plugin</artifactId>
				<version>3.9.3</version>
				<extensions>true</extensions>
				<configuration>
					<systemPropertyVariables>
						<xvfb.enable>${xvfb.enable}</xvfb.enable>
						<atlassian.test.target.dir>${project.build.directory}</atlassian.test.target.dir>
						<atlassian.dev.mode>true</atlassian.dev.mode>
						<!--jira.qunit.testoutput.location>${project.build.directory}/surefire-reports</jira.qunit.testoutput.location-->
					</systemPropertyVariables>
					<enableFastdev>false</enableFastdev>
					<enableDevToolbox>false</enableDevToolbox>
					<jvmArgs>-Xmx768m -XX:MaxPermSize=384m</jvmArgs>
					<productVersion>${jira.test.lib.version}</productVersion>
					<productDataVersion>${jira.data.version}</productDataVersion>
					<compressResources>false</compressResources>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.4.3</version>
				<configuration>
					<skip>${skipTests}</skip>
					<includes>
						<include>**/*Test.java</include>
					</includes>
					<excludes>
						<exclude>it/**</exclude>
						<exclude>it2/**</exclude>
					</excludes>
					<forkMode>once</forkMode>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.2.2</version>
				<configuration>
					<preparationGoals>clean test</preparationGoals>
					<releaseProfiles>releaseProfile</releaseProfiles>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>2.4</version>
				<executions>
					<execution>
						<goals>
							<goal>test-jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<properties>
		<jira.version>6.0.2</jira.version>
		<jira.test.lib.version>${jira.version}</jira.test.lib.version>
		<jira.data.version>${jira.test.lib.version}</jira.data.version>
		<refapp.version>2.12.0</refapp.version>
        <amps.version>3.9.3</amps.version>
		<xvfb.enable>false</xvfb.enable>
		<jira.nimble-func-tests.version>0.2.1</jira.nimble-func-tests.version>
	</properties>

	<profiles>
		<profile>
			<id>releaseProfile</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<properties>
				<skipTests>true</skipTests>
				<!--enforcer.skip>true</enforcer.skip-->
			</properties>
		</profile>
	</profiles>


</project>
