pom.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. <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">
  19. <modelVersion>4.0.0</modelVersion>
  20. <parent>
  21. <artifactId>livy-main</artifactId>
  22. <groupId>org.apache.livy</groupId>
  23. <version>0.8.0-incubating-SNAPSHOT</version>
  24. <relativePath>../../pom.xml</relativePath>
  25. </parent>
  26. <groupId>org.apache.livy</groupId>
  27. <artifactId>livy-thriftserver</artifactId>
  28. <dependencies>
  29. <dependency>
  30. <groupId>org.apache.hive</groupId>
  31. <artifactId>hive-service-rpc</artifactId>
  32. <version>${hive.version}</version>
  33. <exclusions>
  34. <exclusion>
  35. <groupId>tomcat</groupId>
  36. <artifactId>*</artifactId>
  37. </exclusion>
  38. <exclusion>
  39. <groupId>org.apache.hbase</groupId>
  40. <artifactId>*</artifactId>
  41. </exclusion>
  42. </exclusions>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.hive</groupId>
  46. <artifactId>hive-service</artifactId>
  47. <version>${hive.version}</version>
  48. <exclusions>
  49. <exclusion>
  50. <groupId>org.apache.hive</groupId>
  51. <artifactId>*</artifactId>
  52. </exclusion>
  53. <exclusion>
  54. <groupId>org.eclipse.jetty</groupId>
  55. <artifactId>*</artifactId>
  56. </exclusion>
  57. <exclusion>
  58. <groupId>org.apache.curator</groupId>
  59. <artifactId>*</artifactId>
  60. </exclusion>
  61. </exclusions>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.livy</groupId>
  65. <artifactId>livy-thriftserver-session</artifactId>
  66. <version>${project.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.livy</groupId>
  70. <artifactId>livy-rsc</artifactId>
  71. <version>${project.version}</version>
  72. <scope>provided</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.livy</groupId>
  76. <artifactId>livy-core_${scala.binary.version}</artifactId>
  77. <version>${project.version}</version>
  78. <scope>provided</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.livy</groupId>
  82. <artifactId>livy-api</artifactId>
  83. <version>${project.version}</version>
  84. <scope>provided</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.livy</groupId>
  88. <artifactId>livy-server</artifactId>
  89. <version>${project.version}</version>
  90. <scope>provided</scope>
  91. <exclusions>
  92. <exclusion>
  93. <groupId>org.eclipse.jetty</groupId>
  94. <artifactId>jetty-server</artifactId>
  95. </exclusion>
  96. </exclusions>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.slf4j</groupId>
  100. <artifactId>slf4j-api</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.apache.thrift</groupId>
  104. <artifactId>libthrift</artifactId>
  105. <version>${libthrift.version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.glassfish.jersey.core</groupId>
  109. <artifactId>jersey-common</artifactId>
  110. <version>2.25.1</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.eclipse.jetty</groupId>
  114. <artifactId>jetty-runner</artifactId>
  115. <version>${jetty.version}</version>
  116. </dependency>
  117. <!-- needed for testing -->
  118. <dependency>
  119. <groupId>org.apache.hive</groupId>
  120. <artifactId>hive-jdbc</artifactId>
  121. <version>${hive.version}</version>
  122. <scope>test</scope>
  123. <exclusions>
  124. <exclusion>
  125. <groupId>org.apache.zookeeper</groupId>
  126. <artifactId>zookeeper</artifactId>
  127. </exclusion>
  128. <exclusion>
  129. <groupId>io.netty</groupId>
  130. <artifactId>netty</artifactId>
  131. </exclusion>
  132. <exclusion>
  133. <groupId>org.apache.logging.log4j</groupId>
  134. <artifactId>log4j-slf4j-impl</artifactId>
  135. </exclusion>
  136. <exclusion>
  137. <groupId>org.slf4j</groupId>
  138. <artifactId>slf4j-log4j12</artifactId>
  139. </exclusion>
  140. <exclusion>
  141. <groupId>org.apache.hbase</groupId>
  142. <artifactId>*</artifactId>
  143. </exclusion>
  144. </exclusions>
  145. </dependency>
  146. <!-- needed for LDAP testing -->
  147. <dependency>
  148. <groupId>org.apache.directory.server</groupId>
  149. <artifactId>apacheds-core</artifactId>
  150. <version>${apacheds.version}</version>
  151. <scope>test</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.apache.directory.server</groupId>
  155. <artifactId>apacheds-protocol-ldap</artifactId>
  156. <version>${apacheds.version}</version>
  157. <scope>test</scope>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.apache.directory.server</groupId>
  161. <artifactId>apacheds-ldif-partition</artifactId>
  162. <version>${apacheds.version}</version>
  163. <scope>test</scope>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.apache.directory.api</groupId>
  167. <artifactId>api-ldap-codec-core</artifactId>
  168. <version>${ldap-api.version}</version>
  169. <scope>test</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.directory.api</groupId>
  173. <artifactId>api-ldap-model</artifactId>
  174. <version>${ldap-api.version}</version>
  175. <scope>test</scope>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.apache.directory.server</groupId>
  179. <artifactId>apacheds-server-integ</artifactId>
  180. <version>${apacheds.version}</version>
  181. <scope>test</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.apache.directory.server</groupId>
  185. <artifactId>apacheds-core-integ</artifactId>
  186. <version>${apacheds.version}</version>
  187. <scope>test</scope>
  188. </dependency>
  189. </dependencies>
  190. <build>
  191. <plugins>
  192. <plugin>
  193. <groupId>org.apache.maven.plugins</groupId>
  194. <artifactId>maven-dependency-plugin</artifactId>
  195. <executions>
  196. <execution>
  197. <phase>package</phase>
  198. <goals>
  199. <goal>copy-dependencies</goal>
  200. </goals>
  201. <configuration>
  202. <excludeArtifactIds>
  203. jetty-util,
  204. jetty-xml,
  205. jetty-webapp
  206. </excludeArtifactIds>
  207. </configuration>
  208. </execution>
  209. </executions>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-jar-plugin</artifactId>
  214. <configuration>
  215. <outputDirectory>${project.build.directory}/jars</outputDirectory>
  216. </configuration>
  217. </plugin>
  218. <plugin>
  219. <groupId>org.apache.maven.plugins</groupId>
  220. <artifactId>maven-antrun-plugin</artifactId>
  221. <version>1.6</version>
  222. <executions>
  223. <execution>
  224. <id>unpack-spark-files</id>
  225. <goals>
  226. <goal>run</goal>
  227. </goals>
  228. <phase>test-compile</phase>
  229. <configuration>
  230. <tasks>
  231. <echo message="unpack spark files" />
  232. <untar src="../../spark-3.0.3-bin-hadoop3.2.tgz" compression="gzip" dest="${project.build.directory}" />
  233. </tasks>
  234. </configuration>
  235. </execution>
  236. </executions>
  237. </plugin>
  238. <plugin>
  239. <groupId>org.scalatest</groupId>
  240. <artifactId>scalatest-maven-plugin</artifactId>
  241. <executions>
  242. <!-- Unbind integration test from test phase and bind it to integration-test phase -->
  243. <execution>
  244. <id>test</id>
  245. <phase>none</phase>
  246. </execution>
  247. <execution>
  248. <id>integration-test</id>
  249. <phase>integration-test</phase>
  250. <goals>
  251. <goal>test</goal>
  252. </goals>
  253. </execution>
  254. </executions>
  255. <configuration>
  256. <environmentVariables>
  257. <LIVY_HOME>${execution.root}</LIVY_HOME>
  258. <LIVY_TEST>false</LIVY_TEST>
  259. <LIVY_INTEGRATION_TEST>true</LIVY_INTEGRATION_TEST>
  260. <SPARK_HOME>${project.build.directory}/${spark.bin.name}</SPARK_HOME>
  261. </environmentVariables>
  262. <skipTests>${skipITs}</skipTests>
  263. </configuration>
  264. </plugin>
  265. </plugins>
  266. </build>
  267. </project>