<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
  © Indra Sistemas, S.A.
  2013 - 2014  SPAIN
  
  All rights reserved
-->
<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">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.indra</groupId>
		<artifactId>sofia2</artifactId>
		<version>2.19.1-SERGAS-WAS</version>
	</parent>
	<groupId>com.indra.sofia2</groupId>
	<artifactId>console</artifactId>
	<version>2.19.1-SERGAS-WAS</version>
	<packaging>war</packaging>
	<name>console</name>

	<!-- Cloudera profiles -->

	<profiles>
		<profile>
			<id>cdh5</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<properties>
				<hiveJdbcVersion>0.12.0-cdh5.0.2</hiveJdbcVersion>
				<hiveMetastoreVersion>0.12.0-cdh5.0.2</hiveMetastoreVersion>
				<hiveVersion>0.12.0-cdh5.0.2</hiveVersion>
				<hiveExecVersion>0.12.0-cdh5.0.2</hiveExecVersion>
				<hiveServiceVersion>0.12.0-cdh5.0.2</hiveServiceVersion>
				<hadoopClientVersion>2.3.0-cdh5.0.2</hadoopClientVersion>
				<hadoopCommonVersion>2.3.0-cdh5.0.2</hadoopCommonVersion>
				<hadoopHdfsVersion>2.3.0-cdh5.0.2</hadoopHdfsVersion>
			</properties>
		</profile>
		<profile>
			<id>cdh51</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<properties>
				<hiveJdbcVersion>0.12.0-cdh5.1.0</hiveJdbcVersion>
				<hiveMetastoreVersion>0.12.0-cdh5.1.0</hiveMetastoreVersion>
				<hiveVersion>0.12.0-cdh5.1.0</hiveVersion>
				<hiveExecVersion>0.12.0-cdh5.1.0</hiveExecVersion>
				<hiveServiceVersion>0.12.0-cdh5.1.0</hiveServiceVersion>
				<hadoopClientVersion>2.3.0-cdh5.1.0</hadoopClientVersion>
				<hadoopCommonVersion>2.3.0-cdh5.1.0</hadoopCommonVersion>
				<hadoopHdfsVersion>2.3.0-cdh5.1.0</hadoopHdfsVersion>
			</properties>
		</profile>
		<profile>
			<id>cdh513</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<hiveJdbcVersion>0.12.0-cdh5.1.3</hiveJdbcVersion>
				<hiveMetastoreVersion>0.12.0-cdh5.1.3</hiveMetastoreVersion>
				<hiveVersion>0.12.0-cdh5.1.3</hiveVersion>
				<hiveExecVersion>0.12.0-cdh5.1.3</hiveExecVersion>
				<hiveServiceVersion>0.12.0-cdh5.1.3</hiveServiceVersion>
				<hadoopClientVersion>2.3.0-cdh5.1.3</hadoopClientVersion>
				<hadoopCommonVersion>2.3.0-cdh5.1.3</hadoopCommonVersion>
				<hadoopHdfsVersion>2.3.0-cdh5.1.3</hadoopHdfsVersion>
			</properties>
		</profile>
		<profile>
			<id>cdh532</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<properties>
				<hiveJdbcVersion>0.13.1-cdh5.1.3</hiveJdbcVersion>
				<hiveMetastoreVersion>0.13.1-cdh5.1.3</hiveMetastoreVersion>
				<hiveVersion>0.13.1-cdh5.1.3</hiveVersion>
				<hiveExecVersion>0.13.1-cdh5.1.3</hiveExecVersion>
				<hiveServiceVersion>0.13.1-cdh5.1.3</hiveServiceVersion>
				<hadoopClientVersion>2.5.0-cdh5.1.3</hadoopClientVersion>
				<hadoopCommonVersion>2.5.0-cdh5.1.3</hadoopCommonVersion>
				<hadoopHdfsVersion>2.5.0-cdh5.1.3</hadoopHdfsVersion>
			</properties>
		</profile>
		<profile>
			<id>despliegue</id>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-assembly-plugin</artifactId>
						<configuration>
							<descriptors>
								<descriptor>generacionProperties.xml</descriptor>
							</descriptors>
							<outputDirectory>../target</outputDirectory>
						</configuration>
						<executions>
							<execution>
								<id>make-assembly</id>
								<phase>package</phase>
								<goals>
									<goal>single</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
				<resources>
					<resource>
						<directory>src/main/resources</directory>
						<filtering>true</filtering>
						<excludes>
							<exclude>META-INF/spring/local*.xml</exclude>
						</excludes>
						<includes>
							<include>META-INF/spring/i18n/**/**</include>
							<include>META-INF/*.xml</include>
							<include>META-INF/spring/*.xml</include>
							<include>META-INF/spring/modulo.properties</include>
						</includes>
					</resource>
				</resources>
			</build>
		</profile>
		<profile>
			<id>was85</id>
			<dependencies>
				<dependency><groupId>com.sun.xml.bind</groupId><artifactId>jaxb-impl</artifactId><scope>provided</scope></dependency>
				<dependency><groupId>com.sun.xml.bind</groupId><artifactId>jaxb-xjc</artifactId><scope>provided</scope></dependency>
				<dependency><groupId>xml-apis</groupId><artifactId>xml-apis</artifactId><scope>provided</scope></dependency>
				<dependency><groupId>javax.validation</groupId><artifactId>validation-api</artifactId><scope>provided</scope></dependency> 
				<dependency><groupId>org.hibernate.javax.persistence</groupId><artifactId>hibernate-jpa-2.0-api</artifactId><scope>provided</scope></dependency>
				<dependency><groupId>org.glassfish</groupId><artifactId>javax.servlet</artifactId><scope>provided</scope></dependency>
				<dependency><groupId>javax.xml.bind</groupId><artifactId>jaxb-api</artifactId><scope>provided</scope></dependency>
				
				<!-- Plugins: -->
				<dependency><groupId>com.indra.sofia2.plugin</groupId><artifactId>plugin-console-security</artifactId><scope>runtime</scope></dependency>
				<dependency><groupId>com.indra.sofia2.binaryrepository.implementation</groupId><artifactId>binaryrepository-file</artifactId>
				    <version>${project.version}</version>
				    <scope>runtime</scope>
				</dependency>
				<dependency><groupId>com.indra.sofia2.plugin</groupId><artifactId>plugin-sofia-user</artifactId><scope>runtime</scope>				
					<exclusions>
						<exclusion><groupId>com.indra.sofia2.sib</groupId><artifactId>core</artifactId></exclusion>
					</exclusions>
				</dependency>
			</dependencies>
			
			<build>
				<plugins>
				  <plugin>
					<artifactId>maven-war-plugin</artifactId>
					<version>2.6</version>
					<configuration>
					  <packagingExcludes>WEB-INF/lib/hive-*.jar, WEB-INF/lib/hadoop-*.jar, WEB-INF/lib/stax-api-*.jar</packagingExcludes>
					</configuration>
				  </plugin>
				</plugins>
			</build>			
		</profile>
	</profiles>

	<dependencies>
		<!--Dependencias del modulo web-->
		<dependency><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId><scope>provided</scope></dependency>
		<dependency><groupId>org.quartz-scheduler</groupId><artifactId>quartz</artifactId></dependency>

		<!-- Cloudera dependencies -->
		<dependency>
			<groupId>org.apache.hadoop</groupId>
			<artifactId>hadoop-client</artifactId>
			<version>${hadoop.version}</version>
			<exclusions>
				<exclusion>
					<artifactId>slf4j-log4j12</artifactId>
					<groupId>org.slf4j</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.hadoop</groupId>
			<artifactId>hadoop-common</artifactId>
			<version>${hadoop.version}</version>
			<exclusions>
				<exclusion>
					<artifactId>slf4j-log4j12</artifactId>
					<groupId>org.slf4j</groupId>
				</exclusion>
				<exclusion>
					<artifactId>servlet-api</artifactId>
					<groupId>javax.servlet</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.hadoop</groupId>
			<artifactId>hadoop-hdfs</artifactId>
			<version>${hadoop.version}</version>
			<exclusions>
				<exclusion>
					<artifactId>slf4j-log4j12</artifactId>
					<groupId>org.slf4j</groupId>
				</exclusion>
				<exclusion>
					<artifactId>servlet-api</artifactId>
					<groupId>javax.servlet</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.hive</groupId>
			<artifactId>hive-exec</artifactId>
			<version>${hive.version}</version>
		</dependency>

		<dependency><groupId>commons-logging</groupId><artifactId>commons-logging</artifactId><version>1.0.4</version></dependency>

		<dependency><groupId>org.apache.hive</groupId><artifactId>hive-jdbc</artifactId><version>${hive.version}</version></dependency>

		<dependency>
			<groupId>org.apache.hive</groupId>
			<artifactId>hive-metastore</artifactId>
			<version>${hive.version}</version>
			<exclusions>
				<exclusion>
					<artifactId>servlet-api</artifactId>
					<groupId>org.mortbay.jetty</groupId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency><groupId>org.apache.hive</groupId><artifactId>hive-service</artifactId><version>${hive.version}</version></dependency>

		<dependency>
			<groupId>com.indra.sofia2.support</groupId>
			<artifactId>util</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>com.indra.sofia2.script</groupId>
			<artifactId>script_client</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>com.indra.sofia2.process</groupId>
			<artifactId>process_client</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>com.indra.sofia2.kpcontainer</groupId>
			<artifactId>kpcontainer_client</artifactId>
			<version>${project.version}</version>
		</dependency>
        <dependency>
          <groupId>com.indra.sofia2.binaryrepository</groupId>
          <artifactId>binaryrepository</artifactId>
          <version>${project.version}</version>
        </dependency>

		<!-- DWR -->
		<dependency><groupId>com.indra.jee.arq.spring.integraciones</groupId><artifactId>dwr</artifactId></dependency>
		
		<!--Dependencias thymeleaf -->
		<dependency><groupId>org.thymeleaf</groupId><artifactId>thymeleaf</artifactId></dependency>
		<dependency><groupId>org.thymeleaf</groupId><artifactId>thymeleaf-spring3</artifactId></dependency>
		<dependency><groupId>org.thymeleaf.extras</groupId><artifactId>thymeleaf-extras-springsecurity3</artifactId></dependency>
		<!--Dependencias thymeleaf dandelion -->
		<dependency><groupId>com.github.dandelion</groupId><artifactId>datatables-thymeleaf</artifactId></dependency>
		<dependency><groupId>com.github.dandelion</groupId><artifactId>datatables-spring3</artifactId></dependency>
		<dependency><groupId>com.github.dandelion</groupId><artifactId>datatables-servlet2</artifactId></dependency>
		<dependency><groupId>org.apache.cxf</groupId><artifactId>cxf-rt-rs-extension-search</artifactId></dependency>

		<!-- Dependencias para tratar ficheros Excel/CSV -->
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi</artifactId>
			<version>3.10-FINAL</version>
		</dependency>
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi-ooxml</artifactId>
			<version>3.10-FINAL</version>
		</dependency>
		<dependency>
			<groupId>net.sf.opencsv</groupId>
			<artifactId>opencsv</artifactId>
			<version>2.3</version>
		</dependency>
		<dependency>
			<groupId>au.com.bytecode</groupId>
			<artifactId>opencsv</artifactId>
			<version>2.4</version>
		</dependency>
		

		<dependency>
			<groupId>org.twitter4j</groupId>
			<artifactId>twitter4j-core</artifactId>
			<version>4.0.2</version>
		</dependency>
		<dependency>
			<groupId>org.twitter4j</groupId>
			<artifactId>twitter4j-stream</artifactId>
			<version>4.0.2</version>
		</dependency>
		<dependency>
			<groupId>org.apache.lucene</groupId>
			<artifactId>lucene-core</artifactId>
			<version>4.8.1</version>
		</dependency>
		<dependency>
			<groupId>com.sun.xml.bind</groupId>
			<artifactId>jaxb-xjc</artifactId>
			<version>2.1.6</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-core</artifactId>
			<version>2.2.2</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
			<version>2.2.2</version>
		</dependency>
		<dependency>
			<groupId>com.github.fge</groupId>
			<artifactId>jackson-coreutils</artifactId>
			<version>1.4</version>
		</dependency>
		<dependency>
			<groupId>org.json</groupId>
			<artifactId>json</artifactId>
			<version>20090211</version>
		</dependency>

		<dependency>
		    <groupId>org.jongo</groupId>
		    <artifactId>jongo</artifactId>
		    <version>1.1</version>
		</dependency>

		<dependency>
			<groupId>org.facebook4j</groupId>
			<artifactId>facebook4j-core</artifactId>
			<version>2.2.2</version>
		</dependency>
		<dependency>
			 <groupId>com.sachinhandiekar</groupId>
			 <artifactId>jInstagram</artifactId>
			 <version>1.0.10</version>
		</dependency>
		<dependency>
			<groupId>com.sachinhandiekar</groupId>
			<artifactId>jInstagram</artifactId>
			<version>1.0.8</version>
		</dependency>
		<!--Dependencias jasperrports -->
        <dependency>
            <groupId>net.sf.jasperreports</groupId>
            <artifactId>jasperreports</artifactId>
            <version>5.0.0</version>
        </dependency>
        <dependency>
            <groupId>com.lowagie</groupId>
            <artifactId>itext</artifactId>
            <version>2.1.7</version>
        </dependency>
		<dependency>
		  <groupId>com.jaspersoft.connectors.mongodb</groupId>
		  <artifactId>js-mongodb-datasource</artifactId>
		  <version>1.0.0a</version>
		</dependency>
		
        <!-- Necesarias en tiempo de Despliegue -->
		<dependency><groupId>org.springframework.security</groupId><artifactId>spring-security-web</artifactId><scope>runtime</scope></dependency>
		<dependency><groupId>org.springframework</groupId><artifactId>spring-orm</artifactId><scope>runtime</scope></dependency>
	</dependencies>
</project>
