<?xml version='1.0' encoding='UTF-8'?>
<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">
	<parent>
		<groupId>org.gcube.tools</groupId>
		<artifactId>maven-parent</artifactId>
		<version>1.3.0</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.gcube.distribution</groupId>
	<artifactId>smartgears-distribution</artifactId>
	<packaging>pom</packaging>
	<version>4.0.2-SNAPSHOT</version>
	<name>A distribution for the SmartGears Framework</name>
	<description>Complete distribution package for SmartGears framework deployment</description>
	<properties>
		<distroDirectory>distro</distroDirectory>
		<wiki>https://wiki.gcube-system.org/gcube/SmartGears</wiki>
	</properties>
	<scm>
		<connection>
			scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</connection>
		<developerConnection>
			scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</developerConnection>
		<url>https://code-repo.d4science.org/gCubeSystem/${project.artifactId}</url>
	</scm>

	<developers>
		<developer>
			<id>luca.frosini</id>
			<name>Luca Frosini</name>
			<email>luca.frosini@isti.cnr.it</email>
			<url>https://orcid.org/0000-0003-3183-2291</url>
			<organization>D4Science Infrastructure, Pisa, Italy</organization>
			<organizationUrl>https://www.d4science.org/</organizationUrl>
			<roles>
			<role>researcher</role>
			<role>architect</role>
			<role>maintainer</role>
			<role>developer</role>
			</roles>
			<timezone>Europe/Rome</timezone>
		</developer>
		<developer>
			<id>alfredo.oliviero</id>
			<name>Alfredo Oliviero</name>
			<email>alfredo.oliviero@isti.cnr.it</email>
			<url>https://orcid.org/0009-0007-3191-1025</url>
			<organization>D4Science Infrastructure, Pisa, Italy</organization>
			<organizationUrl>https://www.d4science.org/</organizationUrl>
			<roles>
			<role>researcher</role>
			<role>developer</role>
			</roles>
			<timezone>Europe/Rome</timezone>
		</developer>
		<developer>
			<id>lucio.lelii</id>
			<name>Lucio Lelii</name>
			<email>lucio.lelii@isti.cnr.it</email>
			<url>https://orcid.org/0000-0001-7581-5325</url>
			<organization>D4Science Infrastructure, Pisa, Italy</organization>
			<organizationUrl>https://www.d4science.org/</organizationUrl>
			<roles>
			<role>researcher</role>
			<role>developer</role>
			</roles>
			<timezone>Europe/Rome</timezone>
		</developer>
</developers>
	<dependencyManagement>
		<dependencies>
			<!-- This component allows to generate gcube-smartgears-bom but it must not use it
			otherwise the provided libraries are not included -->
			<dependency>
				<groupId>org.gcube.distribution</groupId>
				<artifactId>gcube-bom</artifactId>
				<version>4.0.1</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>jakarta.servlet</groupId>
			<artifactId>jakarta.servlet-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<!-- Smartgears Core -->
		<dependency>
			<groupId>org.gcube.core</groupId>
			<artifactId>common-smartgears</artifactId>
			<version>[4.0.0-SNAPSHOT,5.0.0-SNAPSHOT)</version>
		</dependency>


		<!-- Accounting Service Connector -->
		<dependency>
			<groupId>org.gcube.data.publishing</groupId>
			<artifactId>document-store-lib-accounting-service</artifactId>
		</dependency>

		<!-- IS Publisher Connectors -->
		<dependency>
			<groupId>org.gcube.information-system</groupId>
			<artifactId>resource-registry-publisher-connector</artifactId>
			<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
		</dependency>

		<!-- Smartgears Probe Webapp -->
		<dependency>
			<groupId>org.gcube.core</groupId>
			<artifactId>common-smartgears</artifactId>
			<version>[4.0.0-SNAPSHOT,5.0.0-SNAPSHOT)</version>
			<classifier>probe</classifier>
			<type>war</type>
		</dependency>

		<!-- WHN Manager Removed it has to be revamped to properly work with 
		 	SmartGears 4 and the rest of infrastructure. See #30383
		<dependency>
			<groupId>org.gcube.resourcemanagement</groupId>
			<artifactId>whn-manager</artifactId>
			<version>[3.0.0-SNAPSHOT,4.0.0-SNAPSHOT)</version>
			<type>war</type>
		</dependency>
		-->

	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>3.1.1</version>
				<executions>
					<execution>
						<id>copy-dependencies</id>
						<phase>compile</phase>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<configuration>
							<outputDirectory>${basedir}/target/libs</outputDirectory>
							<overWriteReleases>false</overWriteReleases>
							<overWriteSnapshots>false</overWriteSnapshots>
							<overWriteIfNewer>true</overWriteIfNewer>
							<excludeTypes>war</excludeTypes>
							<excludeScope>provided</excludeScope>
							<stripVersion>false</stripVersion>
						</configuration>
					</execution>
					<execution>
						<id>copy-probe</id>
						<phase>compile</phase>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<configuration>
							<outputDirectory>${basedir}/target/war</outputDirectory>
							<overWriteReleases>false</overWriteReleases>
							<overWriteSnapshots>false</overWriteSnapshots>
							<overWriteIfNewer>true</overWriteIfNewer>
							<includeTypes>war</includeTypes>
							<stripVersion>true</stripVersion>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
						<id>standalone</id>
						<configuration>
							<appendAssemblyId>false</appendAssemblyId>
							<descriptors>
								<descriptor>${distroDirectory}/standalone.xml</descriptor>
							</descriptors>
						</configuration>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>