pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. <!--
  28. <exclusions>
  29. <exclusion>
  30. <groupId>javax.servlet</groupId>
  31. <artifactId>servlet-api</artifactId>
  32. </exclusion>
  33. <exclusion>
  34. <groupId>org.mortbay.jetty</groupId>
  35. <artifactId>jetty</artifactId>
  36. </exclusion>
  37. <exclusion>
  38. <groupId>org.mortbay.jetty</groupId>
  39. <artifactId>jetty-util</artifactId>
  40. </exclusion>
  41. <exclusion>
  42. <groupId>org.slf4j</groupId>
  43. <artifactId>slf4j-api</artifactId>
  44. </exclusion>
  45. </exclusions>
  46. -->
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hadoop</groupId>
  50. <artifactId>hadoop-yarn-client</artifactId>
  51. <version>${hadoop.version}</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.hadoop</groupId>
  55. <artifactId>hadoop-yarn-api</artifactId>
  56. <version>${hadoop.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.scala-lang</groupId>
  60. <artifactId>scala-library</artifactId>
  61. <version>${scala.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.cloudera.hue.livy</groupId>
  65. <artifactId>livy-repl</artifactId>
  66. <version>${project.version}</version>
  67. <!--
  68. <exclusions>
  69. <exclusion>
  70. <groupId>org.scala-lang</groupId>
  71. <artifactId>scala-compiler</artifactId>
  72. </exclusion>
  73. <exclusion>
  74. <groupId>org.slf4j</groupId>
  75. <artifactId>slf4j-api</artifactId>
  76. </exclusion>
  77. </exclusions>
  78. -->
  79. </dependency>
  80. </dependencies>
  81. <build>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.scala-tools</groupId>
  85. <artifactId>maven-scala-plugin</artifactId>
  86. <version>2.15.2</version>
  87. <executions>
  88. <execution>
  89. <goals>
  90. <goal>compile</goal>
  91. <goal>testCompile</goal>
  92. </goals>
  93. </execution>
  94. </executions>
  95. <!--
  96. <configuration>
  97. <compilerPlugins>
  98. <compilerPlugin>
  99. <groupId>org.scalamacros</groupId>
  100. <artifactId>paradise_${scala.version}</artifactId>
  101. <version>${scala.macros.version}</version>
  102. </compilerPlugin>
  103. </compilerPlugins>
  104. </configuration>
  105. -->
  106. </plugin>
  107. <plugin>
  108. <artifactId>maven-assembly-plugin</artifactId>
  109. <version>2.4</version>
  110. <executions>
  111. <execution>
  112. <id>make-bundles</id>
  113. <goals>
  114. <goal>single</goal>
  115. </goals>
  116. <phase>package</phase>
  117. <configuration>
  118. <descriptors>
  119. <descriptor>src/main/assembly/dist.xml</descriptor>
  120. </descriptors>
  121. </configuration>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-dependency-plugin</artifactId>
  128. <executions>
  129. <execution>
  130. <id>copy-dependencies</id>
  131. <phase>prepare-package</phase>
  132. <goals>
  133. <goal>copy-dependencies</goal>
  134. </goals>
  135. <configuration>
  136. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  137. <overWriteReleases>false</overWriteReleases>
  138. <overWriteSnapshots>false</overWriteSnapshots>
  139. <overWriteIfNewer>true</overWriteIfNewer>
  140. </configuration>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. <plugin>
  145. <groupId>org.apache.maven.plugins</groupId>
  146. <artifactId>maven-jar-plugin</artifactId>
  147. <configuration>
  148. <archive>
  149. <manifest>
  150. <addClasspath>true</addClasspath>
  151. <classpathPrefix>lib/</classpathPrefix>
  152. <mainClass>com.cloudera.hue.livy.yarn.Client</mainClass>
  153. </manifest>
  154. </archive>
  155. </configuration>
  156. </plugin>
  157. </plugins>
  158. </build>
  159. <reporting>
  160. <plugins>
  161. <plugin>
  162. <groupId>org.scala-tools</groupId>
  163. <artifactId>maven-scala-plugin</artifactId>
  164. <configuration>
  165. <scalaVersion>${scala.version}</scalaVersion>
  166. </configuration>
  167. </plugin>
  168. </plugins>
  169. </reporting>
  170. </project>