pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. </parent>
  25. <groupId>org.apache.livy</groupId>
  26. <artifactId>livy-client-http</artifactId>
  27. <version>0.8.0-incubating-SNAPSHOT</version>
  28. <packaging>jar</packaging>
  29. <dependencies>
  30. <dependency>
  31. <groupId>org.apache.livy</groupId>
  32. <artifactId>livy-api</artifactId>
  33. <version>${project.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.apache.livy</groupId>
  37. <artifactId>livy-client-common</artifactId>
  38. <version>${project.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.livy</groupId>
  42. <artifactId>livy-test-lib</artifactId>
  43. <version>${project.version}</version>
  44. <scope>test</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.livy</groupId>
  48. <artifactId>livy-core_${scala.binary.version}</artifactId>
  49. <version>${project.version}</version>
  50. <type>test-jar</type>
  51. <scope>test</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.fasterxml.jackson.core</groupId>
  55. <artifactId>jackson-core</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.fasterxml.jackson.core</groupId>
  59. <artifactId>jackson-databind</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.httpcomponents</groupId>
  63. <artifactId>httpclient</artifactId>
  64. <version>${httpclient.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.httpcomponents</groupId>
  68. <artifactId>httpcore</artifactId>
  69. <version>${httpcore.version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.httpcomponents</groupId>
  73. <artifactId>httpmime</artifactId>
  74. <version>4.5.1</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.livy</groupId>
  78. <artifactId>livy-server</artifactId>
  79. <version>${project.version}</version>
  80. <scope>test</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.spark</groupId>
  84. <artifactId>spark-core_${scala.binary.version}</artifactId>
  85. <scope>test</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.spark</groupId>
  89. <artifactId>spark-sql_${scala.binary.version}</artifactId>
  90. <scope>test</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.spark</groupId>
  94. <artifactId>spark-hive_${scala.binary.version}</artifactId>
  95. <scope>test</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.spark</groupId>
  99. <artifactId>spark-streaming_${scala.binary.version}</artifactId>
  100. <scope>test</scope>
  101. </dependency>
  102. </dependencies>
  103. <build>
  104. <plugins>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-shade-plugin</artifactId>
  108. <executions>
  109. <execution>
  110. <id>shade</id>
  111. <phase>package</phase>
  112. <goals>
  113. <goal>shade</goal>
  114. </goals>
  115. <configuration>
  116. <shadedArtifactAttached>false</shadedArtifactAttached>
  117. <artifactSet>
  118. <includes>
  119. <include>*:*</include>
  120. </includes>
  121. <excludes>
  122. <exclude>org.apache.livy:livy-api</exclude>
  123. </excludes>
  124. </artifactSet>
  125. <filters>
  126. <!-- Some artifacts (e.g. kryo) bundle jars inside them, for some reason. -->
  127. <filter>
  128. <artifact>*:*</artifact>
  129. <excludes>
  130. <exclude>*.jar</exclude>
  131. <exclude>META-INF/maven/**</exclude>
  132. </excludes>
  133. </filter>
  134. </filters>
  135. <relocations>
  136. <relocation>
  137. <pattern>com.esotericsoftware</pattern>
  138. <shadedPattern>org.apache.livy.shaded.kryo</shadedPattern>
  139. </relocation>
  140. <relocation>
  141. <pattern>com.fasterxml.jackson</pattern>
  142. <shadedPattern>org.apache.livy.shaded.jackson</shadedPattern>
  143. </relocation>
  144. <relocation>
  145. <pattern>org.apache.commons</pattern>
  146. <shadedPattern>org.apache.livy.shaded.apache.commons</shadedPattern>
  147. </relocation>
  148. <relocation>
  149. <pattern>org.apache.http</pattern>
  150. <shadedPattern>org.apache.livy.shaded.apache.http</shadedPattern>
  151. </relocation>
  152. </relocations>
  153. </configuration>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.scalatest</groupId>
  159. <artifactId>scalatest-maven-plugin</artifactId>
  160. </plugin>
  161. </plugins>
  162. </build>
  163. </project>