<?xml version="1.0"?>
<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.alfresco.aos-module</groupId>
		<artifactId>alfresco-aos-module-aggregator</artifactId>
		<version>1.5.0-DEV-LOG4J2</version>
	</parent>
	<artifactId>aos-test</artifactId>
	<name>alfresco-aos-test</name>
	<description>TAS - Alfresco Office Services (AOS)</description>

	<organization>
        <name>Alfresco Software</name>
        <url>http://www.alfresco.com/</url>
    </organization>
    <developers>
        <developer>
            <name>Paul Brodner</name>
            <roles>
                <role>Test Automation Architect</role>
            </roles>
        </developer>
    </developers>
	<properties>
		<!-- please run mvn clean install -DSkipTests in order to have shared-resources 
			available -->
		<suiteXmlFile>src/main/resources/shared-resources/aos-suites.xml</suiteXmlFile>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<tas.utility.version>3.0.47</tas.utility.version>
		<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
		<maven-release.version>2.5.3</maven-release.version>
		<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
		<apache.poi.version>3.15</apache.poi.version>
		<maven-remote-resources.version>1.6.0</maven-remote-resources.version>
		<java.version>11</java.version>
	</properties>

<!-- 	<scm>
		<connection>scm:git:https://github.com/Alfresco/alfresco-tas-aos-test.git</connection>
		<developerConnection>scm:git:https://github.com/Alfresco/alfresco-tas-aos-test.git</developerConnection>
		<url>https://github.com/Alfresco/alfresco-tas-aos-test</url>
		<tag>HEAD</tag>
	</scm> -->

	<issueManagement>
		<system>JIRA</system>
		<url>https://issues.alfresco.com/jira/browse/</url>
	</issueManagement>

<!-- 	<distributionManagement>-->
<!--		<repository>-->
<!--			<id>alfresco-public</id>-->
<!--			<url>https://artifacts.alfresco.com/nexus/content/repositories/releases</url>-->
<!--		</repository>-->
<!--		<snapshotRepository>-->
<!--			<id>alfresco-public</id>-->
<!--			<url>https://artifacts.alfresco.com/nexus/content/repositories/snapshots</url>-->
<!--		</snapshotRepository>-->
<!--	</distributionManagement>-->

	<!-- Alfresco Repository -->
	<repositories>
		<repository>
			<id>alfresco-public</id>
			<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
		</repository>
	</repositories>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<artifactId>maven-remote-resources-plugin</artifactId>
					<version>${maven-remote-resources.version}</version>
				</plugin>
			</plugins>
		</pluginManagement>

		<plugins>
			<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${maven-compiler-plugin.version}</version>
                <configuration>
                    <release>${java.version}</release>                    
                    <showWarnings>true</showWarnings>
                    <showDeprecation>true</showDeprecation>                    
                </configuration>
            </plugin>
			<plugin>
				<artifactId>maven-release-plugin</artifactId>
				<version>${maven-release.version}</version>
				<configuration>					
					<tagNameFormat>v@{project.version}</tagNameFormat>
				</configuration>
			</plugin>
			<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.0.0-M2</version>
                <configuration>
                    <suiteXmlFiles>
                        <suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
                    </suiteXmlFiles>
                    <excludedGroups>
                        ${test.exclude}
                    </excludedGroups>
                    <groups>
                        ${test.include}
                    </groups>
                    <argLine>
                        --illegal-access=warn
                    </argLine>
                </configuration>
            </plugin>

			<!-- attach tests -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>${maven-jar-plugin.version}</version>
				<executions>
					<execution>
						<goals>
							<goal>test-jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-remote-resources-plugin</artifactId>
				<executions>
					<execution>
						<id>process</id>
						<goals>
							<goal>process</goal>
						</goals>
						<configuration>
							<resourceBundles>
								<resourceBundle>org.alfresco.tas:utility:${tas.utility.version}</resourceBundle>
							</resourceBundles>
						</configuration>
					</execution>
					<execution>
						<id>bundle</id>
						<goals>
							<goal>bundle</goal>
						</goals>
						<configuration>
							<includes>
								<include>shared-resources/**/*</include>
							</includes>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.12</version>
				<executions>
					<execution>
						<id>add-test-source</id>
						<goals>
							<goal>add-test-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>src/unit-test/java</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>license-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>third-party-licenses</id>
						<phase>none</phase>
					</execution>
				</executions>
			</plugin>
		</plugins>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<includes>
					<include>shared-resources/**/*</include>
				</includes>
			</resource>
		</resources>
	</build>
	<dependencies>
		<!-- alfresco tester settings -->
		<dependency>
			<groupId>org.alfresco.tas</groupId>
			<artifactId>utility</artifactId>
			<version>${tas.utility.version}</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi</artifactId>
			<version>${apache.poi.version}</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi-ooxml</artifactId>
			<version>${apache.poi.version}</version>
		</dependency>
	</dependencies>

	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-project-info-reports-plugin</artifactId>
				<version>3.1.1</version>
				<reportSets>
					<reportSet>
						<reports>
							<report>dependencies</report>
							<report>issue-tracking</report>
							<report>scm</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>

		</plugins>
	</reporting>
</project>
