pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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.sparker</groupId>
  8. <artifactId>sparker-main</artifactId>
  9. <relativePath>../pom.xml</relativePath>
  10. <version>3.7.0-SNAPSHOT</version>
  11. </parent>
  12. <artifactId>sparker-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. </dependency>
  52. <dependency>
  53. <groupId>org.apache.hadoop</groupId>
  54. <artifactId>hadoop-yarn-api</artifactId>
  55. <version>${hadoop.version}</version>
  56. </dependency>
  57. </dependencies>
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.scala-tools</groupId>
  62. <artifactId>maven-scala-plugin</artifactId>
  63. <version>2.15.2</version>
  64. <executions>
  65. <execution>
  66. <goals>
  67. <goal>compile</goal>
  68. <goal>testCompile</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. <configuration>
  73. <!-- The following plugin is required to use quasiquotes in Scala 2.10 and is used
  74. by Spark SQL for code generation. -->
  75. <compilerPlugins>
  76. <compilerPlugin>
  77. <groupId>org.scalamacros</groupId>
  78. <artifactId>paradise_${scala.version}</artifactId>
  79. <version>${scala.macros.version}</version>
  80. </compilerPlugin>
  81. </compilerPlugins>
  82. </configuration>
  83. </plugin>
  84. <!--
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-dependency-plugin</artifactId>
  88. <version>2.9</version>
  89. <executions>
  90. <execution>
  91. <id>copy-dependencies</id>
  92. <phase>prepare-package</phase>
  93. <goals>
  94. <goal>copy-dependencies</goal>
  95. </goals>
  96. <configuration>
  97. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  98. <overWriteReleases>false</overWriteReleases>
  99. <overWriteSnapshots>false</overWriteSnapshots>
  100. <overWriteIfNewer>true</overWriteIfNewer>
  101. </configuration>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-jar-plugin</artifactId>
  108. <version>2.5</version>
  109. <configuration>
  110. <archive>
  111. <manifest>
  112. <addClasspath>true</addClasspath>
  113. <classpathPrefix>lib/</classpathPrefix>
  114. <mainClass>com.cloudera.hue.sparker.repl.Main</mainClass>
  115. </manifest>
  116. </archive>
  117. </configuration>
  118. </plugin>
  119. -->
  120. <plugin>
  121. <artifactId>maven-assembly-plugin</artifactId>
  122. <version>2.4</version>
  123. <configuration>
  124. <descriptor>src/main/assembly/dist.xml</descriptor>
  125. </configuration>
  126. </plugin>
  127. <!--
  128. <plugin>
  129. <groupId>org.apache.maven.plugins</groupId>
  130. <artifactId>maven-shade-plugin</artifactId>
  131. <version>1.6</version>
  132. <configuration>
  133. <createDependencyReducedPom>true</createDependencyReducedPom>
  134. <filters>
  135. <filter>
  136. <artifact>*:*</artifact>
  137. <excludes>
  138. <exclude>META-INF/*.SF</exclude>
  139. <exclude>META-INF/*.DSA</exclude>
  140. <exclude>META-INF/*.RSA</exclude>
  141. </excludes>
  142. </filter>
  143. </filters>
  144. </configuration>
  145. <executions>
  146. <execution>
  147. <phase>package</phase>
  148. <goals>
  149. <goal>shade</goal>
  150. </goals>
  151. <configuration>
  152. <transformers>
  153. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  154. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  155. <mainClass>com.cloudera.hue.sparker.server.SparkerApp</mainClass>
  156. </transformer>
  157. </transformers>
  158. </configuration>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. -->
  163. </plugins>
  164. </build>
  165. <reporting>
  166. <plugins>
  167. <plugin>
  168. <groupId>org.scala-tools</groupId>
  169. <artifactId>maven-scala-plugin</artifactId>
  170. <configuration>
  171. <scalaVersion>${scala.version}</scalaVersion>
  172. </configuration>
  173. </plugin>
  174. </plugins>
  175. </reporting>
  176. </project>