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

	<groupId>org.kurento</groupId>
	<artifactId>kurento-utils-js</artifactId>
	<version>6.7.0</version>
	<packaging>jar</packaging>

	<!-- Project-level information -->
	<name>kurento-utils-js</name>
	<description>
		Kurento Media Server, module kurento-utils-js JavaScript client code.
	</description>
	<url>https://www.kurento.org/docs/${project.version}</url>
	<scm>
		<url>https://github.com/Kurento/kurento-utils-js</url>
		<connection>scm:git:git://github.com/Kurento/kurento-utils-js.git</connection>
		<developerConnection>scm:git:git@github.com:Kurento/kurento-utils-js.git</developerConnection>
	</scm>

	<!-- Organization-level information -->
	<developers>
		<developer>
			<id>kurento.org</id>
			<name>Kurento Community</name>
			<organization>Kurento</organization>
			<organizationUrl>https://www.kurento.org</organizationUrl>
		</developer>
	</developers>
	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/Kurento/bugtracker/issues</url>
	</issueManagement>
	<licenses>
		<license>
			<name>Apache 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<mailingLists>
		<mailingList>
			<name>Kurento List</name>
			<subscribe>http://groups.google.com/group/kurento/subscribe</subscribe>
			<post>http://groups.google.com/group/kurento/post</post>
			<archive>http://groups.google.com/group/kurento/about</archive>
		</mailingList>
	</mailingLists>
	<organization>
		<name>Kurento</name>
		<url>https://www.kurento.org</url>
	</organization>

	<!-- Project configuration -->

	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>shell-maven-plugin</artifactId>
				<version>1.0-beta-1</version>
				<executions>
					<execution>
						<id>stage-sources</id>
						<phase>process-sources</phase>
						<goals>
							<goal>shell</goal>
						</goals>
						<configuration>
							<workDir>${workDir}</workDir>
							<chmod>true</chmod>
							<keepScriptFile>true</keepScriptFile>
							<script>
								  npm install npm -g || exit 1;   cd ${basedir};   npm -d install || exit 1;   node_modules/.bin/grunt || exit 1;   node_modules/.bin/grunt sync:bower || exit 1;   mkdir -p src/main/resources/META-INF/resources/js/ || exit 1;   cp dist/* src/main/resources/META-INF/resources/js/
							</script>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<configuration>
					<descriptors>
						<descriptor>
							${basedir}/assembly.xml
						</descriptor>
					</descriptors>
					<outputDirectory>
						${project.build.directory}
					</outputDirectory>
					<appendAssemblyId>false</appendAssemblyId>
				</configuration>
			</plugin>
		</plugins>
		<extensions>
			<extension>
				<groupId>org.kuali.maven.wagons</groupId>
				<artifactId>maven-s3-wagon</artifactId>
				<version>1.2.1</version>
			</extension>
		</extensions>
	</build>
	<profiles>
		<!-- Kurento CI requires this profiles to exist -->
		<profile>
			<id>default</id>
		</profile>
		<profile>
			<id>deploy</id>
		</profile>
		<profile>
			<id>kurento-release</id>
		</profile>
	</profiles>
</project>
