pom.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.cloudera.hue.livy</groupId>
  8. <artifactId>livy-main</artifactId>
  9. <relativePath>../pom.xml</relativePath>
  10. <version>3.7.0-SNAPSHOT</version>
  11. </parent>
  12. <artifactId>livy-yarn</artifactId>
  13. <packaging>jar</packaging>
  14. <properties>
  15. <hadoop.version>2.5.0</hadoop.version>
  16. <scala.binary.version>2.10</scala.binary.version>
  17. <scala.macros.version>2.0.1</scala.macros.version>
  18. <scala.version>2.10.3</scala.version>
  19. <PermGen>64m</PermGen>
  20. <MaxPermGen>512m</MaxPermGen>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-common</artifactId>
  26. <version>${hadoop.version}</version>
  27. <exclusions>
  28. <exclusion>
  29. <groupId>javax.servlet</groupId>
  30. <artifactId>servlet-api</artifactId>
  31. </exclusion>
  32. <exclusion>
  33. <groupId>org.mortbay.jetty</groupId>
  34. <artifactId>jetty</artifactId>
  35. </exclusion>
  36. <exclusion>
  37. <groupId>org.mortbay.jetty</groupId>
  38. <artifactId>jetty-util</artifactId>
  39. </exclusion>
  40. <exclusion>
  41. <groupId>org.slf4j</groupId>
  42. <artifactId>slf4j-log4j12</artifactId>
  43. </exclusion>
  44. </exclusions>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.hadoop</groupId>
  48. <artifactId>hadoop-yarn-client</artifactId>
  49. <version>${hadoop.version}</version>
  50. <exclusions>
  51. <exclusion>
  52. <groupId>javax.servlet</groupId>
  53. <artifactId>servlet-api</artifactId>
  54. </exclusion>
  55. </exclusions>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.apache.hadoop</groupId>
  59. <artifactId>hadoop-yarn-api</artifactId>
  60. <version>${hadoop.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.scala-lang</groupId>
  64. <artifactId>scala-library</artifactId>
  65. <version>${scala.version}</version>
  66. </dependency>
  67. <!--
  68. <dependency>
  69. <groupId>org.scalatra</groupId>
  70. <artifactId>scalatra_2.10</artifactId>
  71. <version>2.3.0</version>
  72. <exclusions>
  73. <exclusion>
  74. <groupId>org.scala-lang</groupId>
  75. <artifactId>scala-compiler</artifactId>
  76. </exclusion>
  77. </exclusions>
  78. </dependency>
  79. -->
  80. <dependency>
  81. <groupId>org.eclipse.jetty</groupId>
  82. <artifactId>jetty-webapp</artifactId>
  83. <version>8.1.14.v20131031</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.cloudera.hue.livy</groupId>
  87. <artifactId>livy-repl</artifactId>
  88. <version>${project.version}</version>
  89. <exclusions>
  90. <!--
  91. <exclusion>
  92. <groupId>org.scala-lang</groupId>
  93. <artifactId>scala-compiler</artifactId>
  94. </exclusion>
  95. -->
  96. <exclusion>
  97. <groupId>org.slf4j</groupId>
  98. <artifactId>slf4j-api</artifactId>
  99. </exclusion>
  100. </exclusions>
  101. </dependency>
  102. </dependencies>
  103. <build>
  104. <plugins>
  105. <plugin>
  106. <groupId>org.scala-tools</groupId>
  107. <artifactId>maven-scala-plugin</artifactId>
  108. <version>2.15.2</version>
  109. <executions>
  110. <execution>
  111. <goals>
  112. <goal>compile</goal>
  113. <goal>testCompile</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. <!--
  118. <configuration>
  119. <compilerPlugins>
  120. <compilerPlugin>
  121. <groupId>org.scalamacros</groupId>
  122. <artifactId>paradise_${scala.version}</artifactId>
  123. <version>${scala.macros.version}</version>
  124. </compilerPlugin>
  125. </compilerPlugins>
  126. </configuration>
  127. -->
  128. </plugin>
  129. <plugin>
  130. <artifactId>maven-assembly-plugin</artifactId>
  131. <version>2.4</version>
  132. <executions>
  133. <execution>
  134. <id>make-bundles</id>
  135. <goals>
  136. <goal>single</goal>
  137. </goals>
  138. <phase>package</phase>
  139. <configuration>
  140. <descriptors>
  141. <descriptor>src/main/assembly/dist.xml</descriptor>
  142. </descriptors>
  143. </configuration>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-dependency-plugin</artifactId>
  150. <executions>
  151. <execution>
  152. <id>copy-dependencies</id>
  153. <phase>prepare-package</phase>
  154. <goals>
  155. <goal>copy-dependencies</goal>
  156. </goals>
  157. <configuration>
  158. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  159. <overWriteReleases>false</overWriteReleases>
  160. <overWriteSnapshots>false</overWriteSnapshots>
  161. <overWriteIfNewer>true</overWriteIfNewer>
  162. </configuration>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-jar-plugin</artifactId>
  169. <configuration>
  170. <archive>
  171. <manifest>
  172. <addClasspath>true</addClasspath>
  173. <classpathPrefix>lib/</classpathPrefix>
  174. <mainClass>com.cloudera.hue.livy.yarn.Client</mainClass>
  175. </manifest>
  176. </archive>
  177. </configuration>
  178. </plugin>
  179. </plugins>
  180. </build>
  181. <reporting>
  182. <plugins>
  183. <plugin>
  184. <groupId>org.scala-tools</groupId>
  185. <artifactId>maven-scala-plugin</artifactId>
  186. <configuration>
  187. <scalaVersion>${scala.version}</scalaVersion>
  188. </configuration>
  189. </plugin>
  190. </plugins>
  191. </reporting>
  192. </project>