pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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-repl</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. <scalatra.version>2.2.1</scalatra.version>
  20. <spark.version>1.1.0</spark.version>
  21. <PermGen>64m</PermGen>
  22. <MaxPermGen>512m</MaxPermGen>
  23. </properties>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.apache.spark</groupId>
  27. <artifactId>spark-repl_2.10</artifactId>
  28. <version>${spark.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.json4s</groupId>
  32. <artifactId>json4s-jackson_2.10</artifactId>
  33. <version>3.2.11</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.scalatra</groupId>
  37. <artifactId>scalatra_2.10</artifactId>
  38. <version>${scalatra.version}</version>
  39. <scope>compile</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.scalatra</groupId>
  43. <artifactId>scalatra-json_2.10</artifactId>
  44. <version>${scalatra.version}</version>
  45. <scope>compile</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.hadoop</groupId>
  49. <artifactId>hadoop-yarn-client</artifactId>
  50. <version>${hadoop.version}</version>
  51. <scope>provided</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.hadoop</groupId>
  55. <artifactId>hadoop-yarn-api</artifactId>
  56. <version>${hadoop.version}</version>
  57. <scope>provided</scope>
  58. </dependency>
  59. </dependencies>
  60. <build>
  61. <plugins>
  62. <plugin>
  63. <groupId>org.scala-tools</groupId>
  64. <artifactId>maven-scala-plugin</artifactId>
  65. <version>2.15.2</version>
  66. <executions>
  67. <execution>
  68. <goals>
  69. <goal>compile</goal>
  70. <goal>testCompile</goal>
  71. </goals>
  72. </execution>
  73. </executions>
  74. </plugin>
  75. <!--
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-dependency-plugin</artifactId>
  79. <version>2.9</version>
  80. <executions>
  81. <execution>
  82. <id>copy-dependencies</id>
  83. <phase>prepare-package</phase>
  84. <goals>
  85. <goal>copy-dependencies</goal>
  86. </goals>
  87. <configuration>
  88. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  89. <overWriteReleases>false</overWriteReleases>
  90. <overWriteSnapshots>false</overWriteSnapshots>
  91. <overWriteIfNewer>true</overWriteIfNewer>
  92. </configuration>
  93. </execution>
  94. </executions>
  95. </plugin>
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-jar-plugin</artifactId>
  99. <version>2.5</version>
  100. <configuration>
  101. <archive>
  102. <manifest>
  103. <addClasspath>true</addClasspath>
  104. <classpathPrefix>lib/</classpathPrefix>
  105. <mainClass>com.cloudera.hue.livy.repl.Main</mainClass>
  106. </manifest>
  107. </archive>
  108. </configuration>
  109. </plugin>
  110. -->
  111. <plugin>
  112. <artifactId>maven-assembly-plugin</artifactId>
  113. <version>2.4</version>
  114. <configuration>
  115. <descriptor>src/main/assembly/dist.xml</descriptor>
  116. </configuration>
  117. </plugin>
  118. <!--
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-shade-plugin</artifactId>
  122. <version>1.6</version>
  123. <configuration>
  124. <createDependencyReducedPom>true</createDependencyReducedPom>
  125. <filters>
  126. <filter>
  127. <artifact>*:*</artifact>
  128. <excludes>
  129. <exclude>META-INF/*.SF</exclude>
  130. <exclude>META-INF/*.DSA</exclude>
  131. <exclude>META-INF/*.RSA</exclude>
  132. </excludes>
  133. </filter>
  134. </filters>
  135. </configuration>
  136. <executions>
  137. <execution>
  138. <phase>package</phase>
  139. <goals>
  140. <goal>shade</goal>
  141. </goals>
  142. <configuration>
  143. <transformers>
  144. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  145. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  146. <mainClass>com.cloudera.hue.livy.server.LivyApp</mainClass>
  147. </transformer>
  148. </transformers>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. -->
  154. </plugins>
  155. </build>
  156. <reporting>
  157. <plugins>
  158. <plugin>
  159. <groupId>org.scala-tools</groupId>
  160. <artifactId>maven-scala-plugin</artifactId>
  161. <configuration>
  162. <scalaVersion>${scala.version}</scalaVersion>
  163. </configuration>
  164. </plugin>
  165. </plugins>
  166. </reporting>
  167. </project>