pom.xml 6.4 KB

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