pom.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. <scala.version>2.10.4</scala.version>
  16. <scala.binary.version>2.10</scala.binary.version>
  17. <scala.macros.version>2.0.1</scala.macros.version>
  18. <spark.version>1.1.0-cdh5.2.0-SNAPSHOT</spark.version>
  19. <scalatra.version>2.2.1</scalatra.version>
  20. <PermGen>64m</PermGen>
  21. <MaxPermGen>512m</MaxPermGen>
  22. </properties>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.apache.spark</groupId>
  26. <artifactId>spark-repl_2.10</artifactId>
  27. <version>${spark.version}</version>
  28. <!--
  29. <exclusions>
  30. <exclusion>
  31. <groupId>commons-beanutils</groupId>
  32. <artifactId>commons-beanutils</artifactId>
  33. </exclusion>
  34. </exclusions>
  35. -->
  36. </dependency>
  37. <!--
  38. <dependency>
  39. <groupId>commons-beanutils</groupId>
  40. <artifactId>commons-beanutils</artifactId>
  41. <version>1.8.0</version>
  42. </dependency>
  43. -->
  44. <dependency>
  45. <groupId>org.json4s</groupId>
  46. <artifactId>json4s-core_2.10</artifactId>
  47. <version>3.2.11</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.scalatra</groupId>
  51. <artifactId>scalatra_2.10</artifactId>
  52. <version>${scalatra.version}</version>
  53. <scope>compile</scope>
  54. <!--
  55. <exclusions>
  56. <exclusion>
  57. <groupId>com.typesafe.akka</groupId>
  58. <artifactId>akka-actor_2.10</artifactId>
  59. </exclusion>
  60. </exclusions>
  61. -->
  62. </dependency>
  63. <!--
  64. <dependency>
  65. <groupId>org.scalatra</groupId>
  66. <artifactId>scalatra_2.10</artifactId>
  67. <version>${scalatra.version}</version>
  68. <scope>compile</scope>
  69. </dependency>
  70. -->
  71. </dependencies>
  72. <build>
  73. <plugins>
  74. <!--
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-shade-plugin</artifactId>
  78. <version>1.6</version>
  79. <configuration>
  80. <createDependencyReducedPom>true</createDependencyReducedPom>
  81. <filters>
  82. <filter>
  83. <artifact>*:*</artifact>
  84. <excludes>
  85. <exclude>META-INF/*.SF</exclude>
  86. <exclude>META-INF/*.DSA</exclude>
  87. <exclude>META-INF/*.RSA</exclude>
  88. </excludes>
  89. </filter>
  90. </filters>
  91. </configuration>
  92. <executions>
  93. <execution>
  94. <phase>package</phase>
  95. <goals>
  96. <goal>shade</goal>
  97. </goals>
  98. <configuration>
  99. <transformers>
  100. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  101. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  102. <mainClass>com.cloudera.hue.sparker.repl.Main</mainClass>
  103. </transformer>
  104. </transformers>
  105. </configuration>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. -->
  110. <plugin>
  111. <groupId>org.eclipse.jetty</groupId>
  112. <artifactId>jetty-maven-plugin</artifactId>
  113. <version>9.0.2.v20130417</version>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.scala-tools</groupId>
  117. <artifactId>maven-scala-plugin</artifactId>
  118. <executions>
  119. <execution>
  120. <goals>
  121. <goal>compile</goal>
  122. <goal>testCompile</goal>
  123. </goals>
  124. </execution>
  125. </executions>
  126. <configuration>
  127. <!-- The following plugin is required to use quasiquotes in Scala 2.10 and is used
  128. by Spark SQL for code generation. -->
  129. <compilerPlugins>
  130. <compilerPlugin>
  131. <groupId>org.scalamacros</groupId>
  132. <artifactId>paradise_${scala.version}</artifactId>
  133. <version>${scala.macros.version}</version>
  134. </compilerPlugin>
  135. </compilerPlugins>
  136. </configuration>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-dependency-plugin</artifactId>
  141. <executions>
  142. <execution>
  143. <id>copy-dependencies</id>
  144. <phase>prepare-package</phase>
  145. <goals>
  146. <goal>copy-dependencies</goal>
  147. </goals>
  148. <configuration>
  149. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  150. <overWriteReleases>false</overWriteReleases>
  151. <overWriteSnapshots>false</overWriteSnapshots>
  152. <overWriteIfNewer>true</overWriteIfNewer>
  153. </configuration>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-jar-plugin</artifactId>
  160. <configuration>
  161. <archive>
  162. <manifest>
  163. <addClasspath>true</addClasspath>
  164. <classpathPrefix>lib/</classpathPrefix>
  165. <mainClass>com.cloudera.hue.sparker.repl.Main</mainClass>
  166. </manifest>
  167. </archive>
  168. </configuration>
  169. </plugin>
  170. </plugins>
  171. </build>
  172. <reporting>
  173. <plugins>
  174. <plugin>
  175. <groupId>org.scala-tools</groupId>
  176. <artifactId>maven-scala-plugin</artifactId>
  177. <configuration>
  178. <scalaVersion>${scala.version}</scalaVersion>
  179. </configuration>
  180. </plugin>
  181. </plugins>
  182. </reporting>
  183. </project>