pom.xml 7.3 KB

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