<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>
		<artifactId>species-manager</artifactId>
		<groupId>org.gcube.application</groupId>
		<version>0.0.1-SNAPSHOT</version>
		<relativePath>..</relativePath>
	</parent>
	<artifactId>species-manager-service</artifactId>
	<name>species manager service</name>
	<dependencies>
		<dependency>
			<groupId>org.gcore</groupId>
			<artifactId>gcf</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>ghn-core-runtime</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<artifactId>species-manager-stubs</artifactId>
			<groupId>org.gcube.application</groupId>
			<version>0.0.1-SNAPSHOT</version>
		</dependency>

		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>org.gcube.execution.gRS2</artifactId>
			<version>1.1.3-SNAPSHOT</version>
		</dependency>

		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>
				org.gcube.information-system.is-client
			</artifactId>
			<version>1.3.0-0-SNAPSHOT</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>bouncycastle</groupId>
			<artifactId>bcmail-jdk16</artifactId>
			<version>140</version>
		</dependency>

		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>
				org.gcube.information-system.collector-stubs
			</artifactId>
			<version>3.0.0-0-SNAPSHOT</version>
			<scope>test</scope>
		</dependency>
		
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.10</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<profiles>
		<profile>
			<id>local-deploy</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.gcube.tools</groupId>
						<artifactId>maven-service-plugin</artifactId>
						<executions>
							<execution>
								<phase>package</phase>
								<goals>
									<goal>local-deploy</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<build>

		<plugins>

			<!-- builds Gar at install time -->
			<plugin>
				<groupId>org.gcube.tools</groupId>
				<artifactId>maven-service-plugin</artifactId>
				<executions>
					<execution>
						<id>make-gar</id>
						<goals>
							<goal>gar-gen</goal>
						</goals>
					</execution>

				</executions>
			</plugin>
		</plugins>
	</build>
</project>