<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>

	<!-- Maven coordinates -->
	<parent>
		<groupId>org.kurento</groupId>
		<artifactId>kurento-parent-pom</artifactId>
		<version>6.16.0</version>
	</parent>
	<groupId>org.kurento.tutorial</groupId>
	<artifactId>kurento-tutorial</artifactId>
	<packaging>pom</packaging>

	<!-- Project-level information -->
	<name>Kurento Java Client Tutorials</name>
	<description>
		Sample client applications that showcase usage of the Kurento Java Client.
	</description>
	<scm>
		<url>https://github.com/Kurento/kurento-tutorial-java</url>
		<connection>scm:git:https://github.com/Kurento/kurento-tutorial-java.git</connection>
		<developerConnection>scm:git:ssh://github.com/Kurento/kurento-tutorial-java.git</developerConnection>
	</scm>

	<!-- Project configuration -->

	<properties>
		<version.kurento-datachannelexample>6.6.0</version.kurento-datachannelexample>
	</properties>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.kurento.module</groupId>
				<artifactId>datachannelexample</artifactId>
				<version>${version.kurento-datachannelexample}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<modules>
		<module>kurento-chroma</module>
		<module>kurento-crowddetector</module>
		<module>kurento-group-call</module>
		<module>kurento-hello-world</module>
		<module>kurento-hello-world-recording</module>
		<module>kurento-magic-mirror</module>
		<module>kurento-metadata-example</module>
		<module>kurento-one2many-call</module>
		<module>kurento-one2one-call</module>
		<module>kurento-one2one-call-advanced</module>
		<module>kurento-one2one-call-recording</module>
		<module>kurento-platedetector</module>
		<module>kurento-player</module>
		<module>kurento-pointerdetector</module>
		<module>kurento-rtp-receiver</module>
		<module>kurento-send-data-channel</module>
		<module>kurento-show-data-channel</module>
	</modules>

	<build>
		<pluginManagement>
			<plugins>
				<!--
				Goal: spring-boot:run
				Allows running the project from Maven.
				Use this command: `mvn clean spring-boot:run`.

				Goal: spring-boot:repackage
				Runs automatically during the Maven's 'package' goal.
				The parameter 'executable=true' generates an executable JAR during
				the 'package' phase. The original package is still generated as
				"<Name>.jar", and the executable one is generated as "<Name>-exec.jar".
				It also supports the service actions start/stop/status, so it
				can be linked into "/etc/init.d/" to be used as system service.

				Ref:
				- https://stackoverflow.com/questions/21503883/spring-boot-application-as-a-service/30497095#30497095
				- https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html#deployment-service
				- https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/html/
				-->
				<plugin>
					<groupId>org.springframework.boot</groupId>
					<artifactId>spring-boot-maven-plugin</artifactId>
					<configuration>
						<classifier>exec</classifier>
						<executable>true</executable>
						<layout>ZIP</layout>
						<mainClass>${start-class}</mainClass>
					</configuration>
					<executions>
						<execution>
							<goals>
								<goal>repackage</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

</project>
