blob: 0ec820b04367bf84535b811e453909a6f5d299b5 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed 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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.hive</groupId>
<artifactId>hive</artifactId>
<version>0.14.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hive-odbc</artifactId>
<packaging>pom</packaging>
<name>Hive ODBC</name>
<properties>
<hive.path.to.root>..</hive.path.to.root>
<make.cmd>make</make.cmd>
</properties>
<!-- odbc code depends on code generated in these modules -->
<dependencies>
<!-- dependencies are always listed in sorted order by groupId, artifectId -->
<!-- intra-project -->
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-metastore</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-service</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>odbc</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>compile-odbc</id>
<phase>compile</phase>
<configuration>
<target>
<condition property="word.size" value="64" else="32">
<contains string="${os.arch}" substring="64"/>
</condition>
<exec executable="${make.cmd}" failonerror="true">
<arg value="clean"/>
<env key="HIVE_ROOT" value="${basedir}/${hive.path.to.root}/"/>
<env key="BASE_DIR" value="${basedir}"/>
</exec>
<exec executable="${make.cmd}" failonerror="true">
<env key="HIVE_ROOT" value="${basedir}/${hive.path.to.root}/"/>
<env key="BASE_DIR" value="${basedir}"/>
<env key="WORD_SIZE" value="${word.size}"/>
<env key="THRIFT_HOME" value="${thrift.home}"/>
<env key="BOOST_HOME" value="${boost.home}"/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>test-odbc</id>
<phase>test</phase>
<configuration>
<target>
<condition property="word.size" value="64" else="32">
<contains string="${os.arch}" substring="64"/>
</condition>
<exec executable="${make.cmd}" failonerror="true">
<arg value="test"/>
<env key="HIVE_ROOT" value="${basedir}/${hive.path.to.root}/"/>
<env key="BASE_DIR" value="${basedir}"/>
<env key="WORD_SIZE" value="${word.size}"/>
<env key="THRIFT_HOME" value="${thrift.home}"/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-property</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProperty>
<property>boost.home</property>
</requireProperty>
<requireProperty>
<property>thrift.home</property>
</requireProperty>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>