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

	<artifactId>gcf</artifactId>

	<parent>
		<groupId>org.gcube.core</groupId>
		<artifactId>gcf-parent</artifactId>
		<version>1.6.2-2.17.1</version>
		<relativePath>..</relativePath>
	</parent>

	<name>The gCube Application Framework</name>
	<url>https://gcore.wiki.gcube-system.org/gCube/</url>
	<description>The application framework for gCube components</description>

	<developers>
		<developer>
			<name>Manuele Simi</name>
		</developer>
		<developer>
			<name>Fabio Simeoni</name>
		</developer>
		<developer>
			<name>Andrea Manzi</name>
		</developer>
		<developer>
			<name>Ciro Formisano</name>
		</developer>
	</developers>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>com.google.guava</groupId>
				<artifactId>guava</artifactId>
				<version>12.0</version>
			</dependency>
		</dependencies>

	</dependencyManagement>

	<dependencies>

		<dependency>
			<groupId>cglib</groupId>
			<artifactId>cglib</artifactId>
			<version>2.2.2</version>
		</dependency>

		<dependency>
			<groupId>net.sf.kxml</groupId>
			<artifactId>kxml2</artifactId>
			<version>2.3.0</version>
		</dependency>

		<dependency>
			<groupId>org.objenesis</groupId>
			<artifactId>objenesis</artifactId>
			<version>1.2</version>
		</dependency>

		<dependency>
			<groupId>org.gcube.core</groupId>
			<artifactId>common-utils-encryption</artifactId>
			<version>1.0.2-2.17.1</version>
			<exclusions>
				<exclusion>
					<artifactId>xmlsec</artifactId>
					<groupId>org.apache.santuario</groupId>
				</exclusion>
				<exclusion>
					<artifactId>xalan</artifactId>
					<groupId>xalan</groupId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.gcube.core</groupId>
			<artifactId>common-scope</artifactId>
			<version>1.2.0-2.17.1</version>
		</dependency>

	</dependencies>


	<build />

	<profiles>

		<profile>

			<id>full</id>

			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>

			<!-- test dependencies -->
			<dependencies>
				
				<!-- my-container distribution for integration testing -->
				<dependency>
					<groupId>org.gcube.tools</groupId>
					<artifactId>my-container</artifactId>
					<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
					<type>tar.gz</type>
					<classifier>distro</classifier>
					<scope>test</scope>
				</dependency>

			</dependencies>

			<build>
				<plugins>
					<!-- installs my-container distribution for integration testing -->
					<plugin>
						<artifactId>maven-dependency-plugin</artifactId>
						<executions>
							<execution>
								<id>install-my-container</id>
								<phase>generate-test-resources</phase><!-- runs before tests -->
								<configuration>
									<includeArtifactIds>my-container</includeArtifactIds>
									<includeTypes>tar.gz</includeTypes>
									<overWriteIfNewer>false</overWriteIfNewer>
									<outputDirectory>${project.basedir}/..</outputDirectory>
									<markersDirectory>${project.basedir}/..</markersDirectory>
								</configuration>
								<goals>
									<goal>unpack-dependencies</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>

		</profile>
		<profile>
			<id>no-tests</id>
		</profile>

	</profiles>
</project>