pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. <groupId>org.apache.livy</groupId>
  22. <artifactId>livy-main</artifactId>
  23. <version>0.8.0-incubating-SNAPSHOT</version>
  24. <relativePath>../pom.xml</relativePath>
  25. </parent>
  26. <groupId>org.apache.livy</groupId>
  27. <artifactId>livy-rsc</artifactId>
  28. <properties>
  29. <copyright.header>${asf.copyright.header}</copyright.header>
  30. </properties>
  31. <dependencies>
  32. <dependency>
  33. <groupId>org.apache.livy</groupId>
  34. <artifactId>livy-api</artifactId>
  35. <version>${project.version}</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.livy</groupId>
  39. <artifactId>livy-client-common</artifactId>
  40. <version>${project.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.apache.livy</groupId>
  44. <artifactId>livy-test-lib</artifactId>
  45. <version>${project.version}</version>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.livy</groupId>
  50. <artifactId>livy-core_${scala.binary.version}</artifactId>
  51. <version>${project.version}</version>
  52. <!-- Or it will conflict with repl jars -->
  53. <scope>provided</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.esotericsoftware</groupId>
  57. <artifactId>kryo</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>io.netty</groupId>
  61. <artifactId>netty-all</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.spark</groupId>
  65. <artifactId>spark-launcher_${scala.binary.version}</artifactId>
  66. <exclusions>
  67. <exclusion>
  68. <groupId>org.scalatest</groupId>
  69. <artifactId>scalatest_${scala.binary.version}</artifactId>
  70. </exclusion>
  71. <exclusion>
  72. <groupId>org.apache.spark</groupId>
  73. <artifactId>spark-tags_${scala.binary.version}</artifactId>
  74. </exclusion>
  75. </exclusions>
  76. </dependency>
  77. <!-- Needed by Spark but excluded in the Livy root pom. -->
  78. <dependency>
  79. <groupId>javax.servlet</groupId>
  80. <artifactId>javax.servlet-api</artifactId>
  81. <scope>provided</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>log4j</groupId>
  85. <artifactId>log4j</artifactId>
  86. <scope>provided</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.apache.spark</groupId>
  90. <artifactId>spark-core_${scala.binary.version}</artifactId>
  91. <scope>provided</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.apache.spark</groupId>
  95. <artifactId>spark-hive_${scala.binary.version}</artifactId>
  96. <scope>provided</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.spark</groupId>
  100. <artifactId>spark-sql_${scala.binary.version}</artifactId>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.apache.spark</groupId>
  105. <artifactId>spark-streaming_${scala.binary.version}</artifactId>
  106. <scope>provided</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.hadoop</groupId>
  110. <artifactId>hadoop-common</artifactId>
  111. <scope>provided</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.slf4j</groupId>
  115. <artifactId>slf4j-api</artifactId>
  116. <scope>provided</scope>
  117. </dependency>
  118. </dependencies>
  119. <build>
  120. <plugins>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-shade-plugin</artifactId>
  124. <executions>
  125. <execution>
  126. <id>shade</id>
  127. <phase>package</phase>
  128. <goals>
  129. <goal>shade</goal>
  130. </goals>
  131. <configuration>
  132. <shadedArtifactAttached>false</shadedArtifactAttached>
  133. <artifactSet>
  134. <includes>
  135. <include>org.apache.livy:livy-client-common</include>
  136. <include>com.esotericsoftware:kryo</include>
  137. <include>com.esotericsoftware:minlog</include>
  138. <include>com.esotericsoftware:reflectasm</include>
  139. </includes>
  140. </artifactSet>
  141. <filters>
  142. <!-- Some artifacts (e.g. kryo) bundle jars inside them, for some reason. -->
  143. <filter>
  144. <artifact>*:*</artifact>
  145. <excludes>
  146. <exclude>*.jar</exclude>
  147. <exclude>META-INF/maven/**</exclude>
  148. </excludes>
  149. </filter>
  150. </filters>
  151. <relocations>
  152. <relocation>
  153. <pattern>com.esotericsoftware</pattern>
  154. <shadedPattern>org.apache.livy.shaded.kryo</shadedPattern>
  155. </relocation>
  156. </relocations>
  157. </configuration>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-dependency-plugin</artifactId>
  164. <executions>
  165. <execution>
  166. <phase>package</phase>
  167. <goals>
  168. <goal>copy-dependencies</goal>
  169. </goals>
  170. <configuration>
  171. <excludeArtifactIds>
  172. livy-client-common,
  173. kryo,
  174. spark-launcher_${scala.binary.version},
  175. </excludeArtifactIds>
  176. <outputDirectory>${project.build.directory}/jars</outputDirectory>
  177. </configuration>
  178. </execution>
  179. <execution>
  180. <id>copy-rsc-jar</id>
  181. <phase>package</phase>
  182. <goals>
  183. <goal>copy</goal>
  184. </goals>
  185. <configuration>
  186. <artifactItems>
  187. <artifactItem>
  188. <groupId>org.apache.livy</groupId>
  189. <artifactId>livy-rsc</artifactId>
  190. <version>${project.version}</version>
  191. <type>jar</type>
  192. <overWrite>true</overWrite>
  193. <outputDirectory>${project.build.directory}/jars</outputDirectory>
  194. </artifactItem>
  195. </artifactItems>
  196. </configuration>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. </plugins>
  201. </build>
  202. </project>