HIVE-19800 Create separate submodules for pre and post upgrade and add rename file...
[hive.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 -->
15 <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">
16 <modelVersion>4.0.0</modelVersion>
17 <parent>
18 <groupId>org.apache</groupId>
19 <artifactId>apache</artifactId>
20 <version>18</version>
21 </parent>
22 <groupId>org.apache.hive</groupId>
23 <artifactId>hive</artifactId>
24 <version>4.0.0-SNAPSHOT</version>
25 <packaging>pom</packaging>
26
27 <name>Hive</name>
28 <url>http://hive.apache.org</url>
29 <prerequisites>
30 <maven>2.2.1</maven>
31 </prerequisites>
32
33 <modules>
34 <module>storage-api</module>
35 <module>accumulo-handler</module>
36 <module>vector-code-gen</module>
37 <module>beeline</module>
38 <module>classification</module>
39 <module>cli</module>
40 <module>common</module>
41 <module>contrib</module>
42 <module>druid-handler</module>
43 <module>hbase-handler</module>
44 <module>jdbc-handler</module>
45 <module>hcatalog</module>
46 <module>hplsql</module>
47 <module>jdbc</module>
48 <module>metastore</module>
49 <module>ql</module>
50 <module>serde</module>
51 <module>service-rpc</module>
52 <module>service</module>
53 <module>streaming</module>
54 <module>llap-common</module>
55 <module>llap-client</module>
56 <module>llap-ext-client</module>
57 <module>llap-tez</module>
58 <module>llap-server</module>
59 <module>shims</module>
60 <module>spark-client</module>
61 <module>kryo-registrator</module>
62 <module>testutils</module>
63 <module>packaging</module>
64 <module>standalone-metastore</module>
65 <module>upgrade-acid</module>
66 </modules>
67
68 <properties>
69 <hive.version.shortname>4.0.0</hive.version.shortname>
70
71 <!-- Build Properties -->
72 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
73 <maven.compiler.source>1.8</maven.compiler.source>
74 <maven.compiler.target>1.8</maven.compiler.target>
75 <maven.compiler.useIncrementalCompilation>false</maven.compiler.useIncrementalCompilation>
76 <maven.repo.local>${settings.localRepository}</maven.repo.local>
77 <hive.path.to.root>.</hive.path.to.root>
78 <hive.jdbc.driver.classifier>standalone</hive.jdbc.driver.classifier>
79 <checkstyle.conf.dir>${basedir}/${hive.path.to.root}/checkstyle</checkstyle.conf.dir>
80
81 <!-- Test Properties -->
82 <test.extra.path></test.extra.path>
83 <test.hive.hadoop.classpath>${maven.test.classpath}</test.hive.hadoop.classpath>
84 <test.log4j.scheme>file://</test.log4j.scheme>
85 <test.tmp.dir>${project.build.directory}/tmp</test.tmp.dir>
86 <test.conf.dir>${project.build.directory}/testconf</test.conf.dir>
87 <test.tmp.dir.uri>file://${test.tmp.dir}</test.tmp.dir.uri>
88 <!-- Determines the log level of the console logger, hive.log is independent of this-->
89 <test.console.log.level>INFO</test.console.log.level>
90 <test.warehouse.dir>${project.build.directory}/warehouse</test.warehouse.dir>
91 <test.warehouse.scheme>pfile://</test.warehouse.scheme>
92
93 <!-- To add additional exclude patterns set this property -->
94 <test.excludes.additional></test.excludes.additional>
95 <skip.spark.files></skip.spark.files>
96
97 <!-- Plugin and Plugin Dependency Versions -->
98 <ant.contrib.version>1.0b3</ant.contrib.version>
99 <datanucleus.maven.plugin.version>3.3.0-release</datanucleus.maven.plugin.version>
100 <maven.test.jvm.args>-Xmx2048m</maven.test.jvm.args>
101 <maven.antrun.plugin.version>1.7</maven.antrun.plugin.version>
102 <maven.assembly.plugin.version>2.3</maven.assembly.plugin.version>
103 <maven.checkstyle.plugin.version>2.17</maven.checkstyle.plugin.version>
104 <maven.compiler.plugin.version>3.6.1</maven.compiler.plugin.version>
105 <maven.enforcer.plugin.version>1.3.1</maven.enforcer.plugin.version>
106 <maven.install.plugin.version>2.4</maven.install.plugin.version>
107 <maven.jar.plugin.version>2.4</maven.jar.plugin.version>
108 <maven.javadoc.plugin.version>2.4</maven.javadoc.plugin.version>
109 <maven.shade.plugin.version>3.1.0</maven.shade.plugin.version>
110 <maven.surefire.plugin.version>2.21.0</maven.surefire.plugin.version>
111 <maven.war.plugin.version>2.4</maven.war.plugin.version>
112 <maven.dependency.plugin.version>2.8</maven.dependency.plugin.version>
113 <maven.eclipse.plugin.version>2.9</maven.eclipse.plugin.version>
114 <maven.build-helper.plugin.version>1.8</maven.build-helper.plugin.version>
115
116 <!-- Library Dependency Versions -->
117 <accumulo.version>1.7.3</accumulo.version>
118 <activemq.version>5.5.0</activemq.version>
119 <ant.version>1.9.1</ant.version>
120 <antlr.version>3.5.2</antlr.version>
121 <apache-directory-server.version>1.5.6</apache-directory-server.version>
122 <apache-directory-clientapi.version>0.1</apache-directory-clientapi.version>
123 <!-- Include arrow for LlapOutputFormatService -->
124 <arrow.version>0.8.0</arrow.version>
125 <avatica.version>1.12.0</avatica.version>
126 <avro.version>1.8.2</avro.version>
127 <bonecp.version>0.8.0.RELEASE</bonecp.version>
128 <calcite.version>1.17.0</calcite.version>
129 <datanucleus-api-jdo.version>4.2.4</datanucleus-api-jdo.version>
130 <datanucleus-core.version>4.1.17</datanucleus-core.version>
131 <datanucleus-rdbms.version>4.1.19</datanucleus-rdbms.version>
132 <datanucleus-jdo.version>3.2.0-m3</datanucleus-jdo.version>
133 <commons-cli.version>1.2</commons-cli.version>
134 <commons-codec.version>1.7</commons-codec.version>
135 <commons-collections.version>3.2.2</commons-collections.version>
136 <commons-compress.version>1.9</commons-compress.version>
137 <commons-exec.version>1.1</commons-exec.version>
138 <commons-io.version>2.4</commons-io.version>
139 <commons-lang.version>2.6</commons-lang.version>
140 <commons-lang3.version>3.2</commons-lang3.version>
141 <commons-pool.version>1.5.4</commons-pool.version>
142 <commons-dbcp.version>1.4</commons-dbcp.version>
143 <derby.version>10.14.1.0</derby.version>
144 <dropwizard.version>3.1.0</dropwizard.version>
145 <dropwizard-metrics-hadoop-metrics2-reporter.version>0.1.2</dropwizard-metrics-hadoop-metrics2-reporter.version>
146 <druid.version>0.12.1</druid.version>
147 <flatbuffers.version>1.2.0-3f79e055</flatbuffers.version>
148 <guava.version>19.0</guava.version>
149 <groovy.version>2.4.11</groovy.version>
150 <h2database.version>1.3.166</h2database.version>
151 <hadoop.version>3.1.0</hadoop.version>
152 <hadoop.bin.path>${basedir}/${hive.path.to.root}/testutils/hadoop</hadoop.bin.path>
153 <hamcrest.version>1.3</hamcrest.version>
154 <hbase.version>2.0.0-alpha4</hbase.version>
155 <hppc.version>0.7.2</hppc.version>
156 <!-- required for logging test to avoid including hbase which pulls disruptor transitively -->
157 <disruptor.version>3.3.7</disruptor.version>
158 <hikaricp.version>2.6.1</hikaricp.version>
159 <!-- httpcomponents are not always in version sync -->
160 <httpcomponents.client.version>4.5.2</httpcomponents.client.version>
161 <httpcomponents.core.version>4.4.4</httpcomponents.core.version>
162 <ivy.version>2.4.0</ivy.version>
163 <jackson.version>2.9.5</jackson.version>
164 <jamon.plugin.version>2.3.4</jamon.plugin.version>
165 <jamon-runtime.version>2.3.1</jamon-runtime.version>
166 <javaewah.version>0.3.2</javaewah.version>
167 <javax-servlet.version>3.1.0</javax-servlet.version>
168 <javax-servlet-jsp.version>2.3.1</javax-servlet-jsp.version>
169 <javolution.version>5.5.1</javolution.version>
170 <jdo-api.version>3.0.1</jdo-api.version>
171 <jettison.version>1.1</jettison.version>
172 <jetty.version>9.3.20.v20170531</jetty.version>
173 <jersey.version>1.19</jersey.version>
174 <!-- Glassfish jersey is included for Spark client test only -->
175 <glassfish.jersey.version>2.22.2</glassfish.jersey.version>
176 <jline.version>2.12</jline.version>
177 <jms.version>1.1</jms.version>
178 <joda.version>2.9.9</joda.version>
179 <jodd.version>3.5.2</jodd.version>
180 <json.version>1.8</json.version>
181 <junit.version>4.11</junit.version>
182 <kryo.version>3.0.3</kryo.version>
183 <libfb303.version>0.9.3</libfb303.version>
184 <libthrift.version>0.9.3</libthrift.version>
185 <log4j2.version>2.10.0</log4j2.version>
186 <opencsv.version>2.3</opencsv.version>
187 <orc.version>1.5.2</orc.version>
188 <mockito-all.version>1.10.19</mockito-all.version>
189 <mina.version>2.0.0-M5</mina.version>
190 <netty.version>4.1.17.Final</netty.version>
191 <netty3.version>3.10.5.Final</netty3.version>
192 <parquet.version>1.10.0</parquet.version>
193 <pig.version>0.16.0</pig.version>
194 <plexus.version>1.5.6</plexus.version>
195 <protobuf.version>2.5.0</protobuf.version>
196 <stax.version>1.0.1</stax.version>
197 <slf4j.version>1.7.10</slf4j.version>
198 <ST4.version>4.0.4</ST4.version>
199 <storage-api.version>2.7.0-SNAPSHOT</storage-api.version>
200 <tez.version>0.9.1</tez.version>
201 <super-csv.version>2.2.0</super-csv.version>
202 <spark.version>2.3.0</spark.version>
203 <scala.binary.version>2.11</scala.binary.version>
204 <scala.version>2.11.8</scala.version>
205 <tempus-fugit.version>1.1</tempus-fugit.version>
206 <snappy.version>1.1.4</snappy.version>
207 <wadl-resourcedoc-doclet.version>1.4</wadl-resourcedoc-doclet.version>
208 <velocity.version>1.5</velocity.version>
209 <xerces.version>2.9.1</xerces.version>
210 <zookeeper.version>3.4.6</zookeeper.version>
211 <jpam.version>1.1</jpam.version>
212 <felix.version>2.4.0</felix.version>
213 <curator.version>2.12.0</curator.version>
214 <jsr305.version>3.0.0</jsr305.version>
215 <tephra.version>0.6.0</tephra.version>
216 <gson.version>2.2.4</gson.version>
217 </properties>
218
219 <repositories>
220 <!-- This needs to be removed before checking in-->
221 <repository>
222 <id>datanucleus</id>
223 <name>datanucleus maven repository</name>
224 <url>http://www.datanucleus.org/downloads/maven2</url>
225 <layout>default</layout>
226 <releases>
227 <enabled>true</enabled>
228 <checksumPolicy>warn</checksumPolicy>
229 </releases>
230 <snapshots>
231 <enabled>false</enabled>
232 </snapshots>
233 </repository>
234 <repository>
235 <id>glassfish-repository</id>
236 <url>http://maven.glassfish.org/content/groups/glassfish</url>
237 <releases>
238 <enabled>false</enabled>
239 </releases>
240 <snapshots>
241 <enabled>false</enabled>
242 </snapshots>
243 </repository>
244 <repository>
245 <id>glassfish-repo-archive</id>
246 <url>http://maven.glassfish.org/content/groups/glassfish</url>
247 <releases>
248 <enabled>false</enabled>
249 </releases>
250 <snapshots>
251 <enabled>false</enabled>
252 </snapshots>
253 </repository>
254 <repository>
255 <id>sonatype-snapshot</id>
256 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
257 <releases>
258 <enabled>false</enabled>
259 </releases>
260 <snapshots>
261 <enabled>false</enabled>
262 </snapshots>
263 </repository>
264 </repositories>
265
266 <dependencyManagement>
267 <dependencies>
268 <!-- dependencies are always listed in sorted order by groupId, artifectId -->
269 <dependency>
270 <groupId>com.esotericsoftware</groupId>
271 <artifactId>kryo-shaded</artifactId>
272 <version>${kryo.version}</version>
273 </dependency>
274 <dependency>
275 <groupId>com.google.guava</groupId>
276 <artifactId>guava</artifactId>
277 <version>${guava.version}</version>
278 </dependency>
279 <dependency>
280 <groupId>com.google.protobuf</groupId>
281 <artifactId>protobuf-java</artifactId>
282 <version>${protobuf.version}</version>
283 </dependency>
284 <dependency>
285 <groupId>com.google.code.tempus-fugit</groupId>
286 <artifactId>tempus-fugit</artifactId>
287 <version>${tempus-fugit.version}</version>
288 <exclusions>
289 <exclusion>
290 <groupId>org.hamcrest</groupId>
291 <artifactId>hamcrest-core</artifactId>
292 </exclusion>
293 </exclusions>
294 </dependency>
295 <dependency>
296 <groupId>com.googlecode.javaewah</groupId>
297 <artifactId>JavaEWAH</artifactId>
298 <version>${javaewah.version}</version>
299 </dependency>
300 <dependency>
301 <groupId>com.jolbox</groupId>
302 <artifactId>bonecp</artifactId>
303 <version>${bonecp.version}</version>
304 </dependency>
305 <dependency>
306 <groupId>com.zaxxer</groupId>
307 <artifactId>HikariCP</artifactId>
308 <version>${hikaricp.version}</version>
309 </dependency>
310 <dependency>
311 <groupId>org.apache.parquet</groupId>
312 <artifactId>parquet</artifactId>
313 <version>${parquet.version}</version>
314 </dependency>
315 <dependency>
316 <groupId>org.apache.parquet</groupId>
317 <artifactId>parquet-column</artifactId>
318 <version>${parquet.version}</version>
319 <classifier>tests</classifier>
320 </dependency>
321 <dependency>
322 <groupId>com.sun.jersey</groupId>
323 <artifactId>jersey-core</artifactId>
324 <version>${jersey.version}</version>
325 </dependency>
326 <dependency>
327 <groupId>com.sun.jersey</groupId>
328 <artifactId>jersey-json</artifactId>
329 <version>${jersey.version}</version>
330 </dependency>
331 <dependency>
332 <groupId>com.sun.jersey</groupId>
333 <artifactId>jersey-server</artifactId>
334 <version>${jersey.version}</version>
335 </dependency>
336 <dependency>
337 <groupId>com.sun.jersey.contribs</groupId>
338 <artifactId>wadl-resourcedoc-doclet</artifactId>
339 <version>${wadl-resourcedoc-doclet.version}</version>
340 </dependency>
341 <dependency>
342 <groupId>com.sun.jersey</groupId>
343 <artifactId>jersey-servlet</artifactId>
344 <version>${jersey.version}</version>
345 </dependency>
346 <dependency>
347 <groupId>commons-cli</groupId>
348 <artifactId>commons-cli</artifactId>
349 <version>${commons-cli.version}</version>
350 </dependency>
351 <dependency>
352 <groupId>commons-codec</groupId>
353 <artifactId>commons-codec</artifactId>
354 <version>${commons-codec.version}</version>
355 </dependency>
356 <dependency>
357 <groupId>commons-collections</groupId>
358 <artifactId>commons-collections</artifactId>
359 <version>${commons-collections.version}</version>
360 </dependency>
361 <dependency>
362 <groupId>commons-io</groupId>
363 <artifactId>commons-io</artifactId>
364 <version>${commons-io.version}</version>
365 </dependency>
366 <dependency>
367 <groupId>commons-lang</groupId>
368 <artifactId>commons-lang</artifactId>
369 <version>${commons-lang.version}</version>
370 </dependency>
371 <dependency>
372 <groupId>io.netty</groupId>
373 <artifactId>netty-all</artifactId>
374 <version>${netty.version}</version>
375 </dependency>
376 <dependency>
377 <groupId>javax.jdo</groupId>
378 <artifactId>jdo-api</artifactId>
379 <version>${jdo-api.version}</version>
380 </dependency>
381 <dependency>
382 <groupId>javax.jms</groupId>
383 <artifactId>jms</artifactId>
384 <version>${jms.version}</version>
385 </dependency>
386 <dependency>
387 <groupId>javolution</groupId>
388 <artifactId>javolution</artifactId>
389 <version>${javolution.version}</version>
390 </dependency>
391 <dependency>
392 <groupId>jline</groupId>
393 <artifactId>jline</artifactId>
394 <version>${jline.version}</version>
395 </dependency>
396 <dependency>
397 <groupId>junit</groupId>
398 <artifactId>junit</artifactId>
399 <version>${junit.version}</version>
400 </dependency>
401 <dependency>
402 <groupId>org.apache.logging.log4j</groupId>
403 <artifactId>log4j-1.2-api</artifactId>
404 <version>${log4j2.version}</version>
405 </dependency>
406 <dependency>
407 <groupId>org.apache.logging.log4j</groupId>
408 <artifactId>log4j-web</artifactId>
409 <version>${log4j2.version}</version>
410 </dependency>
411 <dependency>
412 <groupId>org.apache.logging.log4j</groupId>
413 <artifactId>log4j-slf4j-impl</artifactId>
414 <version>${log4j2.version}</version>
415 </dependency>
416 <dependency>
417 <groupId>org.antlr</groupId>
418 <artifactId>antlr-runtime</artifactId>
419 <version>${antlr.version}</version>
420 </dependency>
421 <dependency>
422 <groupId>org.antlr</groupId>
423 <artifactId>ST4</artifactId>
424 <version>${ST4.version}</version>
425 </dependency>
426 <dependency>
427 <groupId>org.apache.commons</groupId>
428 <artifactId>commons-compress</artifactId>
429 <version>${commons-compress.version}</version>
430 </dependency>
431 <dependency>
432 <groupId>org.apache.commons</groupId>
433 <artifactId>commons-exec</artifactId>
434 <version>${commons-exec.version}</version>
435 </dependency>
436 <dependency>
437 <groupId>org.apache.accumulo</groupId>
438 <artifactId>accumulo-core</artifactId>
439 <version>${accumulo.version}</version>
440 </dependency>
441 <dependency>
442 <groupId>org.apache.accumulo</groupId>
443 <artifactId>accumulo-fate</artifactId>
444 <version>${accumulo.version}</version>
445 </dependency>
446 <dependency>
447 <groupId>org.apache.accumulo</groupId>
448 <artifactId>accumulo-minicluster</artifactId>
449 <version>${accumulo.version}</version>
450 </dependency>
451 <dependency>
452 <groupId>org.apache.accumulo</groupId>
453 <artifactId>accumulo-start</artifactId>
454 <version>${accumulo.version}</version>
455 </dependency>
456 <dependency>
457 <groupId>org.apache.accumulo</groupId>
458 <artifactId>accumulo-trace</artifactId>
459 <version>${accumulo.version}</version>
460 </dependency>
461 <dependency>
462 <groupId>org.apache.activemq</groupId>
463 <artifactId>activemq-core</artifactId>
464 <version>${activemq.version}</version>
465 <exclusions>
466 <exclusion>
467 <groupId>org.springframework</groupId>
468 <artifactId>spring-context</artifactId>
469 </exclusion>
470 </exclusions>
471 </dependency>
472 <dependency>
473 <groupId>org.apache.activemq</groupId>
474 <artifactId>kahadb</artifactId>
475 <version>${activemq.version}</version>
476 </dependency>
477 <dependency>
478 <groupId>org.apache.avro</groupId>
479 <artifactId>avro</artifactId>
480 <version>${avro.version}</version>
481 </dependency>
482 <dependency>
483 <groupId>org.apache.avro</groupId>
484 <artifactId>avro-mapred</artifactId>
485 <classifier>hadoop2</classifier>
486 <version>${avro.version}</version>
487 <exclusions>
488 <exclusion>
489 <groupId>org.mortbay.jetty</groupId>
490 <artifactId>jetty-util</artifactId>
491 </exclusion>
492 <exclusion>
493 <groupId>org.mortbay.jetty</groupId>
494 <artifactId>jetty</artifactId>
495 </exclusion>
496 </exclusions>
497 </dependency>
498 <dependency>
499 <groupId>org.apache.derby</groupId>
500 <artifactId>derby</artifactId>
501 <version>${derby.version}</version>
502 </dependency>
503 <dependency>
504 <groupId>org.apache.httpcomponents</groupId>
505 <artifactId>httpclient</artifactId>
506 <version>${httpcomponents.client.version}</version>
507 </dependency>
508 <dependency>
509 <groupId>org.apache.httpcomponents</groupId>
510 <artifactId>httpcore</artifactId>
511 <version>${httpcomponents.core.version}</version>
512 </dependency>
513 <dependency>
514 <groupId>org.apache.velocity</groupId>
515 <artifactId>velocity</artifactId>
516 <version>${velocity.version}</version>
517 </dependency>
518 <dependency>
519 <groupId>stax</groupId>
520 <artifactId>stax-api</artifactId>
521 <version>${stax.version}</version>
522 </dependency>
523 <dependency>
524 <groupId>org.apache.orc</groupId>
525 <artifactId>orc-core</artifactId>
526 <version>${orc.version}</version>
527 <exclusions>
528 <exclusion>
529 <groupId>org.apache.hadoop</groupId>
530 <artifactId>hadoop-common</artifactId>
531 </exclusion>
532 <exclusion>
533 <groupId>org.apache.hive</groupId>
534 <artifactId>hive-storage-api</artifactId>
535 </exclusion>
536 </exclusions>
537 </dependency>
538 <dependency>
539 <groupId>org.apache.hive</groupId>
540 <artifactId>hive-storage-api</artifactId>
541 <version>${storage-api.version}</version>
542 </dependency>
543 <dependency>
544 <groupId>org.apache.pig</groupId>
545 <artifactId>pig</artifactId>
546 <version>${pig.version}</version>
547 <exclusions>
548 <exclusion>
549 <groupId>org.mortbay.jetty</groupId>
550 <artifactId>jetty-util</artifactId>
551 </exclusion>
552 <exclusion>
553 <groupId>org.mortbay.jetty</groupId>
554 <artifactId>jetty</artifactId>
555 </exclusion>
556 </exclusions>
557 </dependency>
558 <dependency>
559 <groupId>org.apache.thrift</groupId>
560 <artifactId>libfb303</artifactId>
561 <version>${libfb303.version}</version>
562 </dependency>
563 <dependency>
564 <groupId>org.apache.thrift</groupId>
565 <artifactId>libthrift</artifactId>
566 <version>${libthrift.version}</version>
567 </dependency>
568 <dependency>
569 <groupId>org.apache.zookeeper</groupId>
570 <artifactId>zookeeper</artifactId>
571 <version>${zookeeper.version}</version>
572 <exclusions>
573 <exclusion>
574 <groupId>org.slf4j</groupId>
575 <artifactId>slf4j-log4j12</artifactId>
576 </exclusion>
577 <exclusion>
578 <groupId>commons-logging</groupId>
579 <artifactId>commons-logging</artifactId>
580 </exclusion>
581 <exclusion>
582 <groupId>org.apache.httpcomponents</groupId>
583 <artifactId>httpcore</artifactId>
584 </exclusion>
585 <exclusion>
586 <groupId>org.apache.httpcomponents</groupId>
587 <artifactId>httpclient</artifactId>
588 </exclusion>
589 <exclusion>
590 <groupId>org.jboss.netty</groupId>
591 <artifactId>netty</artifactId>
592 </exclusion>
593 </exclusions>
594 </dependency>
595 <dependency>
596 <groupId>org.apache.curator</groupId>
597 <artifactId>curator-client</artifactId>
598 <version>${curator.version}</version>
599 </dependency>
600 <dependency>
601 <groupId>org.apache.curator</groupId>
602 <artifactId>curator-framework</artifactId>
603 <version>${curator.version}</version>
604 </dependency>
605 <dependency>
606 <groupId>org.apache.curator</groupId>
607 <artifactId>curator-recipes</artifactId>
608 <version>${curator.version}</version>
609 </dependency>
610 <dependency>
611 <groupId>org.codehaus.groovy</groupId>
612 <artifactId>groovy-all</artifactId>
613 <version>${groovy.version}</version>
614 </dependency>
615 <dependency>
616 <groupId>com.fasterxml.jackson.core</groupId>
617 <artifactId>jackson-annotations</artifactId>
618 <version>${jackson.version}</version>
619 </dependency>
620 <dependency>
621 <groupId>com.fasterxml.jackson.core</groupId>
622 <artifactId>jackson-core</artifactId>
623 <version>${jackson.version}</version>
624 </dependency>
625 <dependency>
626 <groupId>com.fasterxml.jackson.core</groupId>
627 <artifactId>jackson-databind</artifactId>
628 <version>${jackson.version}</version>
629 </dependency>
630 <dependency>
631 <groupId>com.fasterxml.jackson.module</groupId>
632 <artifactId>jackson-module-scala_${scala.binary.version}</artifactId>
633 <version>${jackson.version}</version>
634 </dependency>
635 <dependency>
636 <groupId>com.fasterxml.jackson.dataformat</groupId>
637 <artifactId>jackson-dataformat-smile</artifactId>
638 <version>${jackson.version}</version>
639 </dependency>
640 <dependency>
641 <groupId>com.fasterxml.jackson.jaxrs</groupId>
642 <artifactId>jackson-jaxrs-json-provider</artifactId>
643 <version>${jackson.version}</version>
644 </dependency>
645 <dependency>
646 <groupId>com.fasterxml.jackson.module</groupId>
647 <artifactId>jackson-module-jaxb-annotations</artifactId>
648 <version>${jackson.version}</version>
649 </dependency>
650 <dependency>
651 <groupId>org.codehaus.jettison</groupId>
652 <artifactId>jettison</artifactId>
653 <version>${jettison.version}</version>
654 <exclusions>
655 <exclusion>
656 <groupId>stax</groupId>
657 <artifactId>stax-api</artifactId>
658 </exclusion>
659 </exclusions>
660 </dependency>
661 <dependency>
662 <groupId>org.eclipse.jetty</groupId>
663 <artifactId>jetty-rewrite</artifactId>
664 <version>${jetty.version}</version>
665 </dependency>
666 <dependency>
667 <groupId>org.eclipse.jetty</groupId>
668 <artifactId>jetty-server</artifactId>
669 <version>${jetty.version}</version>
670 </dependency>
671 <dependency>
672 <groupId>org.eclipse.jetty</groupId>
673 <artifactId>jetty-servlet</artifactId>
674 <version>${jetty.version}</version>
675 </dependency>
676 <dependency>
677 <groupId>org.eclipse.jetty</groupId>
678 <artifactId>jetty-webapp</artifactId>
679 <version>${jetty.version}</version>
680 </dependency>
681 <dependency>
682 <groupId>javax.servlet</groupId>
683 <artifactId>javax.servlet-api</artifactId>
684 <version>${javax-servlet.version}</version>
685 </dependency>
686 <dependency>
687 <groupId>org.datanucleus</groupId>
688 <artifactId>datanucleus-api-jdo</artifactId>
689 <version>${datanucleus-api-jdo.version}</version>
690 </dependency>
691 <dependency>
692 <groupId>org.datanucleus</groupId>
693 <artifactId>datanucleus-core</artifactId>
694 <version>${datanucleus-core.version}</version>
695 </dependency>
696 <dependency>
697 <groupId>org.datanucleus</groupId>
698 <artifactId>datanucleus-rdbms</artifactId>
699 <version>${datanucleus-rdbms.version}</version>
700 </dependency>
701 <dependency>
702 <groupId>org.datanucleus</groupId>
703 <artifactId>javax.jdo</artifactId>
704 <version>${datanucleus-jdo.version}</version>
705 </dependency>
706 <dependency>
707 <groupId>com.tdunning</groupId>
708 <artifactId>json</artifactId>
709 <version>${json.version}</version>
710 </dependency>
711 <dependency>
712 <groupId>org.mockito</groupId>
713 <artifactId>mockito-all</artifactId>
714 <version>${mockito-all.version}</version>
715 </dependency>
716 <dependency>
717 <groupId>org.slf4j</groupId>
718 <artifactId>slf4j-api</artifactId>
719 <version>${slf4j.version}</version>
720 </dependency>
721 <dependency>
722 <groupId>xerces</groupId>
723 <artifactId>xercesImpl</artifactId>
724 <version>${xerces.version}</version>
725 </dependency>
726 <dependency>
727 <groupId>org.apache.hadoop</groupId>
728 <artifactId>hadoop-client</artifactId>
729 <version>${hadoop.version}</version>
730 <exclusions>
731 <exclusion>
732 <groupId>commons-logging</groupId>
733 <artifactId>commons-logging</artifactId>
734 </exclusion>
735 </exclusions>
736 </dependency>
737 <dependency>
738 <groupId>org.apache.hadoop</groupId>
739 <artifactId>hadoop-auth</artifactId>
740 <version>${hadoop.version}</version>
741 <exclusions>
742 <exclusion>
743 <groupId>commons-logging</groupId>
744 <artifactId>commons-logging</artifactId>
745 </exclusion>
746 </exclusions>
747 </dependency>
748 <dependency>
749 <groupId>org.apache.hadoop</groupId>
750 <artifactId>hadoop-common</artifactId>
751 <version>${hadoop.version}</version>
752 <exclusions>
753 <exclusion>
754 <groupId>org.mortbay.jetty</groupId>
755 <artifactId>jetty-sslengine</artifactId>
756 </exclusion>
757 <exclusion>
758 <groupId>org.slf4j</groupId>
759 <artifactId>slf4j-log4j12</artifactId>
760 </exclusion>
761 <exclusion>
762 <groupId>commons-logging</groupId>
763 <artifactId>commons-logging</artifactId>
764 </exclusion>
765 <exclusion>
766 <groupId>org.apache.httpcomponents</groupId>
767 <artifactId>httpcore</artifactId>
768 </exclusion>
769 <exclusion>
770 <groupId>org.apache.httpcomponents</groupId>
771 <artifactId>httpclient</artifactId>
772 </exclusion>
773 </exclusions>
774 </dependency>
775 <dependency>
776 <groupId>org.apache.hadoop</groupId>
777 <artifactId>hadoop-hdfs</artifactId>
778 <version>${hadoop.version}</version>
779 </dependency>
780 <dependency>
781 <groupId>org.apache.hadoop</groupId>
782 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
783 <version>${hadoop.version}</version>
784 <exclusions>
785 <exclusion>
786 <groupId>org.slf4j</groupId>
787 <artifactId>slf4j-log4j12</artifactId>
788 </exclusion>
789 <exclusion>
790 <groupId>commons-logging</groupId>
791 <artifactId>commons-logging</artifactId>
792 </exclusion>
793 <exclusion>
794 <groupId>com.codahale.metrics</groupId>
795 <artifactId>metrics-core</artifactId>
796 </exclusion>
797 </exclusions>
798 </dependency>
799 <dependency>
800 <groupId>org.apache.hadoop</groupId>
801 <artifactId>hadoop-mapreduce-client-common</artifactId>
802 <version>${hadoop.version}</version>
803 <exclusions>
804 <exclusion>
805 <groupId>org.slf4j</groupId>
806 <artifactId>slf4j-log4j12</artifactId>
807 </exclusion>
808 <exclusion>
809 <groupId>commons-logging</groupId>
810 <artifactId>commons-logging</artifactId>
811 </exclusion>
812 </exclusions>
813 </dependency>
814 <dependency>
815 <groupId>org.apache.hadoop</groupId>
816 <artifactId>hadoop-mapreduce-client-core</artifactId>
817 <version>${hadoop.version}</version>
818 <exclusions>
819 <exclusion>
820 <groupId>org.slf4j</groupId>
821 <artifactId>slf4j-log4j12</artifactId>
822 </exclusion>
823 <exclusion>
824 <groupId>commons-logging</groupId>
825 <artifactId>commons-logging</artifactId>
826 </exclusion>
827 </exclusions>
828 </dependency>
829 <dependency>
830 <groupId>org.apache.hadoop</groupId>
831 <artifactId>hadoop-minikdc</artifactId>
832 <version>${hadoop.version}</version>
833 </dependency>
834 <dependency>
835 <groupId>org.apache.hadoop</groupId>
836 <artifactId>hadoop-yarn-api</artifactId>
837 <version>${hadoop.version}</version>
838 </dependency>
839 <dependency>
840 <groupId>org.apache.hadoop</groupId>
841 <artifactId>hadoop-yarn-client</artifactId>
842 <version>${hadoop.version}</version>
843 </dependency>
844 <dependency>
845 <groupId>org.apache.hadoop</groupId>
846 <artifactId>hadoop-yarn-common</artifactId>
847 <version>${hadoop.version}</version>
848 </dependency>
849 <dependency>
850 <groupId>org.apache.hadoop</groupId>
851 <artifactId>hadoop-yarn-registry</artifactId>
852 <version>${hadoop.version}</version>
853 </dependency>
854 <dependency>
855 <groupId>org.apache.hadoop</groupId>
856 <artifactId>hadoop-yarn-server-web-common</artifactId>
857 <version>${hadoop.version}</version>
858 </dependency>
859 <dependency>
860 <groupId>org.apache.hadoop</groupId>
861 <artifactId>hadoop-yarn-server-web-proxy</artifactId>
862 <version>${hadoop.version}</version>
863 </dependency>
864 <dependency>
865 <groupId>org.apache.hbase</groupId>
866 <artifactId>hbase-common</artifactId>
867 <version>${hbase.version}</version>
868 </dependency>
869 <dependency>
870 <groupId>org.apache.hbase</groupId>
871 <artifactId>hbase-hadoop-compat</artifactId>
872 <version>${hbase.version}</version>
873 </dependency>
874 <dependency>
875 <groupId>org.apache.hbase</groupId>
876 <artifactId>hbase-hadoop2-compat</artifactId>
877 <version>${hbase.version}</version>
878 <exclusions>
879 <exclusion>
880 <groupId>javax.servlet</groupId>
881 <artifactId>servlet-api</artifactId>
882 </exclusion>
883 <exclusion>
884 <groupId>javax.servlet.jsp</groupId>
885 <artifactId>jsp-api</artifactId>
886 </exclusion>
887 <exclusion>
888 <groupId>org.jruby</groupId>
889 <artifactId>jruby-complete</artifactId>
890 </exclusion>
891 <exclusion>
892 <groupId>org.jboss.netty</groupId>
893 <artifactId>netty</artifactId>
894 </exclusion>
895 <exclusion>
896 <groupId>io.netty</groupId>
897 <artifactId>netty</artifactId>
898 </exclusion>
899 <exclusion>
900 <groupId>org.mortbay.jetty</groupId>
901 <artifactId>jsp-2.1</artifactId>
902 </exclusion>
903 <exclusion>
904 <groupId>org.mortbay.jetty</groupId>
905 <artifactId>jsp-api-2.1</artifactId>
906 </exclusion>
907 <exclusion>
908 <groupId>org.mortbay.jetty</groupId>
909 <artifactId>servlet-api-2.5</artifactId>
910 </exclusion>
911 <exclusion>
912 <groupId>org.mortbay.jetty</groupId>
913 <artifactId>servlet-api-2.5</artifactId>
914 </exclusion>
915 <exclusion>
916 <groupId>com.sun.jersey</groupId>
917 <artifactId>jersey-core</artifactId>
918 </exclusion>
919 <exclusion>
920 <groupId>com.sun.jersey</groupId>
921 <artifactId>jersey-json</artifactId>
922 </exclusion>
923 <exclusion>
924 <groupId>com.sun.jersey</groupId>
925 <artifactId>jersey-server</artifactId>
926 </exclusion>
927 <exclusion>
928 <groupId>org.mortbay.jetty</groupId>
929 <artifactId>jetty</artifactId>
930 </exclusion>
931 <exclusion>
932 <groupId>org.mortbay.jetty</groupId>
933 <artifactId>jetty-util</artifactId>
934 </exclusion>
935 <exclusion>
936 <groupId>com.codahale.metrics</groupId>
937 <artifactId>metrics-core</artifactId>
938 </exclusion>
939 </exclusions>
940 </dependency>
941 <dependency>
942 <groupId>org.apache.hbase</groupId>
943 <artifactId>hbase-server</artifactId>
944 <version>${hbase.version}</version>
945 <exclusions>
946 <exclusion>
947 <groupId>org.glassfish.web</groupId>
948 <artifactId>javax.servlet.jsp</artifactId>
949 </exclusion>
950 </exclusions>
951 </dependency>
952 <dependency>
953 <groupId>org.apache.hbase</groupId>
954 <artifactId>hbase-mapreduce</artifactId>
955 <version>${hbase.version}</version>
956 </dependency>
957 <dependency>
958 <groupId>org.apache.hadoop</groupId>
959 <artifactId>hadoop-minicluster</artifactId>
960 <version>${hadoop.version}</version>
961 </dependency>
962 <dependency>
963 <groupId>org.scala-lang</groupId>
964 <artifactId>scala-library</artifactId>
965 <version>${scala.version}</version>
966 </dependency>
967 <dependency>
968 <groupId>org.apache.spark</groupId>
969 <artifactId>spark-core_${scala.binary.version}</artifactId>
970 <version>${spark.version}</version>
971 <exclusions>
972 <exclusion>
973 <groupId>org.apache.hadoop</groupId>
974 <artifactId>hadoop-core</artifactId>
975 </exclusion>
976 </exclusions>
977 </dependency>
978 <dependency>
979 <groupId>org.jamon</groupId>
980 <artifactId>jamon-runtime</artifactId>
981 <version>${jamon-runtime.version}</version>
982 </dependency>
983 <dependency>
984 <groupId>org.xerial.snappy</groupId>
985 <artifactId>snappy-java</artifactId>
986 <version>${snappy.version}</version>
987 </dependency>
988 </dependencies>
989 </dependencyManagement>
990
991 <dependencies>
992 <!-- dependencies are always listed in sorted order by groupId, artifectId -->
993 <!-- global dependencies -->
994 <dependency>
995 <groupId>org.slf4j</groupId>
996 <artifactId>slf4j-api</artifactId>
997 <version>${slf4j.version}</version>
998 </dependency>
999 <dependency>
1000 <groupId>org.mockito</groupId>
1001 <artifactId>mockito-all</artifactId>
1002 <scope>test</scope>
1003 </dependency>
1004 </dependencies>
1005
1006 <build>
1007 <pluginManagement>
1008 <plugins>
1009 <!-- plugins are always listed in sorted order by groupId, artifectId -->
1010 <plugin>
1011 <groupId>org.antlr</groupId>
1012 <artifactId>antlr3-maven-plugin</artifactId>
1013 <version>${antlr.version}</version>
1014 </plugin>
1015 <plugin>
1016 <groupId>org.apache.maven.plugins</groupId>
1017 <artifactId>maven-compiler-plugin</artifactId>
1018 <version>${maven.compiler.plugin.version}</version>
1019 </plugin>
1020 <plugin>
1021 <groupId>org.apache.maven.plugins</groupId>
1022 <artifactId>maven-antrun-plugin</artifactId>
1023 <version>${maven.antrun.plugin.version}</version>
1024 <dependencies>
1025 <dependency>
1026 <groupId>ant-contrib</groupId>
1027 <artifactId>ant-contrib</artifactId>
1028 <version>${ant.contrib.version}</version>
1029 <exclusions>
1030 <exclusion>
1031 <groupId>ant</groupId>
1032 <artifactId>ant</artifactId>
1033 </exclusion>
1034 </exclusions>
1035 </dependency>
1036 </dependencies>
1037 </plugin>
1038 <plugin>
1039 <groupId>org.apache.maven.plugins</groupId>
1040 <artifactId>maven-assembly-plugin</artifactId>
1041 <version>${maven.assembly.plugin.version}</version>
1042 </plugin>
1043 <plugin>
1044 <groupId>org.apache.maven.plugins</groupId>
1045 <artifactId>maven-eclipse-plugin</artifactId>
1046 <version>${maven.eclipse.plugin.version}</version>
1047 <configuration>
1048 <downloadJavadocs>true</downloadJavadocs>
1049 <downloadSources>true</downloadSources>
1050 <buildOutputDirectory>target/eclipse/classes</buildOutputDirectory>
1051 <workspaceActiveCodeStyleProfileName>Hive</workspaceActiveCodeStyleProfileName>
1052 <workspaceCodeStylesURL>${basedir}/dev-support/eclipse-styles.xml</workspaceCodeStylesURL>
1053 </configuration>
1054 </plugin>
1055 <plugin>
1056 <groupId>org.apache.maven.plugins</groupId>
1057 <artifactId>maven-checkstyle-plugin</artifactId>
1058 <version>${maven.checkstyle.plugin.version}</version>
1059 </plugin>
1060 <plugin>
1061 <groupId>org.apache.maven.plugins</groupId>
1062 <artifactId>maven-enforcer-plugin</artifactId>
1063 <version>${maven.enforcer.plugin.version}</version>
1064 </plugin>
1065 <plugin>
1066 <groupId>org.apache.maven.plugins</groupId>
1067 <artifactId>maven-install-plugin</artifactId>
1068 <version>${maven.install.plugin.version}</version>
1069 </plugin>
1070 <plugin>
1071 <groupId>org.apache.maven.plugins</groupId>
1072 <artifactId>maven-shade-plugin</artifactId>
1073 <version>${maven.shade.plugin.version}</version>
1074 </plugin>
1075 <plugin>
1076 <groupId>org.apache.maven.plugins</groupId>
1077 <artifactId>maven-surefire-plugin</artifactId>
1078 <version>${maven.surefire.plugin.version}</version>
1079 </plugin>
1080 <plugin>
1081 <groupId>org.apache.maven.plugins</groupId>
1082 <artifactId>maven-jar-plugin</artifactId>
1083 <version>${maven.jar.plugin.version}</version>
1084 <configuration>
1085 <archive>
1086 <manifest>
1087 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
1088 </manifest>
1089 </archive>
1090 </configuration>
1091 </plugin>
1092 <plugin>
1093 <groupId>org.apache.maven.plugins</groupId>
1094 <artifactId>maven-war-plugin</artifactId>
1095 <version>${maven.war.plugin.version}</version>
1096 </plugin>
1097 <plugin>
1098 <groupId>org.datanucleus</groupId>
1099 <artifactId>datanucleus-maven-plugin</artifactId>
1100 <version>${datanucleus.maven.plugin.version}</version>
1101 <dependencies>
1102 <dependency>
1103 <groupId>org.datanucleus</groupId>
1104 <artifactId>datanucleus-core</artifactId>
1105 <version>${datanucleus-core.version}</version>
1106 </dependency>
1107 </dependencies>
1108 </plugin>
1109 <plugin>
1110 <groupId>org.apache.felix</groupId>
1111 <artifactId>maven-bundle-plugin</artifactId>
1112 <version>${felix.version}</version>
1113 </plugin>
1114 <plugin>
1115 <groupId>org.apache.maven.plugins</groupId>
1116 <artifactId>maven-dependency-plugin</artifactId>
1117 <version>${maven.dependency.plugin.version}</version>
1118 </plugin>
1119 <plugin>
1120 <groupId>org.codehaus.mojo</groupId>
1121 <artifactId>build-helper-maven-plugin</artifactId>
1122 <version>${maven.build-helper.plugin.version}</version>
1123 </plugin>
1124 </plugins>
1125 </pluginManagement>
1126
1127 <plugins>
1128 <!-- plugins are always listed in sorted order by groupId, artifectId -->
1129 <plugin>
1130 <groupId>org.apache.maven.plugins</groupId>
1131 <artifactId>maven-antrun-plugin</artifactId>
1132 <executions>
1133 <execution>
1134 <id>define-classpath</id>
1135 <phase>process-resources</phase>
1136 <goals>
1137 <goal>run</goal>
1138 </goals>
1139 <configuration>
1140 <exportAntProperties>true</exportAntProperties>
1141 <target>
1142 <property name="maven.test.classpath" refid="maven.test.classpath"/>
1143 </target>
1144 </configuration>
1145 </execution>
1146 <execution>
1147 <id>setup-test-dirs</id>
1148 <phase>process-test-resources</phase>
1149 <goals>
1150 <goal>run</goal>
1151 </goals>
1152 <configuration>
1153 <target>
1154 <delete dir="${test.tmp.dir}" />
1155 <delete dir="${test.conf.dir}" />
1156 <delete dir="${test.warehouse.dir}" />
1157 <mkdir dir="${test.tmp.dir}" />
1158 <mkdir dir="${test.warehouse.dir}" />
1159 <mkdir dir="${test.conf.dir}" />
1160 <!-- copies hive-site.xml so it can be modified -->
1161 <copy todir="${test.conf.dir}">
1162 <fileset dir="${basedir}/${hive.path.to.root}/data/conf/"/>
1163 </copy>
1164 </target>
1165 </configuration>
1166 </execution>
1167 </executions>
1168 </plugin>
1169 <plugin>
1170 <groupId>org.apache.maven.plugins</groupId>
1171 <artifactId>maven-clean-plugin</artifactId>
1172 <version>2.5</version>
1173 <configuration>
1174 <filesets>
1175 <fileset>
1176 <directory>./</directory>
1177 <includes>
1178 <include>datanucleus.log</include>
1179 <include>derby.log</include>
1180 </includes>
1181 <followSymlinks>false</followSymlinks>
1182 </fileset>
1183 <fileset>
1184 <directory>build</directory>
1185 <followSymlinks>false</followSymlinks>
1186 </fileset>
1187 </filesets>
1188 </configuration>
1189 </plugin>
1190 <plugin>
1191 <groupId>org.apache.maven.plugins</groupId>
1192 <artifactId>maven-checkstyle-plugin</artifactId>
1193 <configuration>
1194 <configLocation>${checkstyle.conf.dir}/checkstyle.xml</configLocation>
1195 <propertyExpansion>config_loc=${checkstyle.conf.dir}</propertyExpansion>
1196 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1197 </configuration>
1198 </plugin>
1199 <plugin>
1200 <groupId>org.apache.maven.plugins</groupId>
1201 <artifactId>maven-enforcer-plugin</artifactId>
1202 <executions>
1203 <execution>
1204 <id>enforce-no-snapshots</id>
1205 <goals>
1206 <goal>enforce</goal>
1207 </goals>
1208 <configuration>
1209 <rules>
1210 <requireReleaseDeps>
1211 <message>Release builds are not allowed to have SNAPSHOT depenendencies</message>
1212 <searchTransitive>true</searchTransitive>
1213 <onlyWhenRelease>true</onlyWhenRelease>
1214 </requireReleaseDeps>
1215 </rules>
1216 <fail>true</fail>
1217 </configuration>
1218 </execution>
1219 <execution>
1220 <id>enforce-banned-dependencies-licenses</id>
1221 <goals>
1222 <goal>enforce</goal>
1223 </goals>
1224 <configuration>
1225 <rules>
1226 <bannedDependencies>
1227 <excludes>
1228 <!--LGPL licenced library-->
1229 <exclude>com.google.code.findbugs:annotations</exclude>
1230 </excludes>
1231 <message>A banned license dependency was found!</message>
1232 </bannedDependencies>
1233 </rules>
1234 <fail>true</fail>
1235 </configuration>
1236 </execution>
1237 <execution>
1238 <id>enforce-banned-dependencies-logging</id>
1239 <goals>
1240 <goal>enforce</goal>
1241 </goals>
1242 <configuration>
1243 <rules>
1244 <bannedDependencies>
1245 <excludes>
1246 <!-- Move to SLF4J -->
1247 <exclude>commons-logging:commons-logging</exclude>
1248 <exclude>log4j:log4j</exclude>
1249 </excludes>
1250 <searchTransitive>false</searchTransitive>
1251 <message>A banned logging dependency was found!</message>
1252 </bannedDependencies>
1253 </rules>
1254 <fail>true</fail>
1255 </configuration>
1256 </execution>
1257 </executions>
1258 </plugin>
1259 <plugin>
1260 <groupId>org.apache.maven.plugins</groupId>
1261 <artifactId>maven-surefire-plugin</artifactId>
1262 <configuration>
1263 <excludes>
1264 <exclude>**/TestSerDe.java</exclude>
1265 <exclude>**/TestHiveMetaStore.java</exclude>
1266 <exclude>**/ql/exec/vector/util/*.java</exclude>
1267 <exclude>**/ql/exec/vector/udf/legacy/*.java</exclude>
1268 <exclude>**/ql/exec/vector/udf/generic/*.java</exclude>
1269 <exclude>**/TestHiveServer2Concurrency.java</exclude>
1270 <exclude>${test.excludes.additional}</exclude>
1271 <exclude>${skip.spark.files}</exclude>
1272 </excludes>
1273 <redirectTestOutputToFile>true</redirectTestOutputToFile>
1274 <reuseForks>false</reuseForks>
1275 <failIfNoTests>false</failIfNoTests>
1276 <argLine>${maven.test.jvm.args}</argLine>
1277 <trimStackTrace>false</trimStackTrace>
1278 <additionalClasspathElements>
1279 <additionalClasspathElement>${test.conf.dir}</additionalClasspathElement>
1280 <additionalClasspathElement>${basedir}/${hive.path.to.root}/conf</additionalClasspathElement>
1281 </additionalClasspathElements>
1282 <environmentVariables>
1283 <TZ>US/Pacific</TZ>
1284 <LANG>en_US.UTF-8</LANG>
1285 <HADOOP_CLASSPATH>${test.conf.dir}:${basedir}/${hive.path.to.root}/conf</HADOOP_CLASSPATH>
1286 <HIVE_HADOOP_TEST_CLASSPATH>${test.hive.hadoop.classpath}</HIVE_HADOOP_TEST_CLASSPATH>
1287 <SPARK_SUBMIT_CLASSPATH>${spark.home}/lib/spark-assembly-${spark.version}-hadoop2.4.0.jar:${test.hive.hadoop.classpath}</SPARK_SUBMIT_CLASSPATH>
1288 <SPARK_OSX_TEST_OPTS>-Dorg.xerial.snappy.tempdir=/tmp -Dorg.xerial.snappy.lib.name=libsnappyjava.jnilib</SPARK_OSX_TEST_OPTS>
1289 <SPARK_SCALA_VERSION>2.11</SPARK_SCALA_VERSION>
1290 <SPARK_HOME>${spark.home}</SPARK_HOME>
1291 <PATH>${env.PATH}${test.extra.path}</PATH>
1292 </environmentVariables>
1293 <systemPropertyVariables>
1294 <build.dir>${project.build.directory}</build.dir>
1295 <!-- required by zk test ClientBase -->
1296 <build.test.dir>${test.tmp.dir}</build.test.dir>
1297 <!-- required by a few tests to find the derby jar -->
1298 <derby.version>${derby.version}</derby.version>
1299 <derby.stream.error.file>${test.tmp.dir}/derby.log</derby.stream.error.file>
1300 <hadoop.bin.path>${hadoop.bin.path}</hadoop.bin.path>
1301 <!-- required by Hadoop's JobHistory -->
1302 <hadoop.log.dir>${test.tmp.dir}</hadoop.log.dir>
1303 <hive.root>${basedir}/${hive.path.to.root}/</hive.root>
1304 <hive.version>${project.version}</hive.version>
1305 <!-- required for hive-exec jar path and tests which reference a jar -->
1306 <maven.local.repository>${maven.repo.local}</maven.local.repository>
1307 <mapred.job.tracker>local</mapred.job.tracker>
1308 <log4j.configurationFile>${test.log4j.scheme}${test.conf.dir}/hive-log4j2.properties</log4j.configurationFile>
1309 <hive.test.console.log.level>${test.console.log.level}</hive.test.console.log.level>
1310 <log4j.debug>true</log4j.debug>
1311 <!-- don't diry up /tmp -->
1312 <java.io.tmpdir>${test.tmp.dir}</java.io.tmpdir>
1313 <spark.home>${spark.home}</spark.home>
1314 <!-- Hadoop's minidfs class uses this -->
1315 <test.build.data>${test.tmp.dir}</test.build.data>
1316 <!-- required by QTestUtil -->
1317 <test.data.files>${basedir}/${hive.path.to.root}/data/files</test.data.files>
1318 <test.data.dir>${basedir}/${hive.path.to.root}/data/files</test.data.dir>
1319 <test.tmp.dir>${test.tmp.dir}</test.tmp.dir>
1320 <test.tmp.dir.uri>${test.tmp.dir.uri}</test.tmp.dir.uri>
1321 <test.dfs.mkdir>${test.dfs.mkdir}</test.dfs.mkdir>
1322 <test.output.overwrite>${test.output.overwrite}</test.output.overwrite>
1323 <test.warehouse.dir>${test.warehouse.scheme}${test.warehouse.dir}</test.warehouse.dir>
1324 <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
1325 <!-- EnforceReadOnlyTables hook and QTestUtil -->
1326 <test.src.tables></test.src.tables>
1327 <java.security.krb5.conf>${test.conf.dir}/krb5.conf</java.security.krb5.conf>
1328 <!-- Required by spark to work around SPARK-14958 -->
1329 <antlr.version>${antlr.version}</antlr.version>
1330 <qfile>${qfile}</qfile>
1331 <initScript>${initScript}</initScript>
1332 <clustermode>${clustermode}</clustermode>
1333 <qfile_regex>${qfile_regex}</qfile_regex>
1334 <run_disabled>${run_disabled}</run_disabled>
1335 </systemPropertyVariables>
1336 </configuration>
1337 </plugin>
1338 <plugin>
1339 <groupId>org.apache.rat</groupId>
1340 <artifactId>apache-rat-plugin</artifactId>
1341 <version>0.10</version>
1342 <configuration>
1343 <excludes>
1344 <exclude>binary-package-licenses/**</exclude>
1345 <exclude>data/**</exclude>
1346 <exclude>conf/**</exclude>
1347 <exclude>checkstyle/**</exclude>
1348 <exclude>bin/**</exclude>
1349 <exclude>itests/**</exclude>
1350 <exclude>**/README.md</exclude>
1351 <exclude>**/*.iml</exclude>
1352 <exclude>**/*.txt</exclude>
1353 <exclude>**/*.log</exclude>
1354 <exclude>**/*.arcconfig</exclude>
1355 <exclude>**/package-info.java</exclude>
1356 <exclude>**/*.properties</exclude>
1357 <exclude>**/*.q</exclude>
1358 <exclude>**/*.q.out</exclude>
1359 <exclude>**/*.q.out_*</exclude>
1360 <exclude>**/*.xml</exclude>
1361 <exclude>**/gen/**</exclude>
1362 <exclude>**/scripts/**</exclude>
1363 <exclude>**/resources/**</exclude>
1364 <exclude>**/*.rc</exclude>
1365 <exclude>**/*.rcfile</exclude>
1366 <exclude>**/*.qv</exclude>
1367 <exclude>**/*.out</exclude>
1368 <exclude>**/RecordTestObj.java</exclude>
1369 <exclude>**/*.m</exclude>
1370 <exclude>**/gen-java/**</exclude>
1371 <exclude>**/testdata/**</exclude>
1372 <exclude>**/ptest2/*.md</exclude>
1373 <exclude>**/test/org/apache/hadoop/hive/hbase/avro/**</exclude>
1374 <exclude>**/avro_test.avpr</exclude>
1375 <exclude>**/xmlReport.pl</exclude>
1376 <exclude>**/*.html</exclude>
1377 <exclude>**/sit</exclude>
1378 <exclude>**/test/queries/**/*.sql</exclude>
1379 <exclude>**/patchprocess/**</exclude>
1380 <exclude>**/metastore_db/**</exclude>
1381 </excludes>
1382 </configuration>
1383 </plugin>
1384 <plugin>
1385 <groupId>org.jamon</groupId>
1386 <artifactId>jamon-maven-plugin</artifactId>
1387 <version>${jamon.plugin.version}</version>
1388 </plugin>
1389 </plugins>
1390 </build>
1391
1392 <profiles>
1393 <profile>
1394 <id>thriftif</id>
1395 <build>
1396 <plugins>
1397 <plugin>
1398 <groupId>org.apache.maven.plugins</groupId>
1399 <artifactId>maven-antrun-plugin</artifactId>
1400 <executions>
1401 <execution>
1402 <id>generate-thrift-sources</id>
1403 <phase>generate-sources</phase>
1404 <configuration>
1405 <target>
1406 <taskdef name="for" classname="net.sf.antcontrib.logic.ForTask"
1407 classpathref="maven.plugin.classpath" />
1408 <property name="thrift.args" value="-I ${thrift.home} --gen java:beans,hashcode,generated_annotations=undated --gen cpp --gen php --gen py --gen rb"/>
1409 <property name="thrift.gen.dir" value="${basedir}/src/gen/thrift"/>
1410 <delete dir="${thrift.gen.dir}"/>
1411 <mkdir dir="${thrift.gen.dir}"/>
1412 <for param="thrift.file">
1413 <path>
1414 <fileset dir="." includes="if/*.thrift,if/test/*.thrift,src/main/thrift/*.thrift" />
1415 </path>
1416 <sequential>
1417 <echo message="Generating Thrift code for @{thrift.file}"/>
1418 <exec executable="${thrift.home}/bin/thrift" failonerror="true" dir=".">
1419 <arg line="${thrift.args} -I ${basedir}/include -I ${basedir}/.. -o ${thrift.gen.dir} @{thrift.file} " />
1420 </exec>
1421 </sequential>
1422 </for>
1423 </target>
1424 </configuration>
1425 <goals>
1426 <goal>run</goal>
1427 </goals>
1428 </execution>
1429 </executions>
1430 </plugin>
1431 <plugin>
1432 <groupId>org.apache.maven.plugins</groupId>
1433 <artifactId>maven-enforcer-plugin</artifactId>
1434 <executions>
1435 <execution>
1436 <id>enforce-property</id>
1437 <goals>
1438 <goal>enforce</goal>
1439 </goals>
1440 <configuration>
1441 <rules>
1442 <requireProperty>
1443 <property>thrift.home</property>
1444 </requireProperty>
1445 </rules>
1446 <fail>true</fail>
1447 </configuration>
1448 </execution>
1449 </executions>
1450 </plugin>
1451 </plugins>
1452 </build>
1453 </profile>
1454
1455 <profile>
1456 <id>sources</id>
1457 <build>
1458 <plugins>
1459 <plugin>
1460 <groupId>org.apache.maven.plugins</groupId>
1461 <artifactId>maven-source-plugin</artifactId>
1462 <executions>
1463 <execution>
1464 <id>attach-sources</id>
1465 <goals>
1466 <goal>jar</goal>
1467 </goals>
1468 </execution>
1469 </executions>
1470 </plugin>
1471 </plugins>
1472 </build>
1473 </profile>
1474
1475 <profile>
1476 <id>javadoc</id>
1477 <build>
1478 <plugins>
1479 <plugin>
1480 <groupId>org.apache.maven.plugins</groupId>
1481 <artifactId>maven-javadoc-plugin</artifactId>
1482 <configuration>
1483 <failOnError>false</failOnError>
1484 </configuration>
1485 <executions>
1486 <execution>
1487 <id>attach-javadocs</id>
1488 <goals>
1489 <goal>jar</goal>
1490 </goals>
1491 </execution>
1492 </executions>
1493 </plugin>
1494 </plugins>
1495 </build>
1496 </profile>
1497
1498 <profile>
1499 <id>findbugs</id>
1500 <build>
1501 <plugins>
1502 <plugin>
1503 <groupId>org.codehaus.mojo</groupId>
1504 <artifactId>findbugs-maven-plugin</artifactId>
1505 <version>3.0.0</version>
1506 <configuration>
1507 <fork>true</fork>
1508 <maxHeap>2048</maxHeap>
1509 <jvmArgs>-Djava.awt.headless=true -Xmx2048m -Xms512m</jvmArgs>
1510 <excludeFilterFile>${basedir}/${hive.path.to.root}/findbugs/findbugs-exclude.xml</excludeFilterFile>
1511 </configuration>
1512 </plugin>
1513 </plugins>
1514 </build>
1515 <reporting>
1516 <plugins>
1517 <plugin>
1518 <groupId>org.codehaus.mojo</groupId>
1519 <artifactId>findbugs-maven-plugin</artifactId>
1520 <version>3.0.0</version>
1521 <configuration>
1522 <fork>true</fork>
1523 <maxHeap>2048</maxHeap>
1524 <jvmArgs>-Djava.awt.headless=true -Xmx2048m -Xms512m</jvmArgs>
1525 <excludeFilterFile>${basedir}/${hive.path.to.root}/findbugs/findbugs-exclude.xml</excludeFilterFile>
1526 </configuration>
1527 </plugin>
1528 </plugins>
1529 </reporting>
1530 </profile>
1531 <profile>
1532 <!-- Windows-specific settings to allow unit tests to work -->
1533 <id>windows-test</id>
1534 <activation>
1535 <os>
1536 <family>Windows</family>
1537 </os>
1538 </activation>
1539 <build>
1540 <plugins>
1541 <!-- maven.test.classpath (used for HIVE_HADOOP_TEST_CLASSPATH) exceeds the 8K Windows -->
1542 <!-- command shell limit which causes tests which call hadoop command to fail. -->
1543 <!-- Workaround is to copy all necessary jars to a single location to shorten the -->
1544 <!-- the length of the environment variable. -->
1545 <plugin>
1546 <groupId>org.apache.maven.plugins</groupId>
1547 <artifactId>maven-dependency-plugin</artifactId>
1548 <version>2.8</version>
1549 <executions>
1550 <execution>
1551 <id>copy-dependencies</id>
1552 <phase>package</phase>
1553 <goals>
1554 <goal>copy-dependencies</goal>
1555 </goals>
1556 <configuration>
1557 <outputDirectory>${project.build.directory}/deplibs/</outputDirectory>
1558 <overWriteReleases>false</overWriteReleases>
1559 <overWriteSnapshots>false</overWriteSnapshots>
1560 <overWriteIfNewer>true</overWriteIfNewer>
1561 </configuration>
1562 </execution>
1563 </executions>
1564 </plugin>
1565 </plugins>
1566 </build>
1567 <properties>
1568 <hadoop.bin.path>${basedir}/${hive.path.to.root}/testutils/hadoop.cmd</hadoop.bin.path>
1569 <test.extra.path>;${env.HADOOP_HOME}/bin</test.extra.path>
1570 <test.hive.hadoop.classpath>${project.build.directory}/deplibs/*</test.hive.hadoop.classpath>
1571 <test.tmp.dir.uri>file:///${test.tmp.dir}</test.tmp.dir.uri>
1572 <test.log4j.scheme>file:/</test.log4j.scheme>
1573 </properties>
1574 </profile>
1575 <profile>
1576 <id>spark-test</id>
1577 <activation>
1578 <property>
1579 <name>!skipSparkTests</name>
1580 </property>
1581 </activation>
1582 <properties>
1583 <skip.spark.files>
1584 **/ql/exec/spark/session/TestSparkSessionManagerImpl.java,**/TestMultiSessionsHS2WithLocalClusterSpark.java,**/TestJdbcWithLocalClusterSpark.java
1585 </skip.spark.files>
1586 </properties>
1587 </profile>
1588 <profile>
1589 <id>itests</id>
1590 <modules>
1591 <module>itests</module>
1592 </modules>
1593 </profile>
1594 </profiles>
1595 </project>