<?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>closedsource-pom</artifactId>
        <version>3.0.0</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.atlassian.jira.plugins</groupId>
    <artifactId>jira-auditing-plugin</artifactId>
    <version>1.0.4</version>

    <organization>
        <name>Atlassian</name>
        <url>http://www.atlassian.com/</url>
    </organization>

    <name>JIRA Auditing Plugin</name>
    <description>JIRA Auditing Plugin</description>
    <packaging>atlassian-plugin</packaging>

    <scm>
        <connection>scm:git:ssh://git@bitbucket.org/atlassian/jira-auditing-plugin.git</connection>
        <developerConnection>scm:git:ssh://git@bitbucket.org/atlassian/jira-auditing-plugin.git</developerConnection>
        <url>http://bitbucket.org/atlassian/jira-auditing-plugin</url>
    </scm>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-core</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpcore</artifactId>
            <version>4.2.2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-tests</artifactId>
            <version>${jira.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-webdriver-tests</artifactId>
            <version>${jira.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-rest-api</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.analytics</groupId>
            <artifactId>analytics-api</artifactId>
            <version>${analytics.version}</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-rest-java-client-api</artifactId>
            <version>2.0.0-m25</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-rest-java-client-core</artifactId>
            <version>2.0.0-m25</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
            <scope>test</scope>
        </dependency>

        <!-- Scala dependencies -->
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-compiler</artifactId>
            <version>${scala.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
            <version>${scala.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.scalatest</groupId>
            <artifactId>scalatest_${scala.version.base}</artifactId>
            <version>2.0.M5b</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
            <version>2.3</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.joda</groupId>
            <artifactId>joda-convert</artifactId>
            <version>1.2</version>
            <scope>provided</scope>
        </dependency>

        <!-- transformless plugins dependencies -->
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-runtime</artifactId>
            <version>${spring.scanner.version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-annotation</artifactId>
            <version>${spring.scanner.version}</version>
        </dependency>

        <!-- other dependencies -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>2.5.6</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.prettyurls</groupId>
            <artifactId>atlassian-pretty-urls-plugin</artifactId>
            <version>${prettyurls.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.tests</groupId>
            <artifactId>jira-testkit-client</artifactId>
            <version>${testkit.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>junit</groupId>
                    <artifactId>junit-dep</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- REST module dependencies -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.4</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>1.0</version>
            <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.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <version>${rest.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-module</artifactId>
            <version>${rest.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>io.spray</groupId>
            <artifactId>spray-json_2.10.0-RC5</artifactId>
            <version>1.2.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>net.sf.supercsv</groupId>
            <artifactId>super-csv</artifactId>
            <version>2.1.0</version>
        </dependency>
    </dependencies>

    <build>
        <testResources>
            <testResource>
                <directory>src/test/resources</directory>
            </testResource>
            <testResource>
                <directory>src/test/xml</directory>
                <targetPath>xml</targetPath>
            </testResource>
        </testResources>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>buildnumber-maven-plugin</artifactId>
                <version>1.1</version>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>create</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <shortRevisionLength>8</shortRevisionLength>
                    <revisionOnScmFailure>unknown</revisionOnScmFailure>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-jira-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${jira.version}</productVersion>
                    <productDataVersion>${jira.version}</productDataVersion>
                    <extractDependencies>false</extractDependencies>
                    <!-- do not change Xmx -XX:MaxPermSize - they are set to what we use in JIRA standalone -->
                    <jvmArgs>-Datlassian.darkfeature.auditing=true -Xmx768m -XX:MaxPermSize=384m</jvmArgs>
                    <instructions>
                        <Atlassian-Plugin-Key>${project.groupId}.${project.artifactId}</Atlassian-Plugin-Key>
                        <Spring-Context>*</Spring-Context>
                        <Import-Package>
                            com.atlassian.soy.renderer,
                            com.atlassian.jira.plugin.webfragment.conditions,
                            com.atlassian.plugin.osgi.bridge.external,
                            com.atlassian.crowd.embedded.api,
                            com.atlassian.jira.plugin.profile,
                            com.atlassian.jira.issue,
                            com.atlassian.jira.project,
                            com.atlassian.jira.web.util,
                            org.ofbiz.core.entity,
                            *;resolution:=optional
                        </Import-Package>
                        <Export-Package />
                    </instructions>
                    <testInstructions>
                        <Atlassian-Plugin-Key>${project.groupId}.${project.artifactId}-tests</Atlassian-Plugin-Key>
                        <Spring-Context>*</Spring-Context>
                        <Export-Package />
                    </testInstructions>
                    <pluginArtifacts>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.tests</groupId>
                            <artifactId>jira-testkit-plugin</artifactId>
                            <version>${testkit.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-func-test-plugin</artifactId>
                            <version>${jira.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                    <systemPropertyVariables>
                        <xvfb.enable>${xvfb.enable}</xvfb.enable>
                    </systemPropertyVariables>
                    <!-- we try to keep test jar of manageable size -->
                    <testBundleExcludes>
                        <testBundleExclude>
                            <groupId>com.atlassian.gadgets</groupId>
                            <artifactId>atlassian-gadgets-pageobjects</artifactId>
                        </testBundleExclude>
                        <testBundleExclude>
                            <groupId>com.atlassian.browsers</groupId>
                            <artifactId>atlassian-browsers-auto</artifactId>
                        </testBundleExclude>
                        <testBundleExclude>
                            <groupId>com.atlassian.refapp</groupId>
                            <artifactId>atlassian-refapp-pageobjects</artifactId>
                        </testBundleExclude>
                        <testBundleExclude>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-func-tests</artifactId>
                        </testBundleExclude>
                        <testBundleExclude>
                            <groupId>com.atlassian.browsers</groupId>
                            <artifactId>chrome</artifactId>
                        </testBundleExclude>
                        <testBundleExclude>
                            <groupId>com.atlassian.browsers</groupId>
                            <artifactId>firefox</artifactId>
                        </testBundleExclude>
                        <testBundleExclude>
                            <groupId>com.atlassian.browsers</groupId>
                            <artifactId>chrome-profile</artifactId>
                        </testBundleExclude>
                        <testBundleExclude>
                            <groupId>com.atlassian.refapp</groupId>
                            <artifactId>platform-ctk-plugin</artifactId>
                        </testBundleExclude>
                        <testBundleExclude>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-webdriver-tests</artifactId>
                        </testBundleExclude>
                        <testBundleExclude>
                            <groupId>org.scalatest</groupId>
                            <artifactId>scalatest_2.10</artifactId>
                        </testBundleExclude>
                    </testBundleExcludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.4</version>
                <executions>
                    <execution>
                        <id>add-generated-sources</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>${generated-src}</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <!-- Generate build properties -->
                    <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <target>
                                <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" />

                                <tstamp>
                                    <format property="touch.time" pattern="yyyy-MM-dd'T'HH:mm:ss.SSSZ" />
                                </tstamp>
                                <copy file="${project.basedir}/src/main/scala/com/atlassian/jira/plugins/auditing/version/BuildPropertiesImpl.scala.template" tofile="${generated-src}/com/atlassian/jira/plugins/auditing/version/BuildPropertiesImpl.scala" overwrite="true" />
                                <replace file="${generated-src}/com/atlassian/jira/plugins/auditing/version/BuildPropertiesImpl.scala" token="@BUILD_DATE@" value="${touch.time}" />
                                <replace file="${generated-src}/com/atlassian/jira/plugins/auditing/version/BuildPropertiesImpl.scala" token="@VERSION@" value="${project.version}" />
                                <replace file="${generated-src}/com/atlassian/jira/plugins/auditing/version/BuildPropertiesImpl.scala" token="@CHANGE_SET@" value="${buildNumber}" />
                            </target>
                            <skip>${skip.antrunner}</skip>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>ant-contrib</groupId>
                        <artifactId>ant-contrib</artifactId>
                        <version>1.0b3</version>
                        <exclusions>
                            <exclusion>
                                <groupId>ant</groupId>
                                <artifactId>ant</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
            <plugin>

                <!--
                    See http://davidb.github.io/scala-maven-plugin/index.html for full details
                 -->

                <groupId>net.alchim31.maven</groupId>
                <artifactId>scala-maven-plugin</artifactId>
                <version>3.1.5</version>
                <executions>
                    <execution>
                        <id>scala-compile-first</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>add-source</goal>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>scala-test-compile</id>
                        <phase>process-test-resources</phase>
                        <goals>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <args>
                        <!-- to avoid 'error: File name too long' in Linux/ecryptfs file system -->
                        <arg>-Xmax-classfile-name</arg>
                        <arg>143</arg>
                        <arg>-unchecked</arg>
                        <arg>-deprecation</arg>
                        <!--<arg>-explaintypes</arg>-->
                        <arg>-feature</arg>
                        <arg>-language:_</arg>
                        <arg>-target:jvm-1.6</arg>
                    </args>
                    <!--
                        we don't want the scala compiler to go into GC catalepsy,
                        it's slow enough as it is. running in-process causes classpath problems.

                        Taken from Soke POM scala config
                    -->
                    <jvmArgs>
                        <param>-server</param>
                        <!--grabbing memory up front saves us 2 seconds-->
                        <param>-Xms1024M</param>
                        <param>-Xmx1024M</param>

                        <param>-XX:+PrintGC</param>
                        <param>-XX:+PrintGCDetails</param>
                        <param>-XX:+PrintGCTimeStamps</param>
                        <param>-XX:+DisableExplicitGC</param>
                        <param>-XX:+UseParallelOldGC</param>
                    </jvmArgs>

                    <!--

                    Seems to really increase compile speed.  A lot!!!

                    -->
                    <recompileMode>incremental</recompileMode>
                    <javacArgs>
                        <javacArg>-Xlint:unchecked</javacArg>
                        <javacArg>-Xlint:deprecation</javacArg>
                    </javacArgs>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.twdata.maven</groupId>
                <artifactId>maven-cli-plugin</artifactId>
                <version>1.0.6</version>
                <configuration>
                    <commands>
                        <sc>org.codehaus.mojo:build-helper-maven-plugin:add-source net.alchim31.maven:scala-maven-plugin:add-source net.alchim31.maven:scala-maven-plugin:compile</sc>
                    </commands>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                <version>${spring.scanner.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>atlassian-spring-scanner</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>license-maven-plugin</artifactId>
                    <version>1.3-atlassian-1.13</version>
                    <configuration>
                        <acceptPomPackaging>true</acceptPomPackaging>
                        <missingFile>${basedir}/third-party-licensing/missing-license-maven-dependencies.properties
                        </missingFile>
                        <excludedGroups>com.atlassian.browsers</excludedGroups>
                        <excludedLicenses>GNU General Public License 2|GNU General Public License 3</excludedLicenses>
                        <outputDirectory>src/main/resources/third-party-licensing</outputDirectory>
                        <thirdPartyFilename>bom.csv</thirdPartyFilename>
                        <useMissingFile>true</useMissingFile>
                        <useRepositoryMissingFiles>false</useRepositoryMissingFiles>
                        <force>true</force>
                        <deployMissingFile>false</deployMissingFile>
                        <failIfWarning>true</failIfWarning>
                        <aggregatorOnlyMode>true</aggregatorOnlyMode>
                        <excludedScopes>provided</excludedScopes>
                        <ignoredArtifactsTrees>
                            com.atlassian.jira:jira-tests,com.atlassian.jira:atlassian-jira-pageobjects,com.atlassian.jira:jira-rest-java-client-core,com.atlassian.jira.tests:jira-testkit-client,com.atlassian.jira:jira-func-tests,com.atlassian.plugins:atlassian-plugins-osgi-testrunner
                        </ignoredArtifactsTrees>
                        <nonMavenDependenciesFile>third-party-licensing/missing-non-maven-dependencies.properties
                        </nonMavenDependenciesFile>
                        <licensesDirectory>licenses</licensesDirectory>
                        <!-- or your license directory -->
                        <licenseMerges>
                            <licenseMerge>Apache License 2.0|Apache License, version 2.0|Apache Software License -
                                Version 2.0|Apache License|Apache 2.0|Apache 2.0 License|Apache License Version
                                2.0|Apache 2|Apache v2|The Apache License|Apache Software Licenses|the Apache License -
                                ASL Version 2.0|The Apache Software License, Version 2.0|Apache License, Version 2.0|ASF
                                2.0
                            </licenseMerge>
                            <licenseMerge>Apache License 1.1|Apache Software License, Version 1.1</licenseMerge>
                            <licenseMerge>Creative Commons Attribution License 2.5|Creative Commons Attribution 2.5
                            </licenseMerge>
                            <licenseMerge>Atlassian 3.0 End User License Agreement|Atlassian End User License
                            </licenseMerge>
                            <licenseMerge>BSD License|BSD|BSD-like|BSD Licence|New BSD License|BSD Style|BSD style|The
                                BSD License|BSD license|BSD licence
                            </licenseMerge>
                            <licenseMerge>GNU Lesser General Public License|GNU LESSER GENERAL PUBLIC
                                LICENSE|LGPL|lgpl
                            </licenseMerge>
                            <licenseMerge>GNU Lesser General Public License 2.1|GNU Lesser General Public License
                                (LGPL), Version 2.1|LGPL 2.1 License|GNU General Public Library|LGPL 2.1|GNU Lesser
                                General Public License, version 2.1|GNU Lesser General Public License, Version 2.1|LGPL,
                                version 2.1
                            </licenseMerge>
                            <licenseMerge>Eclipse Public License 1.0|Eclipse Public License|Eclipse Public License,
                                Version 1.0|Eclipse Public License - v 1.0
                            </licenseMerge>
                            <licenseMerge>Common Public License 1.0|Common Public License Version 1.0</licenseMerge>
                            <licenseMerge>Common Public License 1.1|CDDL 1.1</licenseMerge>
                            <licenseMerge>MIT License| MIT license|The MIT license|The MIT License</licenseMerge>
                            <licenseMerge>GNU General Public License 2|The GNU General Public License, Version 2
                            </licenseMerge>
                            <licenseMerge>GNU General Public License 3|The GNU General Public License, Version 3
                            </licenseMerge>
                            <licenseMerge>Mozilla Public License 1.1|Mozilla Public License version 1.1|Mozilla Public
                                License 1.1 (MPL 1.1)|MPL 1.1
                            </licenseMerge>
                            <licenseMerge>GNU General Public License 2 - classpath exception|GPLv2 with classpath
                                exception|GPLv2+CE|GPL2 w/ CPE
                            </licenseMerge>
                            <licenseMerge>Common Development and Distribution License 1.0|CDDL 1.0|CDDL + GPLv2 with
                                classpath exception|CDDL License|CDDL|cddl|Common Development and Distribution License
                                (CDDL) v1.0|COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
                            </licenseMerge>
                        </licenseMerges>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <profiles>
        <!--
         - make sure contents of WEB-INF/lib are only changed knowingly. enable by
         - passing -DverifyDependencies to Maven.
        -->
        <profile>
            <id>dependency-tracking</id>
            <activation>
                <activeByDefault>false</activeByDefault>
                <property>
                    <name>verifyDependencies</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-dependency-tracker-plugin</artifactId>
                        <version>1.2.3</version>
                        <executions>
                            <execution>
                                <id>validate-webinf-lib</id>
                                <phase>validate</phase>
                                <goals>
                                    <goal>validate</goal>
                                </goals>
                                <configuration>
                                    <failMessage>.
                                        **********************************************************************
                                        The runtime dependencies of jira-auditing-plugin have changed. You need to
                                        review and update dependencies.txt. You can run: mvn3 validate
                                        -DverifyDependencies
                                        **********************************************************************
                                    </failMessage>
                                    <!-- don't nag people about changes they've made in the pom.xml -->
                                    <includeDirectDependencies>true</includeDirectDependencies>

                                    <!-- only include JARs that make it into WEB-INF/lib -->
                                    <includeScope>runtime</includeScope>

                                    <!-- disable checksums, they are broken in CI -->
                                    <validatePomChecksums>false</validatePomChecksums>
                                    <validateArtifactChecksums>false</validateArtifactChecksums>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>pseudo.locale</id>
            <activation>
                <property>
                    <name>!jira.acceptance.tests</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>pseudo-loc-maven-plugin</artifactId>
                        <version>1.5</version>
                        <executions>
                            <execution>
                                <id>pseudo-loc</id>
                                <phase>generate-sources</phase>
                                <goals>
                                    <goal>pseudo-loc</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <sourceLocale>en_UK</sourceLocale>
                            <targetLocale>en_AQ</targetLocale>
                            <pseudoLocaliseActions>
                                <pseudoLocaliseAction>
                                    <source>
                                        src/main/resources/jira-auditing-plugin.properties
                                    </source>
                                    <target>
                                        ${project.build.directory}/test-classes/jira-auditing-plugin_{loc}.properties
                                    </target>
                                </pseudoLocaliseAction>
                            </pseudoLocaliseActions>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <version>2.8</version>
                        <executions>
                            <execution>
                                <id>copy</id>
                                <phase>generate-resources</phase>
                                <goals>
                                    <goal>copy</goal>
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>com.atlassian.jira</groupId>
                                            <artifactId>jira-languages</artifactId>
                                            <classifier>en_AQ</classifier>
                                            <version>${jira.version}</version>
                                            <type>jar</type>
                                            <overWrite>false</overWrite>
                                            <outputDirectory>${project.build.directory}/jira/bundled-plugins</outputDirectory>
                                        </artifactItem>
                                    </artifactItems>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>jira.acceptance.tests</id>
            <activation>
                <activeByDefault>false</activeByDefault>
                <property>
                    <name>jira.acceptance.tests</name>
                </property>
            </activation>
            <properties>
                <skip.antrunner>true</skip.antrunner>
            </properties>
        </profile>
    </profiles>

    <properties>
        <xvfb.enable>true</xvfb.enable>
        <jira.version>6.3-auditing</jira.version>
        <amps.version>4.2.10</amps.version>
        <plugin.testrunner.version>1.1.1</plugin.testrunner.version>
        <testkit.version>6.2.21</testkit.version>
        <scala.version>2.10.1</scala.version>
        <scala.version.base>2.10</scala.version.base>
        <prettyurls.version>1.8</prettyurls.version>
        <rest.version>2.8.0-m8</rest.version>
        <analytics.version>2.28</analytics.version>
        <generated-src>${project.build.directory}/generated-src</generated-src>
        <skip.antrunner>false</skip.antrunner>
        <spring.scanner.version>1.2.1</spring.scanner.version>
    </properties>

</project>
