Show
hide
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.bazaarvoice.emodb</groupId>
<artifactId>emodb-mapreduce</artifactId>
<version>5.5.4-migration-1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>emodb-sor-hive</artifactId>
<packaging>jar</packaging>
<name>EmoDB System of Record Hive classes</name>
<dependencies>
<!-- Bazaarvoice dependencies -->
<dependency>
<groupId>com.bazaarvoice.emodb</groupId>
<artifactId>emodb-sor-hadoop</artifactId>
<version>${project.version}</version>
</dependency>
<!-- 3rd party dependencies -->
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
<scope>provided</scope>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
<!-- The following relocations are for the benefit of Presto. -->
<relocations>
<relocation>
<pattern>com.google</pattern>
<shadedPattern>shaded.com.google</shadedPattern>
</relocation>
<relocation>
<pattern>org.eclipse.jetty</pattern>
<shadedPattern>shaded.org.eclipse.jetty</shadedPattern>
</relocation>
<relocation>
<pattern>org.joda</pattern>
<shadedPattern>shaded.org.joda</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>create-functions</id>
<properties>
<out.hql>stdout</out.hql>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.bazaarvoice.emodb.hive.schema.CreateFunctions</mainClass>
<arguments>
<argument>--out</argument>
<argument>${out.hql}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>refresh-emo-schema</id>
<properties>
<out.hql>stdout</out.hql>
<universe>ci</universe>
<schema>emo_ci</schema>
<location>emodb://ci.us</location>
<compatibility>hive</compatibility>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.bazaarvoice.emodb.hive.schema.RefreshSchema</mainClass>
<arguments>
<argument>--out</argument>
<argument>${out.hql}</argument>
<argument>--emoSchema</argument>
<argument>${schema}</argument>
<argument>--location</argument>
<argument>${location}</argument>
<argument>--compatibility</argument>
<argument>${compatibility}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>refresh-stash-schema</id>
<properties>
<out.hql>stdout</out.hql>
<universe>ci</universe>
<schema>stash_ci</schema>
<location>emodb://ci.us</location>
<compatibility>hive</compatibility>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.bazaarvoice.emodb.hive.schema.RefreshSchema</mainClass>
<arguments>
<argument>--out</argument>
<argument>${out.hql}</argument>
<argument>--stashSchema</argument>
<argument>${schema}</argument>
<argument>--location</argument>
<argument>${location}</argument>
<argument>--compatibility</argument>
<argument>${compatibility}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
|