Preparing Spark release v2.2.1-rc1
[spark.git] / sql / hive / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ~ Licensed to the Apache Software Foundation (ASF) under one or more
4 ~ contributor license agreements. See the NOTICE file distributed with
5 ~ this work for additional information regarding copyright ownership.
6 ~ The ASF licenses this file to You under the Apache License, Version 2.0
7 ~ (the "License"); you may not use this file except in compliance with
8 ~ the License. You may obtain a copy of the License at
9 ~
10 ~ http://www.apache.org/licenses/LICENSE-2.0
11 ~
12 ~ Unless required by applicable law or agreed to in writing, software
13 ~ distributed under the License is distributed on an "AS IS" BASIS,
14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ~ See the License for the specific language governing permissions and
16 ~ limitations under the License.
17 -->
18
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21 <modelVersion>4.0.0</modelVersion>
22 <parent>
23 <groupId>org.apache.spark</groupId>
24 <artifactId>spark-parent_2.11</artifactId>
25 <version>2.2.1</version>
26 <relativePath>../../pom.xml</relativePath>
27 </parent>
28
29 <artifactId>spark-hive_2.11</artifactId>
30 <packaging>jar</packaging>
31 <name>Spark Project Hive</name>
32 <url>http://spark.apache.org/</url>
33 <properties>
34 <sbt.project.name>hive</sbt.project.name>
35 </properties>
36
37 <dependencies>
38 <!-- Added for Hive Parquet SerDe -->
39 <dependency>
40 <groupId>com.twitter</groupId>
41 <artifactId>parquet-hadoop-bundle</artifactId>
42 </dependency>
43 <dependency>
44 <groupId>org.apache.spark</groupId>
45 <artifactId>spark-core_${scala.binary.version}</artifactId>
46 <version>${project.version}</version>
47 </dependency>
48 <dependency>
49 <groupId>org.apache.spark</groupId>
50 <artifactId>spark-core_${scala.binary.version}</artifactId>
51 <version>${project.version}</version>
52 <type>test-jar</type>
53 <scope>test</scope>
54 </dependency>
55 <dependency>
56 <groupId>org.apache.spark</groupId>
57 <artifactId>spark-sql_${scala.binary.version}</artifactId>
58 <version>${project.version}</version>
59 </dependency>
60 <dependency>
61 <groupId>org.apache.spark</groupId>
62 <artifactId>spark-tags_${scala.binary.version}</artifactId>
63 <type>test-jar</type>
64 <scope>test</scope>
65 </dependency>
66 <!--
67 <dependency>
68 <groupId>com.google.guava</groupId>
69 <artifactId>guava</artifactId>
70 </dependency>
71 <dependency>
72 <groupId>com.google.protobuf</groupId>
73 <artifactId>protobuf-java</artifactId>
74 <version>${protobuf.version}</version>
75 </dependency>
76 -->
77 <!--
78 <dependency>
79 <groupId>${hive.group}</groupId>
80 <artifactId>hive-common</artifactId>
81 </dependency>
82 -->
83 <dependency>
84 <groupId>${hive.group}</groupId>
85 <artifactId>hive-exec</artifactId>
86 <!--
87 <classifier>core</classifier>
88 -->
89 </dependency>
90 <dependency>
91 <groupId>${hive.group}</groupId>
92 <artifactId>hive-metastore</artifactId>
93 </dependency>
94 <!--
95 <dependency>
96 <groupId>${hive.group}</groupId>
97 <artifactId>hive-serde</artifactId>
98 </dependency>
99 <dependency>
100 <groupId>${hive.group}</groupId>
101 <artifactId>hive-shims</artifactId>
102 </dependency>
103 -->
104 <!-- hive-serde already depends on avro, but this brings in customized config of avro deps from parent -->
105 <dependency>
106 <groupId>org.apache.avro</groupId>
107 <artifactId>avro</artifactId>
108 </dependency>
109 <!-- use the build matching the hadoop api of avro-mapred (i.e. no classifier for hadoop 1 API,
110 hadoop2 classifier for hadoop 2 API. avro-mapred is a dependency of org.spark-project.hive:hive-serde -->
111 <dependency>
112 <groupId>org.apache.avro</groupId>
113 <artifactId>avro-mapred</artifactId>
114 <classifier>${avro.mapred.classifier}</classifier>
115 </dependency>
116 <dependency>
117 <groupId>commons-httpclient</groupId>
118 <artifactId>commons-httpclient</artifactId>
119 </dependency>
120 <dependency>
121 <groupId>org.apache.calcite</groupId>
122 <artifactId>calcite-avatica</artifactId>
123 </dependency>
124 <dependency>
125 <groupId>org.apache.calcite</groupId>
126 <artifactId>calcite-core</artifactId>
127 </dependency>
128 <dependency>
129 <groupId>org.apache.httpcomponents</groupId>
130 <artifactId>httpclient</artifactId>
131 </dependency>
132 <dependency>
133 <groupId>org.codehaus.jackson</groupId>
134 <artifactId>jackson-mapper-asl</artifactId>
135 </dependency>
136 <!-- transitive dependencies of hive-exec-core doesn't declare -->
137 <dependency>
138 <groupId>commons-codec</groupId>
139 <artifactId>commons-codec</artifactId>
140 </dependency>
141 <dependency>
142 <groupId>joda-time</groupId>
143 <artifactId>joda-time</artifactId>
144 </dependency>
145 <dependency>
146 <groupId>org.jodd</groupId>
147 <artifactId>jodd-core</artifactId>
148 </dependency>
149 <dependency>
150 <groupId>com.google.code.findbugs</groupId>
151 <artifactId>jsr305</artifactId>
152 </dependency>
153 <dependency>
154 <groupId>org.datanucleus</groupId>
155 <artifactId>datanucleus-core</artifactId>
156 </dependency>
157 <dependency>
158 <groupId>org.apache.thrift</groupId>
159 <artifactId>libthrift</artifactId>
160 </dependency>
161 <dependency>
162 <groupId>org.apache.thrift</groupId>
163 <artifactId>libfb303</artifactId>
164 </dependency>
165 <dependency>
166 <groupId>org.apache.derby</groupId>
167 <artifactId>derby</artifactId>
168 </dependency>
169 <dependency>
170 <groupId>org.scalacheck</groupId>
171 <artifactId>scalacheck_${scala.binary.version}</artifactId>
172 <scope>test</scope>
173 </dependency>
174 <dependency>
175 <groupId>org.apache.spark</groupId>
176 <artifactId>spark-sql_${scala.binary.version}</artifactId>
177 <type>test-jar</type>
178 <version>${project.version}</version>
179 <scope>test</scope>
180 </dependency>
181 <dependency>
182 <groupId>org.apache.spark</groupId>
183 <artifactId>spark-catalyst_${scala.binary.version}</artifactId>
184 <type>test-jar</type>
185 <version>${project.version}</version>
186 <scope>test</scope>
187 </dependency>
188 </dependencies>
189 <profiles>
190 <profile>
191 <id>hive</id>
192 <build>
193 <plugins>
194 <plugin>
195 <groupId>org.codehaus.mojo</groupId>
196 <artifactId>build-helper-maven-plugin</artifactId>
197 <version>3.0.0</version>
198 <executions>
199 <execution>
200 <id>add-scala-test-sources</id>
201 <phase>generate-test-sources</phase>
202 <goals>
203 <goal>add-test-source</goal>
204 </goals>
205 <configuration>
206 <sources>
207 <source>compatibility/src/test/scala</source>
208 </sources>
209 </configuration>
210 </execution>
211 </executions>
212 </plugin>
213 </plugins>
214 </build>
215 </profile>
216 </profiles>
217
218 <build>
219 <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
220 <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
221 <plugins>
222 <plugin>
223 <groupId>org.scalatest</groupId>
224 <artifactId>scalatest-maven-plugin</artifactId>
225 <configuration>
226 <!-- Specially disable assertions since some Hive tests fail them -->
227 <argLine>-da -Xmx3g -XX:ReservedCodeCacheSize=${CodeCacheSize}</argLine>
228 </configuration>
229 </plugin>
230 <plugin>
231 <groupId>org.apache.maven.plugins</groupId>
232 <artifactId>maven-enforcer-plugin</artifactId>
233 <executions>
234 <execution>
235 <id>enforce-versions</id>
236 <goals>
237 <goal>enforce</goal>
238 </goals>
239 <configuration>
240 <rules>
241 <bannedDependencies>
242 <excludes combine.children="append">
243 <exclude>*:hive-cli</exclude>
244 </excludes>
245 </bannedDependencies>
246 </rules>
247 </configuration>
248 </execution>
249 </executions>
250 </plugin>
251 </plugins>
252 </build>
253 </project>