<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.gcube.opensearch</groupId>
		<artifactId>opensearchdatasource</artifactId>
		<version>1.6.4-2.17.2</version>
		<relativePath>..</relativePath>
	</parent>

	<artifactId>opensearchdatasource-service</artifactId>
	<name>Open Search Data Source Service</name>

	<scm>
		<connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/branch/search/OpenSearchDataSource/1.6/OpenSearchDataSource</connection>
		<developerConnection>scm:svn:https://svn.d4science.research-infrastructures.eu/gcube/branch/search/OpenSearchDataSource/1.6/OpenSearchDataSource</developerConnection>
		<url>http://svn.d4science.research-infrastructures.eu/gcube/branch/search/OpenSearchDataSource/1.6/OpenSearchDataSource</url>
	</scm>

	<dependencies>

		<!-- reactor dependencies -->
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>opensearchdatasource-stubs</artifactId>
			<version>${project.version}</version>
		</dependency>
		
		<dependency>
			<groupId>org.gcube.opensearch</groupId>
			<artifactId>opensearchlibrary</artifactId>
			<version>1.6.1-2.17.2</version>
		</dependency>
		<!-- <dependency>
			<groupId>org.gcube.search</groupId>
			<artifactId>resultsetlibrary</artifactId>
			<version>3.1.0</version>
		</dependency> -->
		
		<dependency>
			<groupId>org.gcube.search</groupId>
			<artifactId>resultsetclientlibrary</artifactId>
			<version>3.1.1-2.17.2</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.gcube.search</groupId>
			<artifactId>searchsystemservice-stubs</artifactId>
			<version>2.1.0-2.17.2</version>
		</dependency>

		<dependency>
			<groupId>org.gcube.execution</groupId>
			<artifactId>environmentproviderlibrary</artifactId>
			<version>1.4.0-2.17.2</version>
		</dependency>

		<dependency>
			<groupId>org.gcube.execution</groupId>
			<artifactId>gcubeenvironmentproviderlibrary</artifactId>
			<version>1.5.1-2.17.2</version>
		</dependency>
		
		<dependency>
			<groupId>org.gcube.execution</groupId>
			<artifactId>grs2library</artifactId>
			<version>2.1.0-2.17.2</version>
		</dependency>
		
		<dependency>
			<groupId>org.gcube.execution</groupId>
			<artifactId>informationsystemlibrary</artifactId>
			<version>1.4.0-2.17.2</version>
		</dependency>
		
		<dependency>
			<groupId>org.gcube.execution</groupId>
			<artifactId>rraggregator</artifactId>
			<version>1.4.0-2.17.2</version>
		</dependency>

		<dependency>
			<groupId>org.gcube.execution</groupId>
			<artifactId>rrmodel</artifactId>
			<version>1.5.1-2.17.2</version>
		</dependency>
		
		<dependency>
			<groupId>org.gcube.execution</groupId>
			<artifactId>rrgcubebridge</artifactId>
			<version>1.5.0-2.17.2</version>
		</dependency>
		
		<dependency>
			<groupId>org.gcube.execution</groupId>
			<artifactId>rrplugins</artifactId>
			<version>1.0.2-2.17.2</version>
		</dependency>
		
		<dependency>
			<groupId>org.gcube.execution</groupId>
			<artifactId>rrgcubeplugins</artifactId>
			<version>1.0.0-2.17.2</version>
		</dependency>
		
		<dependency>
			<groupId>org.gcube.execution</groupId>
			<artifactId>
				resourceregistry-configuration-search
			</artifactId>
			<version>1.0.1-2.17.2</version>
		</dependency>

		<dependency>
			<groupId>org.gcube.g_cqlparser</groupId>
			<artifactId>g_cqlparser</artifactId>
			<version>1.2.1-2.17.2</version>
		</dependency>
		
		<dependency>
			<groupId>org.gcube.search</groupId>
			<artifactId>operatorlibrary</artifactId>
			<version>1.3.0-2.17.2</version>
		</dependency>
		

		<dependency>
			<groupId>org.gcube.core</groupId>
			<artifactId>gcf</artifactId>
			<version>1.6.2-2.17.2</version>
			<scope>provided</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>


			<!-- generates service archive -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>2.2</version>
				<configuration>
					<descriptors>
						<descriptor>${distroDirectory}/descriptor.xml</descriptor>
					</descriptors>
				</configuration>
				<executions>
					<execution>
						<id>servicearchive</id>
						<phase>install</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>

	</build>
</project>