pom.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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>multi-scala-project-root</artifactId>
  25. <relativePath>../scala/pom.xml</relativePath>
  26. <version>0.8.0-incubating-SNAPSHOT</version>
  27. </parent>
  28. <artifactId>livy-repl-parent</artifactId>
  29. <version>0.8.0-incubating-SNAPSHOT</version>
  30. <packaging>pom</packaging>
  31. <dependencies>
  32. <dependency>
  33. <groupId>org.apache.livy</groupId>
  34. <artifactId>livy-rsc</artifactId>
  35. <version>${project.version}</version>
  36. <scope>provided</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.livy</groupId>
  40. <artifactId>livy-core_${scala.binary.version}</artifactId>
  41. <version>${project.version}</version>
  42. <exclusions>
  43. <!-- Provided and shaded by livy-rsc already. -->
  44. <exclusion>
  45. <groupId>org.apache.livy</groupId>
  46. <artifactId>livy-client-common</artifactId>
  47. </exclusion>
  48. </exclusions>
  49. </dependency>
  50. <dependency>
  51. <groupId>${project.groupId}</groupId>
  52. <artifactId>livy-core_${scala.binary.version}</artifactId>
  53. <version>${project.version}</version>
  54. <type>test-jar</type>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.fasterxml.jackson.core</groupId>
  59. <artifactId>jackson-core</artifactId>
  60. <scope>provided</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.fasterxml.jackson.module</groupId>
  64. <artifactId>jackson-module-scala_${scala.binary.version}</artifactId>
  65. <scope>provided</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.fasterxml.jackson.core</groupId>
  69. <artifactId>jackson-databind</artifactId>
  70. <scope>provided</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>commons-codec</groupId>
  74. <artifactId>commons-codec</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>log4j</groupId>
  78. <artifactId>log4j</artifactId>
  79. <scope>provided</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.spark</groupId>
  83. <artifactId>spark-repl_${scala.binary.version}</artifactId>
  84. <scope>provided</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.spark</groupId>
  88. <artifactId>spark-core_${scala.binary.version}</artifactId>
  89. <version>${spark.version}</version>
  90. <scope>provided</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.spark</groupId>
  94. <artifactId>spark-hive_${scala.binary.version}</artifactId>
  95. <scope>provided</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.json4s</groupId>
  99. <artifactId>json4s-ast_${scala.binary.version}</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.json4s</groupId>
  103. <artifactId>json4s-core_${scala.binary.version}</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.json4s</groupId>
  107. <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.scala-lang</groupId>
  111. <artifactId>scala-compiler</artifactId>
  112. <scope>provided</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.scala-lang</groupId>
  116. <artifactId>scala-library</artifactId>
  117. <scope>provided</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.scala-lang</groupId>
  121. <artifactId>scala-reflect</artifactId>
  122. <scope>provided</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.slf4j</groupId>
  126. <artifactId>slf4j-api</artifactId>
  127. <scope>provided</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>net.sf.py4j</groupId>
  131. <artifactId>py4j</artifactId>
  132. <scope>provided</scope>
  133. </dependency>
  134. </dependencies>
  135. <build>
  136. <plugins>
  137. <plugin>
  138. <groupId>org.apache.maven.plugins</groupId>
  139. <artifactId>maven-shade-plugin</artifactId>
  140. <executions>
  141. <execution>
  142. <id>shade</id>
  143. <phase>package</phase>
  144. <goals>
  145. <goal>shade</goal>
  146. </goals>
  147. <configuration>
  148. <shadedArtifactAttached>false</shadedArtifactAttached>
  149. <artifactSet>
  150. <includes>
  151. <include>org.json4s:json4s-ast_${scala.binary.version}</include>
  152. <include>org.json4s:json4s-core_${scala.binary.version}</include>
  153. <include>org.json4s:json4s-jackson_${scala.binary.version}</include>
  154. <include>org.json4s:json4s-scalap_${scala.binary.version}</include>
  155. </includes>
  156. </artifactSet>
  157. <filters>
  158. <filter>
  159. <artifact>*:*</artifact>
  160. <excludes>
  161. <exclude>*.jar</exclude>
  162. <exclude>META-INF/maven/**</exclude>
  163. </excludes>
  164. </filter>
  165. </filters>
  166. <relocations>
  167. <relocation>
  168. <pattern>org.json4s</pattern>
  169. <shadedPattern>org.apache.livy.shaded.json4s</shadedPattern>
  170. </relocation>
  171. </relocations>
  172. </configuration>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. <plugin>
  177. <groupId>org.apache.maven.plugins</groupId>
  178. <artifactId>maven-dependency-plugin</artifactId>
  179. <executions>
  180. <execution>
  181. <phase>package</phase>
  182. <goals>
  183. <goal>copy-dependencies</goal>
  184. </goals>
  185. <configuration>
  186. <excludeArtifactIds>
  187. json4s-ast_${scala.binary.version},
  188. json4s-core_${scala.binary.version},
  189. json4s-jackson_${scala.binary.version},
  190. json4s-scalap_${scala.binary.version},
  191. scala-xml_${scala.binary.version},
  192. paranamer,
  193. scalap
  194. </excludeArtifactIds>
  195. </configuration>
  196. </execution>
  197. </executions>
  198. </plugin>
  199. <plugin>
  200. <groupId>org.apache.maven.plugins</groupId>
  201. <artifactId>maven-jar-plugin</artifactId>
  202. <configuration>
  203. <outputDirectory>${project.build.directory}/jars</outputDirectory>
  204. </configuration>
  205. </plugin>
  206. <plugin>
  207. <groupId>org.scalatest</groupId>
  208. <artifactId>scalatest-maven-plugin</artifactId>
  209. <configuration>
  210. <systemProperties>
  211. <spark.app.name>Livy</spark.app.name>
  212. <spark.master>local</spark.master>
  213. </systemProperties>
  214. </configuration>
  215. </plugin>
  216. </plugins>
  217. </build>
  218. </project>