<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.squashtest.tm.plugin</groupId>
		<artifactId>api.rest</artifactId>
		<version>15.0.0-springboot4.IT2</version>
	</parent>

	<name>squash-rest-api-distribution</name>
	<artifactId>api.rest.distribution</artifactId>
	<packaging>pom</packaging>

	<description>
		the packaging of the plugin. You should NEVER build this project alone,
		instead it must be run from the root project with the profile -Pdistro.
		This will ensure that all tests are green and the documentation is generated.
	</description>


	<dependencies>
		<dependency>
			<groupId>org.squashtest.tm.plugin</groupId>
			<artifactId>api.rest.core</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>org.squashtest.tm.plugin</groupId>
			<artifactId>api.rest.services</artifactId>
			<version>${project.version}</version>
		</dependency>
	</dependencies>


	<profiles>
		<profile>
			<id>distro</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>

			<build>
				<plugins>
					<plugin>
						<artifactId>maven-assembly-plugin</artifactId>
						<version>${maven-assembly-plugin.version}</version>
						<executions>
							<execution>
								<phase>verify</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<descriptors>
										<descriptor>assembly/assembly.xml</descriptor>
									</descriptors>
									<appendAssemblyId>false</appendAssemblyId>
									<finalName>${project.parent.artifactId}-${project.version}</finalName>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>


	<repositories>
		<repository>
			<id>squash-release-repo</id>
			<url>http://repo.squashtest.org/maven2/releases</url>
		</repository>
		<repository>
			<id>squash-snapshot-repo</id>
			<url>http://repo.squashtest.org/maven2/snapshots</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<releases>
				<enabled>false</enabled>
			</releases>
		</repository>
	</repositories>
</project>
