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

	<modelVersion>4.0.0</modelVersion>
	<groupId>com.atlassian.rm</groupId>
	<artifactId>jira-portfolio-main</artifactId>
	<version>9.4.28</version>

	<parent>
		<groupId>com.atlassian.jira</groupId>
		<artifactId>jira-software-plugins</artifactId>
		<version>9.4.28</version>
	</parent>

	<scm>
		<connection>scm:git:ssh://git@stash.atlassian.com:7997/jpos/portfolio-server.git</connection>
		<developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/jpos/portfolio-server.git</developerConnection>
		<url>scm:git:ssh://git@stash.atlassian.com:7997/jpos/portfolio-server.git</url>
		<tag>jira-portfolio-main-1.7.0</tag>
	</scm>

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

	<name>Portfolio for Jira [Parent POM]</name>

	<modules>
		<module>static-analysers</module>

		<module>portfolio-pocketknife-querydsl-legacy</module>
		<module>portfolio-bridges</module>
		<module>portfolio-lucene-bridge</module>
		<module>portfolio-jira-bridge</module>
		<module>portfolio-agile-api</module>
		<module>portfolio-environment-test-utils</module>
		<module>portfolio-environment-test-utils-jira</module>
		<module>scheduling</module>
		<module>scheduling-experimental</module>

		<!-- ======================================================= -->
		<!-- MORE MODULES ARE DEFINED IN PROFILES FOR EASY EXCLUSION -->
		<!-- ======================================================= -->

	</modules>

	<packaging>pom</packaging>

	<properties>

		<java.build.version>1.8</java.build.version>

		<!-- TODO: parent pom is using 8.13+, we should to a newer version -->
		<checkstyle.version>6.9</checkstyle.version>

		<maven.javadoc.skip>true</maven.javadoc.skip>

		<autoVersionSubmodules>true</autoVersionSubmodules>

		<!-- needs to be its own property due to http://stackoverflow.com/questions/13228472/how-to-acces-maven-build-timestamp-for-resource-filtering -->
		<jpo.build.timestamp>${maven.build.timestamp}</jpo.build.timestamp>
		<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss.SSSZZ</maven.build.timestamp.format>

		<!-- logging -->
		<slf4j.version>1.7.25</slf4j.version>

		<!-- lucene -->
		<lucene7.version>7.3.1</lucene7.version>

		<!-- atlassian maven plugin: must use version to implement jira-software application -->
		<amps.version>8.10.4</amps.version>

		<jira.it.version>${jira.version}</jira.it.version>
		<swagger.version>1.6.6</swagger.version>

		<!-- Universal Plugin Manager -->
		<upm.version>2.17</upm.version>

		<!--Jira SW-->
		<jira.software.it.version>${project.version}</jira.software.it.version> <!-- should be RELEASE -->

		<jira.software.plugin.it.version>2.0.6-D20160321T004121</jira.software.plugin.it.version>
		<jira.transition.triggers.it.version>5.0.0-D20160418T082916</jira.transition.triggers.it.version>
		<jira.fisheye.it.version>7.0.13-D20160317T235354</jira.fisheye.it.version>
		<jira.dvcs.connector.it.version>5.0.0-D20160415T064601</jira.dvcs.connector.it.version>
		<jira.development.integration.it.version>5.0.0-D20160413T234436</jira.development.integration.it.version>
		<jira.bamboo.it.version>7.3.36-D20160322T102433</jira.bamboo.it.version>
		<atlassian.connect.integration.plugin.version>1.1.0-D20160614T021032</atlassian.connect.integration.plugin.version>

		<jira.it.test.pattern>it/**/*Test.java</jira.it.test.pattern>

		<atlassian.annotations.version>2.0.0</atlassian.annotations.version>
		<atlassian.gadgets.version>3.5.1</atlassian.gadgets.version>

		<!-- OSGi -->
		<apache.felix.version>3.0.2</apache.felix.version>
		<atlassian.osgi.version>4.5.0</atlassian.osgi.version>

		<!-- AO -->
		<ao.version>1.4.0</ao.version>

		<guava.version>32.1.1-jre</guava.version>
		<guava.scope>provided</guava.scope>

		<!-- dependency version -->
		<javax.mail.version>1.4.5</javax.mail.version>

		<!-- for testing and micros -->
		<spring.version>5.3.33</spring.version>

		<!-- testing -->
		<hsqldb.version>1.8.0.10</hsqldb.version>
		<rest.assured.version>2.5.0</rest.assured.version>

		<!-- postgres -->
		<postgres.db.version>9.6</postgres.db.version> <!-- is overridden by build plans! -->
		<postgres.jdbc.version>42.7.2</postgres.jdbc.version> <!-- is overridden by build plans! -->

		<!-- pocketknife -->
		<pocketknife.enablement.version>2.0.9</pocketknife.enablement.version>

		<surefire.plugin.version>2.12.4</surefire.plugin.version>

		<jersey.version>1.17.1</jersey.version>

		<jackson.version>1.9.1</jackson.version>

		<org.eclipse.jetty.version>9.4.35.v20201120</org.eclipse.jetty.version>

		<enableFastdev>false</enableFastdev>

		<!-- client builds -->
		<node.installDirectory>target</node.installDirectory>
		<node.executable>${node.installDirectory}/node/node</node.executable>
		<yarn.executable>${node.installDirectory}/node/yarn/dist/bin/yarn</yarn.executable>

		<!-- NPM and NPX are still used to build Portfolio-1 and the Team Management Client project -->
		<npm.executable>npm</npm.executable>
		<npx.executable>npx</npx.executable>

		<node.modules>node_modules</node.modules>
		<node.modules.bin>node_modules/.bin</node.modules.bin>

		<webpack.executable>webpack</webpack.executable>
		<grunt.executable>grunt</grunt.executable>
		<karma.executable>karma</karma.executable>

		<!-- must be defined on plugin-level -->
		<amps.resources>define-in-plugin-modules</amps.resources>
		<amps.resources.jira6>define-in-plugin-modules</amps.resources.jira6>
		<amps.resources.testdata>define-in-plugin-modules</amps.resources.testdata>

		<!-- dynamic imports -->
		<agile.bridge.dynamic.imports>
			com.atlassian.greenhopper.api.*;resolution:=optional,
			com.atlassian.greenhopper.service;resolution:=optional,
			com.atlassian.greenhopper.service.project;resolution:=optional,
			com.atlassian.greenhopper.service.sprint;resolution:=optional,
			com.atlassian.greenhopper.model.rapid;resolution:=optional,
			com.atlassian.greenhopper.service.rapid.view;resolution:=optional,
			com.atlassian.greenhopper.web.rapid.view;resolution:=optional,
			com.atlassian.greenhopper.model.validation;resolution:=optional,
			com.atlassian.greenhopper.service.issuelink;resolution:=optional,
			com.atlassian.greenhopper.manager.rapidview;resolution:=optional,
			com.pyxis.greenhopper.jira.license;resolution:=optional,
			com.atlassian.greenhopper.service.rapid.view.statistics;resolution:=optional,
		</agile.bridge.dynamic.imports>

		<inline.issue.create.bridge.dynamic.imports>
			com.atlassian.jira.plugins.issue.create.context.api;resolution:=optional,
		</inline.issue.create.bridge.dynamic.imports>

		<mysql.docker.repo>mysql</mysql.docker.repo>

		<!-- Quickreload -->
		<useFastdevCli>false</useFastdevCli>
		<enableDevToolbox>false</enableDevToolbox>
		<enablePde>true</enablePde>
		<compressJs>false</compressJs>
		<compressCss>false</compressCss>
		<compressResources>false</compressResources>
		<enableQuickReload>false</enableQuickReload>
		<quickReloadVersion>2.0.0</quickReloadVersion>

		<functest.plugin.version>0.8.8</functest.plugin.version>

		<!--Disable maven enforcer plugin failure when spotting M or RC releases-->
		<failOnMilestoneOrReleaseCandidateDeps>false</failOnMilestoneOrReleaseCandidateDeps>

		<!-- mssql -->
		<mssql.jdbc.version>7.2.1.jre8</mssql.jdbc.version>

		<oracle.jdbc.version>19.3.0.0</oracle.jdbc.version>
		<tpm.oracledb>OVERRIDE_ME</tpm.oracledb>
	</properties>

	<!-- plugins -->

	<build>

		<pluginManagement>

			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-jxr-plugin</artifactId>
					<version>2.5</version>
				</plugin>

				<!-- osgi -->

				<plugin>
					<groupId>org.apache.felix</groupId>
					<artifactId>maven-bundle-plugin</artifactId>
					<version>3.3.0</version> <!-- 3.2.0 or later -->
				</plugin>

				<plugin>
					<!-- https://maven.apache.org/plugins/maven-checkstyle-plugin/index.html -->
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-checkstyle-plugin</artifactId>
					<version>2.17</version>
					<configuration>
						<!-- Need to disable by default, otherwise the plugin runs with default config on non participating modules. -->
						<skip>true</skip>
					</configuration>
				</plugin>

				<plugin>
					<!-- https://gleclaire.github.io/findbugs-maven-plugin/index.html -->
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>findbugs-maven-plugin</artifactId>
					<version>3.0.5</version>
					<configuration>
						<!-- Need to disable by default, otherwise the plugin runs with default config on non participating modules. -->
						<skip>true</skip>
					</configuration>
				</plugin>

				<plugin>
					<!-- http://maven.apache.org/plugins/maven-pmd-plugin/index.html -->
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-pmd-plugin</artifactId>
					<version>3.8</version>
					<configuration>
						<!-- Need to disable by default, otherwise the plugin runs with default config on non participating modules. -->
						<skip>true</skip>
					</configuration>
				</plugin>

				<plugin>
					<artifactId>maven-compiler-plugin</artifactId>
					<configuration>
						<source>${java.build.version}</source>
						<target>${java.build.version}</target>
					</configuration>
				</plugin>

				<plugin>
					<artifactId>maven-clean-plugin</artifactId>
					<version>2.6.1</version>
				</plugin>

				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<version>1.3.2</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>2.10</version>
				</plugin>

				<plugin>
					<groupId>org.jacoco</groupId>
					<artifactId>jacoco-maven-plugin</artifactId>
					<version>0.8.5</version>
				</plugin>

				<plugin>
					<groupId>org.sonarsource.scanner.maven</groupId>
					<artifactId>sonar-maven-plugin</artifactId>
					<version>3.7.0.1746</version>
				</plugin>
			</plugins>

		</pluginManagement>

		<plugins>
			<plugin>
				<groupId>com.atlassian.maven.plugins</groupId>
				<artifactId>jira-maven-plugin</artifactId>
				<version>${amps.version}</version>
				<extensions>true</extensions>

				<configuration>
					<pluginArtifacts combine.children="append">
						<pluginArtifact>
							<groupId>com.atlassian.querydsl.plugins</groupId>
							<artifactId>querydsl-${querydsl.version}-provider-plugin</artifactId>
							<version>${querydsl.provider.version}</version>
						</pluginArtifact>
					</pluginArtifacts>
				</configuration>
			</plugin>
		</plugins>
	</build>


	<!-- common dependencies -->

	<dependencyManagement>

		<dependencies>

			<dependency>
				<groupId>io.swagger</groupId>
				<artifactId>swagger-jaxrs</artifactId>
				<version>${swagger.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>io.swagger</groupId>
				<artifactId>swagger-jersey2-jaxrs</artifactId>
				<version>${swagger.version}</version>
				<scope>provided</scope>
			</dependency>

			<!-- osgi -->

			<dependency>
				<groupId>org.apache.felix</groupId>
				<artifactId>org.apache.felix.framework</artifactId>
				<version>3.0.2</version>
				<scope>provided</scope>
			</dependency>

			<!-- spring -->

			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-core</artifactId>
				<version>${spring.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-context</artifactId>
				<version>${spring.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-web</artifactId>
				<version>${spring.version}</version>
				<scope>provided</scope>
			</dependency>

			<!-- add for npm dependencies -->

			<dependency>
				<groupId>com.atlassian.rm</groupId>
				<artifactId>common-client</artifactId>
				<version>${project.version}</version>
				<type>pom</type>
			</dependency>

			<!-- radiant minds -->

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

			<!-- logging -->

			<dependency>
				<groupId>com.atlassian.pocketknife</groupId>
				<artifactId>jira-pocketknife-enablement</artifactId>
				<version>${pocketknife.enablement.version}</version>
			</dependency>

			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>${slf4j.version}</version>
				<scope>provided</scope>
			</dependency>

			<!-- shared -->

			<dependency>
				<groupId>com.atlassian.jira</groupId>
				<artifactId>jira-api</artifactId>
				<version>${jira.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>com.atlassian.sal</groupId>
				<artifactId>sal-api</artifactId>
				<version>2.4.1</version>
				<scope>provided</scope>
			</dependency>

			<!-- Launch / Provisioning Tasks -->

			<dependency>
				<groupId>com.atlassian.pocketknife</groupId>
				<artifactId>jira-pocketknife-customfields</artifactId>
				<version>0.71.2</version>
			</dependency>

			<!-- ATLASSIAN Spring Scanner -->
			<!-- https://bitbucket.org/atlassian/atlassian-spring-scanner -->
			<!-- This is the runtime code for interpreting the build time index files -->
			<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>${ao.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>com.atlassian.activeobjects</groupId>
				<artifactId>activeobjects-spi</artifactId>
				<version>${ao.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>com.google.code.gson</groupId>
				<artifactId>gson</artifactId>
				<version>${gson.version}</version>
			</dependency>
			<dependency>
				<groupId>com.google.guava</groupId>
				<artifactId>guava</artifactId>
				<version>${guava.version}</version>
				<scope>${guava.scope}</scope>
			</dependency>

			<dependency>
				<groupId>org.reflections</groupId>
				<artifactId>reflections</artifactId>
				<version>0.9.11</version>
			</dependency>

			<dependency>
				<groupId>com.google.code.findbugs</groupId>
				<artifactId>jsr305</artifactId>
				<version>3.0.0</version>
				<scope>provided</scope>
			</dependency>

			<!-- manually included to fix transitive Source Clear-detected vulnerability -->
			<dependency>
				<groupId>commons-fileupload</groupId>
				<artifactId>commons-fileupload</artifactId>
				<version>${commons.fileupload.version}</version>
			</dependency>

			<!-- provided -->

			<dependency>
				<groupId>com.querydsl</groupId>
				<artifactId>querydsl-sql</artifactId>
				<version>${querydsl.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>com.querydsl</groupId>
				<artifactId>querydsl-core</artifactId>
				<version>${querydsl.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>javax.mail</groupId>
				<artifactId>mail</artifactId>
				<version>${javax.mail.version}</version>
				<scope>provided</scope>
			</dependency>


			<dependency>
				<groupId>org.apache.lucene</groupId>
				<artifactId>lucene-core</artifactId>
				<version>${lucene7.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>org.apache.lucene</groupId>
				<artifactId>lucene-analyzers-common</artifactId>
				<version>${lucene7.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>org.apache.lucene</groupId>
				<artifactId>lucene-queryparser</artifactId>
				<version>${lucene7.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>com.atlassian</groupId>
				<artifactId>lucene-extras</artifactId>
				<version>7.3.1-atlassian-3</version>
				<scope>provided</scope>
			</dependency>

			<!-- SCOPE: test -->

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

			<!-- after changing version of Mockito - change also version of org.objenesis and net.byte-buddy
			       e.g: https://search.maven.org/remotecontent?filepath=org/mockito/mockito-core/2.21.0/mockito-core-2.21.0.pom
              -->
			<dependency>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-core</artifactId>
				<version>2.21.0</version>
				<scope>test</scope>
			</dependency>

			<!-- https://bulldog.internal.atlassian.com/browse/ARDC-87
                 "org.objenesis - objenesis" is a transitive dependency for "org.mockito - mockito-core"
                 but for some reason without explicitly specifying if here - Mockito library doesn't work
                 in the portfolio-environment-jira wired tests.

                 The version of org.objenesis needs to be matched with the version of org.mockito
                 -->
			<dependency>
				<groupId>org.objenesis</groupId>
				<artifactId>objenesis</artifactId>
				<version>2.6</version>
				<scope>test</scope>
			</dependency>

			<!--
				Similarly to objenesis (see above), force byte-buddy version
			!-->
			<dependency>
				<groupId>net.bytebuddy</groupId>
				<artifactId>byte-buddy</artifactId>
				<version>1.8.15</version>
				<scope>test</scope>
			</dependency>

			<dependency>
				<groupId>org.hsqldb</groupId>
				<artifactId>hsqldb</artifactId>
				<version>${hsqldb.version}</version>
				<scope>test</scope>
			</dependency>

			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-test</artifactId>
				<version>${spring.version}</version>
				<scope>test</scope>
			</dependency>


			<dependency>
				<groupId>com.atlassian.annotations</groupId>
				<artifactId>atlassian-annotations</artifactId>
				<version>${atlassian.annotations.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>com.atlassian.crowd</groupId>
				<artifactId>embedded-crowd-api</artifactId>
				<version>2.8.0-OD-6-JIRA-01</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>com.atlassian.gadgets</groupId>
				<artifactId>atlassian-gadgets-api</artifactId>
				<version>${atlassian.gadgets.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-lang3</artifactId>
				<version>3.6</version>
			</dependency>

		</dependencies>
	</dependencyManagement>

	<profiles>

		<profile>

			<id>windows-settings</id>
			<activation>
				<os>
					<family>Windows</family>
				</os>
			</activation>

			<properties>
				<path.separator>;</path.separator>
				<grunt.executable>grunt.cmd</grunt.executable>
				<karma.executable>karma.cmd</karma.executable>
			</properties>

		</profile>

		<profile>

			<id>dark-feature-manager</id>

			<activation>
				<property>
					<name>dark-feature-manager</name>
				</property>
			</activation>

			<modules>
				<module>devutils/dark-feature-manager</module>
			</modules>

		</profile>

		<profile>

			<id>portfolio-2</id>

			<activation>
				<property>
					<name>!skipPortfolio2</name>
				</property>
			</activation>

			<modules>
				<module>portfolio-2</module>
			</modules>

		</profile>

		<profile>

			<id>public-api-dev</id>

			<activation>
				<property>
					<name>public-api-dev</name>
				</property>
			</activation>

			<modules>
				<module>portfolio-2-public-api-dev</module>
			</modules>

		</profile>

		<profile>

			<id>portfolio-1</id>

			<activation>
				<property>
					<name>!skipPortfolio1</name>
				</property>
			</activation>

			<modules>

				<module>portfolio-1</module>

			</modules>

		</profile>

		<profile>

			<id>client-build</id>
			<activation>
				<property>
					<name>!skipClient</name>
				</property>
			</activation>

			<build>

				<plugins>

					<plugin>

						<groupId>com.github.eirslett</groupId>
						<artifactId>frontend-maven-plugin</artifactId>

						<executions>

							<execution>

								<id>install-node-and-yarn</id>
								<phase>initialize</phase>
								<goals>
									<goal>install-node-and-yarn</goal>
								</goals>

								<inherited>false</inherited>

							</execution>

						</executions>

					</plugin>

				</plugins>

			</build>

		</profile>

		<profile>

			<id>quick</id>

			<activation>
				<property>
					<name>skipTests</name>
				</property>
			</activation>

		</profile>

		<profile>

			<id>reset-node</id>
			<activation>
				<property>
					<name>resetNode</name>
				</property>
			</activation>

			<build>

				<plugins>
					<plugin>

						<artifactId>maven-clean-plugin</artifactId>

						<configuration>
							<filesets>
								<fileset>
									<directory>.</directory>
									<includes>
										<include>node/</include>
										<include>node_modules/</include>
									</includes>
								</fileset>
							</filesets>
						</configuration>

					</plugin>
				</plugins>

			</build>

		</profile>

		<!-- =================== -->
		<!-- common amps configs -->
		<!-- =================== -->

		<profile>

			<id>no-it</id>
			<activation>
				<property>
					<name>!it</name>
				</property>
			</activation>

			<build>
				<plugins>
					<plugin>
						<groupId>com.atlassian.maven.plugins</groupId>
						<artifactId>jira-maven-plugin</artifactId>
						<configuration>
							<skipTests>true</skipTests>
						</configuration>
					</plugin>
				</plugins>
			</build>

		</profile>

		<profile>

			<id>it</id>
			<activation>
				<property>
					<name>it</name>
				</property>
			</activation>

			<build>
				<plugins>

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

					<plugin>
						<groupId>com.atlassian.maven.plugins</groupId>
						<artifactId>jira-maven-plugin</artifactId>
						<configuration>
							<skipTests>false</skipTests>
							<pluginArtifacts combine.children="append">
								<pluginArtifact>
									<groupId>com.atlassian.functest</groupId>
									<artifactId>functest-plugin</artifactId>
									<version>${functest.plugin.version}</version>
								</pluginArtifact>
							</pluginArtifacts>
						</configuration>
					</plugin>

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-failsafe-plugin</artifactId>
						<version>2.19.1</version>
						<configuration>
							<excludes>
								<exclude>it/**/*Test.java</exclude>
							</excludes>
							<includes>
								<include>**/WiredTestInvoker*</include>
							</includes>
						</configuration>
					</plugin>

				</plugins>
			</build>

		</profile>



		<profile>
			<!-- run a minimal set of wired tests while performing failover testing -->
			<id>pre-aurora-failover-wiredtests</id>
			<activation>
				<property>
					<name>pre-aurora-failover-wiredtests</name>
				</property>
			</activation>

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

					<plugin>
						<groupId>com.atlassian.maven.plugins</groupId>
						<artifactId>jira-maven-plugin</artifactId>
						<configuration>
							<skipTests>false</skipTests>
							<pluginArtifacts combine.children="append">

								<pluginArtifact>
									<groupId>com.atlassian.functest</groupId>
									<artifactId>functest-plugin</artifactId>
									<version>${functest.plugin.version}</version>
								</pluginArtifact>

							</pluginArtifacts>
						</configuration>
					</plugin>

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-failsafe-plugin</artifactId>
						<version>2.19.1</version>
						<configuration>
							<excludes>
								<exclude>it/**/*Test.java</exclude>
							</excludes>
							<includes>
								<include>**/PreAuroraFailoverWiredTestInvoker*</include>
							</includes>
						</configuration>
					</plugin>

				</plugins>
			</build>
		</profile>

		<profile>
			<!-- run a minimal set of wired tests while performing failover testing -->
			<id>post-aurora-failover-wiredtests</id>
			<activation>
				<property>
					<name>post-aurora-failover-wiredtests</name>
				</property>
			</activation>

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

					<plugin>
						<groupId>com.atlassian.maven.plugins</groupId>
						<artifactId>jira-maven-plugin</artifactId>
						<configuration>
							<skipTests>false</skipTests>
							<pluginArtifacts combine.children="append">

								<pluginArtifact>
									<groupId>com.atlassian.functest</groupId>
									<artifactId>functest-plugin</artifactId>
									<version>${functest.plugin.version}</version>
								</pluginArtifact>

							</pluginArtifacts>
						</configuration>
					</plugin>

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-failsafe-plugin</artifactId>
						<version>2.19.1</version>
						<configuration>
							<excludes>
								<exclude>it/**/*Test.java</exclude>
							</excludes>
							<includes>
								<include>**/PostAuroraFailoverWiredTestInvoker*</include>
							</includes>
						</configuration>
					</plugin>

				</plugins>
			</build>
		</profile>

		<profile>

			<id>softwareServer</id>
			<activation>
				<property>
					<name>softwareServer</name>
				</property>
			</activation>

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

						<configuration>
							<productDataPath>${amps.resources}</productDataPath>

							<applications>
								<application>
									<applicationKey>jira-software</applicationKey>
									<version>${project.version}</version>
								</application>
								<application>
									<applicationKey>jira-core</applicationKey>
									<version>${jira.version}</version>
								</application>
							</applications>

							<pluginArtifacts combine.children="append">

							</pluginArtifacts>

						</configuration>

					</plugin>

				</plugins>
			</build>

		</profile>

		<profile>

			<id>jira7Data</id>
			<activation>
				<property>
					<name>jira7Data</name>
				</property>
			</activation>

			<build>
				<plugins>

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

						<configuration>
							<productDataPath>${amps.resources}</productDataPath>
						</configuration>
					</plugin>

				</plugins>
			</build>

		</profile>

		<profile>

			<id>agile</id>
			<activation>
				<property>
					<name>agile</name>
				</property>
			</activation>

			<build>
				<plugins>

					<plugin>

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

						<configuration>

							<pluginArtifacts combine.children="append">

								<pluginArtifact>
									<groupId>com.atlassian.jira.plugins</groupId>
									<artifactId>jira-greenhopper-plugin</artifactId>
									<version>${project.version}</version>
								</pluginArtifact>

							</pluginArtifacts>

						</configuration>

					</plugin>

				</plugins>
			</build>

		</profile>

		<profile>
			<id>jacoco</id>
			<activation>
				<property>
					<name>coverage</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.jacoco</groupId>
						<artifactId>jacoco-maven-plugin</artifactId>
						<executions>
							<execution>
								<goals>
									<goal>prepare-agent</goal>
								</goals>
							</execution>
							<execution>
								<id>report</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>report</goal>
								</goals>
							</execution>
							<execution>
								<id>report-aggregate</id>
								<phase>verify</phase>
								<goals>
									<goal>report-aggregate</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

		<profile>
			<id>sonar</id>
			<activation>
				<property>
					<name>sonar</name>
				</property>
			</activation>
			<properties>
				<sonar.host.url>https://sonar-enterprise.internal.atlassian.com</sonar.host.url>
				<sonar.skipDesign>true</sonar.skipDesign>
			</properties>
		</profile>
	</profiles>
</project>
