pom.xml 6.3 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. <PermGen>64m</PermGen>
  16. <MaxPermGen>512m</MaxPermGen>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.apache.spark</groupId>
  21. <artifactId>spark-repl_2.10</artifactId>
  22. <version>${spark.version}</version>
  23. <exclusions>
  24. <exclusion>
  25. <groupId>org.eclipse.jetty</groupId>
  26. <artifactId>jetty-server</artifactId>
  27. </exclusion>
  28. </exclusions>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.json4s</groupId>
  32. <artifactId>json4s-jackson_2.10</artifactId>
  33. <version>${json4s.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.scalatra</groupId>
  37. <artifactId>scalatra_2.10</artifactId>
  38. <version>${scalatra.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.scalatra</groupId>
  42. <artifactId>scalatra-json_2.10</artifactId>
  43. <version>${scalatra.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.scalatra</groupId>
  47. <artifactId>scalatra-scalatest_2.10</artifactId>
  48. <version>${scalatra.version}</version>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-yarn-client</artifactId>
  54. <version>${hadoop.version}</version>
  55. <scope>provided</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.apache.hadoop</groupId>
  59. <artifactId>hadoop-yarn-api</artifactId>
  60. <version>${hadoop.version}</version>
  61. <scope>provided</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.cloudera.hue.livy</groupId>
  65. <artifactId>livy-core</artifactId>
  66. <version>${project.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>ch.qos.logback</groupId>
  70. <artifactId>logback-access</artifactId>
  71. <version>${logback.version}</version>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <plugins>
  76. <plugin>
  77. <groupId>org.scala-tools</groupId>
  78. <artifactId>maven-scala-plugin</artifactId>
  79. <version>2.15.2</version>
  80. <executions>
  81. <execution>
  82. <goals>
  83. <goal>compile</goal>
  84. <goal>testCompile</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-dependency-plugin</artifactId>
  92. <version>2.9</version>
  93. <executions>
  94. <execution>
  95. <id>copy-dependencies</id>
  96. <phase>prepare-package</phase>
  97. <goals>
  98. <goal>copy-dependencies</goal>
  99. </goals>
  100. <configuration>
  101. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  102. <overWriteReleases>false</overWriteReleases>
  103. <overWriteSnapshots>false</overWriteSnapshots>
  104. <overWriteIfNewer>true</overWriteIfNewer>
  105. </configuration>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-jar-plugin</artifactId>
  112. <version>2.5</version>
  113. <configuration>
  114. <archive>
  115. <manifest>
  116. <addClasspath>true</addClasspath>
  117. <classpathPrefix>lib/</classpathPrefix>
  118. <mainClass>com.cloudera.hue.livy.repl.Main</mainClass>
  119. </manifest>
  120. </archive>
  121. </configuration>
  122. </plugin>
  123. <!-- disable surefire -->
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-surefire-plugin</artifactId>
  127. <version>2.7</version>
  128. <configuration>
  129. <skipTests>true</skipTests>
  130. </configuration>
  131. </plugin>
  132. <!-- enable scalatest -->
  133. <plugin>
  134. <groupId>org.scalatest</groupId>
  135. <artifactId>scalatest-maven-plugin</artifactId>
  136. <version>1.0</version>
  137. <configuration>
  138. <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
  139. <junitxml>.</junitxml>
  140. <filereports>WDF TestSuite.txt</filereports>
  141. </configuration>
  142. <executions>
  143. <execution>
  144. <id>test</id>
  145. <goals>
  146. <goal>test</goal>
  147. </goals>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. </plugins>
  152. </build>
  153. <reporting>
  154. <plugins>
  155. <plugin>
  156. <groupId>org.scala-tools</groupId>
  157. <artifactId>maven-scala-plugin</artifactId>
  158. <configuration>
  159. <scalaVersion>${scala.version}</scalaVersion>
  160. </configuration>
  161. </plugin>
  162. </plugins>
  163. </reporting>
  164. </project>