<?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>5.0.21</version>
	</parent>

	<modelVersion>4.0.0</modelVersion>
	<groupId>com.atlassian.jira</groupId>
	<artifactId>jira-mail-plugin</artifactId>
	<version>12.0.1</version>

	<name>Atlassian Jira - Plugins - Mail Plugin</name>
	<description>Handles incoming and outgoing mail</description>
	<packaging>atlassian-plugin</packaging>

	<scm>
		<connection>scm:git:ssh://git@stash.atlassian.com:7997/jiraserver/jira-mail-plugin.git</connection>
		<developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/jiraserver/jira-mail-plugin.git</developerConnection>
		<url>https://stash.atlassian.com/projects/JIRASERVER/repos/jira-mail-plugin/browse</url>
	  <tag>jira-mail-plugin-12.0.1</tag>
  </scm>

	<build>
		<testResources>
			<testResource>
				<directory>src/test/resources</directory>
			</testResource>
			<testResource>
				<directory>src/test/xml</directory>
				<targetPath>xml</targetPath>
			</testResource>
		</testResources>
		<plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
                    <preparationGoals>clean test</preparationGoals>
                </configuration>
            </plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.7</version>
			</plugin>
			<plugin>
				<groupId>com.atlassian.plugin</groupId>
				<artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
				<version>${atlassian.spring.scanner.version}</version>
				<executions>
					<execution>
						<goals>
							<goal>atlassian-spring-scanner</goal>
						</goals>
						<phase>process-classes</phase>
					</execution>
				</executions>
				<configuration>
					<!-- Enable this to get build-time logging of annotations atlassian-spring-scanner-maven-plugin has noticed -->
					<verbose>false</verbose>
				</configuration>
			</plugin>
			<plugin>
				<groupId>com.atlassian.maven.plugins</groupId>
				<artifactId>jira-maven-plugin</artifactId>
				<version>${amps.version}</version>
				<extensions>true</extensions>
				<configuration>
                    <product>jira</product>
					<enableFastdev>false</enableFastdev>
                    <excludeAllTestDependencies>true</excludeAllTestDependencies>
					<productVersion>${jira.version}</productVersion>
					<productDataVersion>${jira.data.version}</productDataVersion>
					<jvmArgs>${jira.jvm.extra.args}</jvmArgs>
					<ajpPort>9009</ajpPort>
                    <systemPropertyVariables>
                        <xvfb.enable>${xvfb.enable}</xvfb.enable>
                    </systemPropertyVariables>
                    <bundledArtifacts>
                        <bundledArtifact>
                            <groupId>org.apache.servicemix.bundles</groupId>
                            <artifactId>org.apache.servicemix.bundles.junit</artifactId>
                            <version>4.12_1</version>
                        </bundledArtifact>
                        <bundledArtifact>
                            <groupId>com.atlassian.plugins</groupId>
                            <artifactId>atlassian-plugins-osgi-testrunner-bundle</artifactId>
                            <version>${plugin.testrunner.version}</version>
                        </bundledArtifact>
                    </bundledArtifacts>
                    <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>
					<systemProperties>
						<property>
							<name>atlassian.test.target.dir</name>
							<value>${project.build.directory}</value>
						</property>
						<property>
							<name>atlassian.mail.senddisabled</name>
							<value>false</value>
						</property>
						<property>
							<name>atlassian.mail.fetchdisabled</name>
							<value>false</value>
						</property>
					</systemProperties>
					<instructions>
						<Atlassian-Plugin-Key>com.atlassian.jira.jira-mail-plugin</Atlassian-Plugin-Key>
						<Spring-Context>*</Spring-Context>
						<Import-Package>
							com.atlassian.plugin.osgi.bridge.external,
							com.atlassian.jira.plugin.webfragment.conditions,
							*;resolution:="optional"
						</Import-Package>
						<Export-Package>
							com.atlassian.jira.plugins.mail.handlers*,
							com.atlassian.jira.plugins.mail.webwork*,
                            com.atlassian.jira.plugins.mail.internal*,
							com.atlassian.jira.plugins.mail
						</Export-Package>
					</instructions>
					<skipManifestValidation>true</skipManifestValidation>
				</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>
						<configuration>
							<forceCreation>true</forceCreation>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<dependencies>
		<dependency>
			<groupId>com.atlassian.plugin</groupId>
			<artifactId>atlassian-spring-scanner-annotation</artifactId>
			<version>${atlassian.spring.scanner.version}</version>
			<scope>provided</scope>
		</dependency>
        <dependency>
            <groupId>com.atlassian.activeobjects</groupId>
            <artifactId>activeobjects-plugin</artifactId>
            <version>${activeobjects.version}</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.google.collections</groupId>
                    <artifactId>google-collections</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
		<dependency>
			<groupId>com.atlassian</groupId>
			<artifactId>atlassian-test-categories</artifactId>
			<version>0.5</version>
		</dependency>
		<dependency>
			<groupId>com.atlassian.jira</groupId>
			<artifactId>jira-core</artifactId>
			<version>${jira.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>io.atlassian.fugue</groupId>
			<artifactId>fugue</artifactId>
			<version>${io.fugue.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.atlassian.jira</groupId>
			<artifactId>jira-api</artifactId>
			<version>${jira.version}</version>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>xerces</groupId>
					<artifactId>xercesImpl</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.codehaus.jackson</groupId>
			<artifactId>jackson-core-asl</artifactId>
			<version>${jackson.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.codehaus.jackson</groupId>
			<artifactId>jackson-mapper-asl</artifactId>
			<version>${jackson.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.codehaus.jackson</groupId>
			<artifactId>jackson-jaxrs</artifactId>
			<version>${jackson.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.atlassian.core</groupId>
			<artifactId>atlassian-core</artifactId>
			<version>4.6.17</version>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>com.google.guava</groupId>
					<artifactId>guava</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>javax.ws.rs</groupId>
			<artifactId>jsr311-api</artifactId>
			<version>1.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpcore</artifactId>
			<version>4.4.1</version>
			<scope>provided</scope>
		</dependency>

        <dependency>
			<groupId>com.atlassian.jira</groupId>
			<artifactId>jira-webdriver-tests</artifactId>
			<version>${jira.test.lib.version}</version>
			<scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>junit</groupId>
                    <artifactId>junit</artifactId>
                </exclusion>
            </exclusions>
		</dependency>
		<dependency>
			<groupId>com.atlassian.jira.tests</groupId>
			<artifactId>jira-func-test-basics</artifactId>
			<version>${func.test.basic.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.atlassian.jira</groupId>
			<artifactId>jira-tests</artifactId>
			<version>${jira.test.lib.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>mockobjects</groupId>
			<artifactId>mockobjects-j1.4-j2ee1.3</artifactId>
			<version>0.07</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<!-- We manually get Mockito 2 to avoid bumping jira.version to 7.11 -->
			<groupId>org.mockito</groupId>
			<artifactId>mockito-core</artifactId>
			<version>2.18.3</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>mockobjects</groupId>
			<artifactId>mockobjects-dev</artifactId>
			<version>JIRA311-DEV</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.atlassian.jira.tests</groupId>
			<artifactId>jira-testkit-client</artifactId>
			<version>${testkit.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.google.code.findbugs</groupId>
			<artifactId>jsr305</artifactId>
			<version>${jsr305.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
			<version>2.5</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.sun.jersey</groupId>
			<artifactId>jersey-client</artifactId>
			<version>${jersey.client.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpclient-cache</artifactId>
			<version>4.2.1-atlassian-2</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.atlassian.oauth2</groupId>
			<artifactId>oauth2-client-api</artifactId>
			<version>${oauth2.version}</version>
			<scope>provided</scope>
		</dependency>

		<!-- wired test deps -->
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
            <version>${plugin.testrunner.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.2.2-atlassian-1</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-core</artifactId>
            <version>4.0.0-m011</version>
            <scope>provided</scope>
        </dependency>
        <!-- wired test deps -->
	</dependencies>
	<properties>
		<jira.version>8.19.0-QR-20210727055825</jira.version>
        <jira.data.version>${jira.version}</jira.data.version>
		<jira.test.lib.version>${jira.version}</jira.test.lib.version>
		<testkit.version>8.1.30</testkit.version>
		<jersey.client.version>1.19.4</jersey.client.version>
		<jackson.version>1.9.13-atlassian-4</jackson.version>
		<jsr305.version>3.0.2</jsr305.version>
		<func.test.basic.version>1.9.2</func.test.basic.version>
		<maven.test.unit.skip>false</maven.test.unit.skip>
		<amps.version>8.1.0</amps.version>
		<io.fugue.version>4.7.1</io.fugue.version>
		<oauth2.version>1.0.1</oauth2.version>
        <xvfb.enable>true</xvfb.enable>
		<activeobjects.version>3.0.0-22a6ef4</activeobjects.version>
        <plugin.testrunner.version>2.0.1</plugin.testrunner.version>
        <od.testing.configuration>use-maven,3</od.testing.configuration>
        <failOnMilestoneOrReleaseCandidateDeps>false</failOnMilestoneOrReleaseCandidateDeps>
        <requireJavaVersion>1.8.0</requireJavaVersion>
        <jdkLevel>1.8</jdkLevel>
        <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
		<atlassian.spring.scanner.version>2.2.0</atlassian.spring.scanner.version>
		<jira.jvm.extra.args />
    </properties>
	<profiles>
		<profile>
			<id>releaseProfile</id>
            <activation>
                <property>
                    <name>performRelease</name>
                </property>
            </activation>
			<properties>
				<maven.test.unit.skip>true</maven.test.unit.skip>
				<skipTests>true</skipTests>
			</properties>
		</profile>
		<profile>
			<id>jira-license-default-dc</id>
			<activation>
				<property>
					<name>jira-license-default</name>
					<value>dc</value>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>com.atlassian.maven.plugins</groupId>
						<artifactId>jira-maven-plugin</artifactId>
						<configuration>
							<products>
								<product>
									<id>jira</id>
									<!-- Data Center commercial license, expiry 72H, Jira Software, unlimited users -->
									<license>
										AAACBA0ODAoPeNp9kl1v2jAUhu/zK460OyQHSLuVIkUaTbwNVBKUhEnbugsTDuA2sSPbgbFfPxOC1
										i+4yEXO5+vnPR+yGiGSW/CuoXc7vBoMvT4ENAOv5/WctUIUG1lVqNx7nqPQSJfccCl8GmU0mSXjl
										DpRXS5Qxau5RqV90ncCKQzLTcRK9Eu944Ip/cQ/M1MwrTkTbi5LZ1arfMM0hsyg7/X6A9LvE89z2
										j3ZvsJmQBBPpzQJxqP7U4r+qbjaN32zG+/baR2dMl6c35ei2qIah/4dvaHkOvzpkU/x5IZ8vbodO
										I9cMbdSclnnxj38EC1XZscUunYy36JvVI3OxGZmbZXdzwIU5lVJWi90rnjVQGoi70B873GNhPOQO
										51OFGfkS5yQWRKH8yAbxxGZp9Qm/EChpbGExR7MBqGdAlTkcokK7MMeMTfwa2NM9TDsdtfSfQGnW
										xw7CB47frsQShDSwJJro/iiNmgncw1GQl5rI0trtetY4sKgYCJ/Y4qVFSR0lNGQ3P04aDxrTKvWO
										jMXT0LuxCU33txaSiPffuRjr3fsO/mC6og/VmsmuGYN0Ij93TFYcVXunQaaDb4+wJbFd7vg0OI5I
										f53NENtoK2AlVQwGScjSFt5lrjdWymu8WEIgSwtppyzAsLgxRk8P5hG9PMA3bKiPspdsULjJRwX7
										ukf5/NX7TAtAhUAhQSHz9DgycOX7wcwERMJb3TLGb4CFGkB/xUWSRK3BZLrPF9Rn6ZmrUqJX02oc
									</license>
								</product>
							</products>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
    <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>
</project>
