blob: 396642414dc8728a19aa7c263332748981d3024c [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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.cloudera.cdh</groupId>
<artifactId>cdh-root</artifactId>
<version>4.4.0-SNAPSHOT</version>
</parent>
<artifactId>access</artifactId>
<version>1.1.0-SNAPSHOT</version>
<description>Access component</description>
<name>Access</name>
<packaging>pom</packaging>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<organization>
<name>Cloudera Inc.</name>
<url>http://www.cloudera.com/</url>
</organization>
<issueManagement>
<system>JIRA</system>
<url>https://issues.cloudera.org/browse/ACCESS</url>
</issueManagement>
<scm>
<connection>scm:git:https://github.com/cloudera/access</connection>
<developerConnection>scm:git:https://github.com/cloudera/access</developerConnection>
<url>https://github.com/cloudera/access</url>
</scm>
<profiles>
<profile>
<id>apache-hive</id>
<activation>
<property>
<name>!hadoop-distro</name>
</property>
</activation>
<properties>
<hive.version>0.11.0-auth-SNAPSHOT</hive.version>
<hadoop.version>1.1.2</hadoop.version>
<hadoop.common.artifact>hadoop-core</hadoop.common.artifact>
<hadoop.minicluster.version>1.0.2 </hadoop.minicluster.version>
<hadoop.tarball>"http://archive.cloudera.com/cdh4/cdh/4/hadoop-latest.tar.gz"</hadoop.tarball>
<hive.tarball>"http://archive.cloudera.com/cdh4/cdh/4/hive-latest.tar.gz"</hive.tarball>
<test-dfs.exclude>**/TestSimplePolicyEngineDFS.java</test-dfs.exclude>
<dfs1.exclude>**/AbstractTestWithStaticDFS.java</dfs1.exclude>
<dfs2.exclude>**/TestSandboxOps.java</dfs2.exclude>
<dfs3.exclude>**/TestExportImportPrivileges.java</dfs3.exclude>
</properties>
</profile>
<profile>
<id>cdh-hive</id>
<activation>
<property>
<name>hadoop-distro</name>
<value>cdh</value>
</property>
</activation>
<properties>
<hive.version>0.10.0-cdh4.4.0-SNAPSHOT</hive.version>
<hadoop.version>2.0.0-cdh4.4.0-SNAPSHOT</hadoop.version>
<hadoop.common.artifact>hadoop-common</hadoop.common.artifact>
<hadoop.minicluster.version>${hadoop.version}</hadoop.minicluster.version>
<hadoop.tarball>"http://archive.cloudera.com/cdh4/cdh/4/hadoop-latest.tar.gz"</hadoop.tarball>
<hive.tarball>"http://archive.cloudera.com/cdh4/cdh/4/hive-latest.tar.gz"</hive.tarball>
<test-dfs.exclude>foo.java</test-dfs.exclude>
<dfs1.exclude>**/foo.java</dfs1.exclude>
<dfs2.exclude>**/foo.java</dfs2.exclude>
<dfs3.exclude>**/foo.java</dfs3.exclude>
</properties>
</profile>
</profiles>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compile.source>1.6</maven.compile.source>
<maven.compile.target>1.6</maven.compile.target>
<junit.version>4.9</junit.version>
<fest.reflect.version>1.4.1</fest.reflect.version>
<log4j.version>1.2.16</log4j.version>
<guava.version>11.0.2</guava.version>
<shiro.version>1.2.1</shiro.version>
<slf4j.version>1.6.1</slf4j.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-common</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>${hadoop.common.artifact}</artifactId>
<version>${hadoop.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-minicluster</artifactId>
<version>${hadoop.minicluster.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>${hadoop.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-metastore</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easytesting</groupId>
<artifactId>fest-reflect</artifactId>
<version>${fest.reflect.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-core</artifactId>
<version>${shiro.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.cloudera.cdh</groupId>
<artifactId>access-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-shims</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-serde</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-service</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-hwi</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<!--
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-pdk</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
-->
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-hbase-handler</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-contrib</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-cli</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<!--
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-builtins</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
-->
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-anttasks</artifactId>
<version>${hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.cloudera.cdh</groupId>
<artifactId>access-binding-hive</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.cloudera.cdh</groupId>
<artifactId>access-provider-file</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.cloudera.cdh</groupId>
<artifactId>access-dist</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>access-core</module>
<module>access-binding</module>
<module>access-provider</module>
<module>access-tests</module>
<module>access-dist</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>${maven.compile.source}</source>
<target>${maven.compile.target}</target>
<excludes>
<exclude>${test-dfs.exclude}</exclude>
<exclude>${dfs1.exclude}</exclude>
<exclude>${dfs2.exclude}</exclude>
<exclude>${dfs3.exclude}</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<configuration>
<testExcludes>
<exclude>${test-dfs.exclude}</exclude>
<exclude>${dfs1.exclude}</exclude>
<exclude>${dfs2.exclude}</exclude>
<exclude>${dfs3.exclude}</exclude>
</testExcludes>
</configuration>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.8</version>
<executions>
<execution>
<id>header-check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<excludes>
<exclude>.git/</exclude>
<exclude>.gitignore</exclude>
<exclude>.idea/</exclude>
<exclude>**/*.iml</exclude>
<exclude>*.log</exclude>
<exclude>**/nb-configuration.xml</exclude>
<exclude>**.patch</exclude>
<exclude>README*</exclude>
<exclude>.project</exclude>
<exclude>.settings</exclude>
<exclude>.metadata/</exclude>
<exclude>.classpath</exclude>
<exclude>**/service.properties</exclude>
<exclude>**/kv1.dat</exclude>
<exclude>**/*.lck</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<forkMode>always</forkMode>
<environmentVariables>
<HADOOP_CLIENT_OPTS>-Xmx1000m -Dhive.log.dir=./target/</HADOOP_CLIENT_OPTS>
</environmentVariables>
<forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<argLine>-Xms256m -Xmx1g</argLine>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
<id>apache</id>
<url>https://repository.apache.org/content/repositories/releases/</url>
</repository>
<repository>
<id>apache-snapshot</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
</repository>
<repository>
<id>cloudera</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
</repository>
<repository>
<id>lib-snapshots-local</id>
<name>libs-snapshot-local</name>
<url>http://maven.jenkins.cloudera.com:8081/artifactory/libs-snapshot-local</url>
</repository>
</repositories>
</project>