pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. <dependency>
  68. <groupId>org.eclipse.jetty</groupId>
  69. <artifactId>jetty-webapp</artifactId>
  70. <version>8.1.14.v20131031</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.cloudera.hue.livy</groupId>
  74. <artifactId>livy-core</artifactId>
  75. <version>${project.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.cloudera.hue.livy</groupId>
  79. <artifactId>livy-repl</artifactId>
  80. <version>${project.version}</version>
  81. <exclusions>
  82. <exclusion>
  83. <groupId>org.slf4j</groupId>
  84. <artifactId>slf4j-api</artifactId>
  85. </exclusion>
  86. </exclusions>
  87. </dependency>
  88. </dependencies>
  89. <build>
  90. <plugins>
  91. <plugin>
  92. <groupId>org.scala-tools</groupId>
  93. <artifactId>maven-scala-plugin</artifactId>
  94. <version>2.15.2</version>
  95. <executions>
  96. <execution>
  97. <goals>
  98. <goal>compile</goal>
  99. <goal>testCompile</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. <!--
  104. <configuration>
  105. <compilerPlugins>
  106. <compilerPlugin>
  107. <groupId>org.scalamacros</groupId>
  108. <artifactId>paradise_${scala.version}</artifactId>
  109. <version>${scala.macros.version}</version>
  110. </compilerPlugin>
  111. </compilerPlugins>
  112. </configuration>
  113. -->
  114. </plugin>
  115. <plugin>
  116. <artifactId>maven-assembly-plugin</artifactId>
  117. <version>2.4</version>
  118. <executions>
  119. <execution>
  120. <id>make-bundles</id>
  121. <goals>
  122. <goal>single</goal>
  123. </goals>
  124. <phase>package</phase>
  125. <configuration>
  126. <descriptors>
  127. <descriptor>src/main/assembly/dist.xml</descriptor>
  128. </descriptors>
  129. </configuration>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-dependency-plugin</artifactId>
  136. <executions>
  137. <execution>
  138. <id>copy-dependencies</id>
  139. <phase>prepare-package</phase>
  140. <goals>
  141. <goal>copy-dependencies</goal>
  142. </goals>
  143. <configuration>
  144. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  145. <overWriteReleases>false</overWriteReleases>
  146. <overWriteSnapshots>false</overWriteSnapshots>
  147. <overWriteIfNewer>true</overWriteIfNewer>
  148. </configuration>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-jar-plugin</artifactId>
  155. <configuration>
  156. <archive>
  157. <manifest>
  158. <addClasspath>true</addClasspath>
  159. <classpathPrefix>lib/</classpathPrefix>
  160. <mainClass>com.cloudera.hue.livy.yarn.Client</mainClass>
  161. </manifest>
  162. </archive>
  163. </configuration>
  164. </plugin>
  165. </plugins>
  166. </build>
  167. <reporting>
  168. <plugins>
  169. <plugin>
  170. <groupId>org.scala-tools</groupId>
  171. <artifactId>maven-scala-plugin</artifactId>
  172. <configuration>
  173. <scalaVersion>${scala.version}</scalaVersion>
  174. </configuration>
  175. </plugin>
  176. </plugins>
  177. </reporting>
  178. </project>