pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. -->
  17. <project xmlns="http://maven.apache.org/POM/4.0.0"
  18. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <parent>
  22. <groupId>com.cloudera.hue.livy</groupId>
  23. <artifactId>livy-main</artifactId>
  24. <relativePath>../pom.xml</relativePath>
  25. <version>0.2.0-SNAPSHOT</version>
  26. </parent>
  27. <artifactId>livy-server_2.10</artifactId>
  28. <version>0.2.0-SNAPSHOT</version>
  29. <packaging>jar</packaging>
  30. <dependencies>
  31. <dependency>
  32. <groupId>org.apache.httpcomponents</groupId>
  33. <artifactId>httpclient</artifactId>
  34. <version>4.3.3</version>
  35. <scope>test</scope>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.httpcomponents</groupId>
  39. <artifactId>httpcore</artifactId>
  40. <version>4.3.3</version>
  41. <scope>test</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.scalatra</groupId>
  45. <artifactId>scalatra-scalatest_${scala.binary.version}</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.scalatra</groupId>
  50. <artifactId>scalatra-metrics_${scala.binary.version}</artifactId>
  51. <version>2.4.0.M3</version>
  52. <exclusions>
  53. <exclusion>
  54. <groupId>com.typesafe.akka</groupId>
  55. <artifactId>akka-actor_${scala.binary.version}</artifactId>
  56. </exclusion>
  57. </exclusions>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.spark</groupId>
  61. <artifactId>spark-assembly_${scala.binary.version}</artifactId>
  62. <version>${spark.version}</version>
  63. <scope>test</scope>
  64. <exclusions>
  65. <exclusion>
  66. <groupId>org.apache.httpcomponents</groupId>
  67. <artifactId>httpclient</artifactId>
  68. </exclusion>
  69. <exclusion>
  70. <groupId>org.apache.httpcomponents</groupId>
  71. <artifactId>httpcore</artifactId>
  72. </exclusion>
  73. </exclusions>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.cloudera.hue.livy</groupId>
  77. <artifactId>livy-core_${scala.binary.version}</artifactId>
  78. <version>${project.version}</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>com.cloudera.hue.livy</groupId>
  82. <artifactId>livy-repl_${scala.binary.version}</artifactId>
  83. <version>${project.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.cloudera.hue.livy</groupId>
  87. <artifactId>livy-yarn_${scala.binary.version}</artifactId>
  88. <version>${project.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.eclipse.jetty</groupId>
  92. <artifactId>jetty-servlet</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.eclipse.jetty</groupId>
  96. <artifactId>jetty-server</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.eclipse.jetty</groupId>
  100. <artifactId>jetty-plus</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.eclipse.jetty</groupId>
  104. <artifactId>jetty-util</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.eclipse.jetty</groupId>
  108. <artifactId>jetty-http</artifactId>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.json4s</groupId>
  112. <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>net.databinder.dispatch</groupId>
  116. <artifactId>dispatch-core_${scala.binary.version}</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>net.databinder.dispatch</groupId>
  120. <artifactId>dispatch-json4s-jackson_${scala.binary.version}</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.apache.hadoop</groupId>
  124. <artifactId>hadoop-common</artifactId>
  125. <scope>provided</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.hadoop</groupId>
  129. <artifactId>hadoop-client</artifactId>
  130. <scope>provided</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.apache.hadoop</groupId>
  134. <artifactId>hadoop-yarn-client</artifactId>
  135. <scope>provided</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.apache.hadoop</groupId>
  139. <artifactId>hadoop-yarn-api</artifactId>
  140. <scope>provided</scope>
  141. </dependency>
  142. </dependencies>
  143. <build>
  144. <plugins>
  145. <plugin>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-jar-plugin</artifactId>
  148. <configuration>
  149. <archive>
  150. <manifest>
  151. <addClasspath>true</addClasspath>
  152. <classpathPrefix>lib/</classpathPrefix>
  153. <mainClass>com.cloudera.hue.livy.repl.Main</mainClass>
  154. </manifest>
  155. </archive>
  156. </configuration>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-surefire-plugin</artifactId>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.scalatest</groupId>
  164. <artifactId>scalatest-maven-plugin</artifactId>
  165. <version>1.0</version>
  166. <configuration>
  167. <systemProperties>
  168. <spark.master>local</spark.master>
  169. <spark.driver.allowMultipleContexts>true</spark.driver.allowMultipleContexts>
  170. <spark.ui.enabled>false</spark.ui.enabled>
  171. <settings.usejavacp.value>true</settings.usejavacp.value>
  172. <livy.repl.jar>../livy-repl/target/livy-repl_${scala.binary.version}-${project.version}.jar</livy.repl.jar>
  173. </systemProperties>
  174. </configuration>
  175. </plugin>
  176. </plugins>
  177. </build>
  178. </project>