<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	
	<groupId>com.inteligr8.alfresco</groupId>
	<artifactId>cxf-jaxrs-platform-module</artifactId>
	<version>1.1.0</version>
	<packaging>pom</packaging>
	
	<name>CXF-based JAX-RS enablement for ACS Platform Module</name>
	<description>An Alfresco Content Service module providing the missing components for JAX-RS-based clients.</description>
	<url>https://bitbucket.org/inteligr8/cxf-jaxrs-platform-module</url>

	<licenses>
		<license>
			<name>GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007</name>
			<url>https://www.gnu.org/licenses/lgpl-3.0.txt</url>
		</license>
	</licenses>

	<scm>
		<connection>scm:git:https://bitbucket.org/inteligr8/cxf-jaxrs-platform-module.git</connection>
		<developerConnection>scm:git:git@bitbucket.org:inteligr8/cxf-jaxrs-platform-module.git</developerConnection>
		<url>https://bitbucket.org/inteligr8/cxf-jaxrs-platform-module</url>
	</scm>
	<organization>
		<name>Inteligr8</name>
		<url>https://www.inteligr8.com</url>
	</organization>
	<developers>
		<developer>
			<id>brian.long</id>
			<name>Brian Long</name>
			<email>brian@inteligr8.com</email>
			<url>https://twitter.com/brianmlong</url>
		</developer>
	</developers>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-invoker-plugin</artifactId>
				<version>3.3.0</version>
				<configuration>
					<goals><goal>package</goal></goals>
					<pom>pom.xml</pom>
					<streamLogs>true</streamLogs>
				</configuration>
				<executions>
					<execution>
						<id>acs62</id>
						<phase>package</phase>
						<goals><goal>run</goal></goals>
						<configuration>
							<profiles><profile>acs62</profile></profiles>
						</configuration>
					</execution>
					<execution>
						<id>acs70</id>
						<phase>package</phase>
						<goals><goal>run</goal></goals>
						<configuration>
							<profiles><profile>acs70</profile></profiles>
						</configuration>
					</execution>
					<execution>
						<id>acs71</id>
						<phase>package</phase>
						<goals><goal>run</goal></goals>
						<configuration>
							<profiles><profile>acs71</profile></profiles>
						</configuration>
					</execution>
					<execution>
						<id>acs72</id>
						<phase>package</phase>
						<goals><goal>run</goal></goals>
						<configuration>
							<profiles><profile>acs72</profile></profiles>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>3.3.0</version>
				<executions>
					<execution>
						<id>attach-artifacts</id>
						<phase>package</phase>
						<goals><goal>attach-artifact</goal></goals>
						<configuration>
							<artifacts>
								<artifact>
									<file>${project.build.directory}/${project.artifactId}-${project.version}-acs62.amp</file>
									<classifier>acs62</classifier>
									<type>amp</type>
								</artifact>
								<artifact>
									<file>${project.build.directory}/${project.artifactId}-${project.version}-acs70.amp</file>
									<classifier>acs70</classifier>
									<type>amp</type>
								</artifact>
								<artifact>
									<file>${project.build.directory}/${project.artifactId}-${project.version}-acs71.amp</file>
									<classifier>acs71</classifier>
									<type>amp</type>
								</artifact>
								<artifact>
									<file>${project.build.directory}/${project.artifactId}-${project.version}-acs72.amp</file>
									<classifier>acs72</classifier>
									<type>amp</type>
								</artifact>
							</artifacts>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>ossrh-release</id>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-gpg-plugin</artifactId>
						<executions>
							<execution>
								<id>sign</id>
								<phase>verify</phase>
								<goals><goal>sign</goal></goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.sonatype.plugins</groupId>
						<artifactId>nexus-staging-maven-plugin</artifactId>
						<version>1.6.13</version>
						<extensions>true</extensions>
						<configuration>
							<serverId>ossrh</serverId>
							<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
							<autoReleaseAfterClose>true</autoReleaseAfterClose>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>
