<?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/maven-v4_0_0.xsd">
	<parent>
		<groupId>eu.dnetlib</groupId>
		<artifactId>dnet45-parent</artifactId>
		<version>1.0.0</version>
		<relativePath />
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>eu.dnetlib</groupId>
	<artifactId>dnet-hadoop-commons</artifactId>
	<packaging>jar</packaging>
	<version>2.0.3-SNAPSHOT</version>
    <scm>
        <connection>scm:git:gitea@code-repo.d4science.org:D-Net45/dnet-hadoop-commons.git</connection>
        <developerConnection>scm:git:gitea@code-repo.d4science.org:D-Net45/dnet-hadoop-commons.git</developerConnection>
        <url>https://code-repo.d4science.org/D-Net45/dnet-hadoop-commons</url>
    </scm>
	<repositories>
		<!-- Cloudera Repositories -->
		<repository>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<id>cloudera-central</id>
			<name>cloundera-libs-release</name>
			<url>https://maven.d4science.org/nexus/content/repositories/cloudera-central</url>
		</repository>
		<repository>
			<id>cloudera-snapshots</id>
			<name>cloudera-libs-snapshot</name>
			<url>https://maven.d4science.org/nexus/content/repositories/cloudera-snapshots</url>
		</repository>
		<repository>
			<id>typesafe</id>
			<name>typesafe-releases</name>
			<url>https://maven.d4science.org/nexus/content/repositories/typesafe</url>
		</repository>
	</repositories>

	<dependencies>
		<dependency>
			<groupId>eu.dnetlib</groupId>
			<artifactId>cnr-misc-utils</artifactId>
			<version>[1.0.0,2.0.0)</version>
			<exclusions>
				<exclusion>
					<artifactId>slf4j-api</artifactId>
					<groupId>org.slf4j</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.hadoop</groupId>
			<artifactId>hadoop-common</artifactId>
			<version>${hadoop.common.version}</version>
			<exclusions>
                                <exclusion>
                                        <artifactId>mockito-all</artifactId>
                                        <groupId>org.mockito</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>jetty</artifactId>
                                        <groupId>org.mortbay.jetty</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>jetty-util</artifactId>
                                        <groupId>org.mortbay.jetty</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>core</artifactId>
                                        <groupId>org.eclipse.jdt</groupId>
                                </exclusion>
				<exclusion>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
				</exclusion>
				<exclusion>
					<artifactId>slf4j-api</artifactId>
					<groupId>org.slf4j</groupId>
				</exclusion>
				<exclusion>
					<artifactId>slf4j-log4j12</artifactId>
					<groupId>org.slf4j</groupId>
				</exclusion>
				<exclusion>
					<artifactId>jsp-api</artifactId>
					<groupId>javax.servlet.jsp</groupId>
				</exclusion>
				<exclusion>
					<artifactId>guava</artifactId>
					<groupId>com.google.guava</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.hadoop</groupId>
			<artifactId>hadoop-core</artifactId>
			<version>${hadoop.core.version}</version>
			<exclusions>
                                <exclusion>
                                        <artifactId>core</artifactId>
                                        <groupId>org.eclipse.jdt</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>jetty</artifactId>
                                        <groupId>org.mortbay.jetty</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>jetty-util</artifactId>
                                        <groupId>org.mortbay.jetty</groupId>
                                </exclusion>

				<exclusion>
					<groupId>tomcat</groupId>
					<artifactId>jasper-runtime</artifactId>
				</exclusion>
				<exclusion>
					<groupId>tomcat</groupId>
					<artifactId>jasper-compiler</artifactId>
				</exclusion>
				<exclusion>
					<artifactId>jsp-api</artifactId>
					<groupId>javax.servlet.jsp</groupId>
				</exclusion>
				<exclusion>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-beans</artifactId>
			<version>${spring.version}</version>
		</dependency>


		<!-- DO NOT REMOVE THIS DEPENDENCY!!! MODULES ACCESSING HDFS NEEDS IT EVEN 
			IF mvn dependency:analyze SUGGESTS TO REMOVE IT -->
		<dependency>
			<groupId>org.apache.hadoop</groupId>
			<artifactId>hadoop-hdfs</artifactId>
			<version>${hadoop.hdfs.version}</version>
			<exclusions>
                                <exclusion>
                                        <artifactId>jasper-runtime</artifactId>
                                        <groupId>tomcat</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>jetty</artifactId>
                                        <groupId>org.mortbay.jetty</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>jetty-util</artifactId>
                                        <groupId>org.mortbay.jetty</groupId>
                                </exclusion>
				<exclusion>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
				</exclusion>
				<exclusion>
					<artifactId>jsp-api</artifactId>
					<groupId>javax.servlet.jsp</groupId>
				</exclusion>
				<exclusion>
					<artifactId>guava</artifactId>
					<groupId>com.google.guava</groupId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>
</project>
