pom.xml 5.5 KB

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