pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  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"
  19. 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.livy</groupId>
  24. <artifactId>livy-main</artifactId>
  25. <relativePath>../pom.xml</relativePath>
  26. <version>0.8.0-incubating-SNAPSHOT</version>
  27. </parent>
  28. <artifactId>livy-server</artifactId>
  29. <version>0.8.0-incubating-SNAPSHOT</version>
  30. <packaging>jar</packaging>
  31. <dependencies>
  32. <dependency>
  33. <groupId>${project.groupId}</groupId>
  34. <artifactId>livy-core_${scala.binary.version}</artifactId>
  35. <version>${project.version}</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>${project.groupId}</groupId>
  39. <artifactId>livy-core_${scala.binary.version}</artifactId>
  40. <version>${project.version}</version>
  41. <type>test-jar</type>
  42. <scope>test</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>${project.groupId}</groupId>
  46. <artifactId>livy-rsc</artifactId>
  47. <version>${project.version}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.livy</groupId>
  51. <artifactId>livy-test-lib</artifactId>
  52. <version>${project.version}</version>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.fasterxml.jackson.core</groupId>
  57. <artifactId>jackson-core</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.fasterxml.jackson.core</groupId>
  61. <artifactId>jackson-databind</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.fasterxml.jackson.module</groupId>
  65. <artifactId>jackson-module-scala_${scala.binary.version}</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>io.dropwizard.metrics</groupId>
  69. <artifactId>metrics-core</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>io.dropwizard.metrics</groupId>
  73. <artifactId>metrics-healthchecks</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>javax.servlet</groupId>
  77. <artifactId>javax.servlet-api</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.apache.hadoop</groupId>
  81. <artifactId>hadoop-auth</artifactId>
  82. <scope>${hadoop.scope}</scope>
  83. <exclusions>
  84. <exclusion>
  85. <groupId>jline</groupId>
  86. <artifactId>jline</artifactId>
  87. </exclusion>
  88. <exclusion>
  89. <groupId>org.apache.curator</groupId>
  90. <artifactId>curator-framework</artifactId>
  91. </exclusion>
  92. <exclusion>
  93. <groupId>org.apache.zookeeper</groupId>
  94. <artifactId>zookeeper</artifactId>
  95. </exclusion>
  96. </exclusions>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.hadoop</groupId>
  100. <artifactId>hadoop-client</artifactId>
  101. <exclusions>
  102. <exclusion>
  103. <groupId>javax.servlet</groupId>
  104. <artifactId>servlet-api</artifactId>
  105. </exclusion>
  106. <exclusion>
  107. <groupId>com.sun.jersey</groupId>
  108. <artifactId>jersey-core</artifactId>
  109. </exclusion>
  110. </exclusions>
  111. <scope>${hadoop.scope}</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.apache.curator</groupId>
  115. <artifactId>curator-recipes</artifactId>
  116. <version>${curator.version}</version>
  117. <exclusions>
  118. <exclusion>
  119. <groupId>org.apache.zookeeper</groupId>
  120. <artifactId>zookeeper</artifactId>
  121. </exclusion>
  122. </exclusions>
  123. </dependency>
  124. <!-- hadoop-auth needs curator-framework, but we want to use the proper version -->
  125. <dependency>
  126. <groupId>org.apache.curator</groupId>
  127. <artifactId>curator-framework</artifactId>
  128. <version>${curator.version}</version>
  129. </dependency>
  130. <!-- hadoop-auth and curator needs zookeeper, but we want to use the proper version -->
  131. <dependency>
  132. <groupId>org.apache.zookeeper</groupId>
  133. <artifactId>zookeeper</artifactId>
  134. <version>${zookeeper.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.apache.httpcomponents</groupId>
  138. <artifactId>httpclient</artifactId>
  139. <scope>test</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.eclipse.jetty</groupId>
  143. <artifactId>jetty-server</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.eclipse.jetty</groupId>
  147. <artifactId>jetty-servlet</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.json4s</groupId>
  151. <artifactId>json4s-ast_${scala.binary.version}</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.json4s</groupId>
  155. <artifactId>json4s-core_${scala.binary.version}</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.json4s</groupId>
  159. <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.scala-lang</groupId>
  163. <artifactId>scala-library</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.scalatra</groupId>
  167. <artifactId>scalatra_${scala.binary.version}</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.scalatra</groupId>
  171. <artifactId>scalatra-json_${scala.binary.version}</artifactId>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.scalatra</groupId>
  175. <artifactId>scalatra-metrics_${scala.binary.version}</artifactId>
  176. <version>${scalatra.version}</version>
  177. <exclusions>
  178. <exclusion>
  179. <groupId>com.typesafe.akka</groupId>
  180. <artifactId>akka-actor_${scala.binary.version}</artifactId>
  181. </exclusion>
  182. </exclusions>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.slf4j</groupId>
  186. <artifactId>slf4j-api</artifactId>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.apache.livy</groupId>
  190. <artifactId>livy-repl_${scala.binary.version}</artifactId>
  191. <version>${project.version}</version>
  192. <scope>test</scope>
  193. </dependency>
  194. <dependency>
  195. <groupId>org.apache.spark</groupId>
  196. <artifactId>spark-core_${scala.binary.version}</artifactId>
  197. <scope>test</scope>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.apache.spark</groupId>
  201. <artifactId>spark-repl_${scala.binary.version}</artifactId>
  202. <scope>test</scope>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.apache.spark</groupId>
  206. <artifactId>spark-sql_${scala.binary.version}</artifactId>
  207. <scope>test</scope>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.apache.spark</groupId>
  211. <artifactId>spark-streaming_${scala.binary.version}</artifactId>
  212. <scope>test</scope>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.apache.spark</groupId>
  216. <artifactId>spark-hive_${scala.binary.version}</artifactId>
  217. <scope>test</scope>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.scalatra</groupId>
  221. <artifactId>scalatra-test_${scala.binary.version}</artifactId>
  222. <scope>test</scope>
  223. <exclusions>
  224. <exclusion>
  225. <groupId>org.mockito</groupId>
  226. <artifactId>*</artifactId>
  227. </exclusion>
  228. </exclusions>
  229. </dependency>
  230. <dependency>
  231. <groupId>org.apache.directory.server</groupId>
  232. <artifactId>apacheds-core</artifactId>
  233. <version>${apacheds.version}</version>
  234. <scope>test</scope>
  235. </dependency>
  236. <dependency>
  237. <groupId>org.apache.directory.server</groupId>
  238. <artifactId>apacheds-protocol-ldap</artifactId>
  239. <version>${apacheds.version}</version>
  240. <scope>test</scope>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.apache.directory.server</groupId>
  244. <artifactId>apacheds-ldif-partition</artifactId>
  245. <version>${apacheds.version}</version>
  246. <scope>test</scope>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.apache.directory.api</groupId>
  250. <artifactId>api-ldap-codec-core</artifactId>
  251. <version>${ldap-api.version}</version>
  252. <scope>test</scope>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.apache.directory.api</groupId>
  256. <artifactId>api-ldap-model</artifactId>
  257. <version>${ldap-api.version}</version>
  258. <scope>test</scope>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.apache.directory.server</groupId>
  262. <artifactId>apacheds-server-integ</artifactId>
  263. <version>${apacheds.version}</version>
  264. <scope>test</scope>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.apache.directory.server</groupId>
  268. <artifactId>apacheds-core-integ</artifactId>
  269. <version>${apacheds.version}</version>
  270. <scope>test</scope>
  271. </dependency>
  272. </dependencies>
  273. <build>
  274. <resources>
  275. <resource>
  276. <directory>${project.basedir}/src/main/resources</directory>
  277. </resource>
  278. <resource>
  279. <!-- Include the properties file to provide the build information. -->
  280. <directory>${project.build.directory}/extra-resources</directory>
  281. <filtering>true</filtering>
  282. </resource>
  283. </resources>
  284. <plugins>
  285. <plugin>
  286. <groupId>org.apache.maven.plugins</groupId>
  287. <artifactId>maven-jar-plugin</artifactId>
  288. <configuration>
  289. <archive>
  290. <manifest>
  291. <mainClass>org.apache.livy.server.Main</mainClass>
  292. </manifest>
  293. </archive>
  294. <outputDirectory>${project.build.directory}/jars</outputDirectory>
  295. </configuration>
  296. </plugin>
  297. <plugin>
  298. <groupId>org.apache.maven.plugins</groupId>
  299. <artifactId>maven-dependency-plugin</artifactId>
  300. <executions>
  301. <execution>
  302. <phase>package</phase>
  303. <goals>
  304. <goal>copy-dependencies</goal>
  305. </goals>
  306. </execution>
  307. </executions>
  308. </plugin>
  309. <plugin>
  310. <groupId>org.apache.maven.plugins</groupId>
  311. <artifactId>maven-antrun-plugin</artifactId>
  312. <executions>
  313. <execution>
  314. <phase>generate-resources</phase>
  315. <configuration>
  316. <!-- Execute the shell script to generate the spark build information. -->
  317. <target>
  318. <exec executable="bash">
  319. <arg value="${project.basedir}/../dev/livy-build-info.sh"/>
  320. <arg value="${project.build.directory}/extra-resources"/>
  321. <arg value="${project.version}"/>
  322. </exec>
  323. </target>
  324. </configuration>
  325. <goals>
  326. <goal>run</goal>
  327. </goals>
  328. </execution>
  329. </executions>
  330. </plugin>
  331. </plugins>
  332. </build>
  333. </project>