pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. </dependency>
  29. <dependency>
  30. <groupId>org.json4s</groupId>
  31. <artifactId>json4s-core_2.10</artifactId>
  32. <version>3.2.11</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.scalatra</groupId>
  36. <artifactId>scalatra_2.10</artifactId>
  37. <version>${scalatra.version}</version>
  38. <scope>compile</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.scalatra</groupId>
  42. <artifactId>scalatra_2.10</artifactId>
  43. <version>${scalatra.version}</version>
  44. <scope>compile</scope>
  45. </dependency>
  46. </dependencies>
  47. <build>
  48. <plugins>
  49. <plugin>
  50. <groupId>org.apache.maven.plugins</groupId>
  51. <artifactId>maven-shade-plugin</artifactId>
  52. <version>1.6</version>
  53. <configuration>
  54. <createDependencyReducedPom>true</createDependencyReducedPom>
  55. <filters>
  56. <filter>
  57. <artifact>*:*</artifact>
  58. <excludes>
  59. <exclude>META-INF/*.SF</exclude>
  60. <exclude>META-INF/*.DSA</exclude>
  61. <exclude>META-INF/*.RSA</exclude>
  62. </excludes>
  63. </filter>
  64. </filters>
  65. </configuration>
  66. <executions>
  67. <execution>
  68. <phase>package</phase>
  69. <goals>
  70. <goal>shade</goal>
  71. </goals>
  72. <configuration>
  73. <transformers>
  74. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  75. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  76. <mainClass>com.cloudera.hue.sparker.repl.Main</mainClass>
  77. </transformer>
  78. </transformers>
  79. </configuration>
  80. </execution>
  81. </executions>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.eclipse.jetty</groupId>
  85. <artifactId>jetty-maven-plugin</artifactId>
  86. <version>9.0.2.v20130417</version>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.scala-tools</groupId>
  90. <artifactId>maven-scala-plugin</artifactId>
  91. <executions>
  92. <execution>
  93. <goals>
  94. <goal>compile</goal>
  95. <goal>testCompile</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. <configuration>
  100. <!-- The following plugin is required to use quasiquotes in Scala 2.10 and is used
  101. by Spark SQL for code generation. -->
  102. <compilerPlugins>
  103. <compilerPlugin>
  104. <groupId>org.scalamacros</groupId>
  105. <artifactId>paradise_${scala.version}</artifactId>
  106. <version>${scala.macros.version}</version>
  107. </compilerPlugin>
  108. </compilerPlugins>
  109. </configuration>
  110. </plugin>
  111. <!--
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-dependency-plugin</artifactId>
  115. <executions>
  116. <execution>
  117. <id>copy-dependencies</id>
  118. <phase>prepare-package</phase>
  119. <goals>
  120. <goal>copy-dependencies</goal>
  121. </goals>
  122. <configuration>
  123. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  124. <overWriteReleases>false</overWriteReleases>
  125. <overWriteSnapshots>false</overWriteSnapshots>
  126. <overWriteIfNewer>true</overWriteIfNewer>
  127. </configuration>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-jar-plugin</artifactId>
  134. <configuration>
  135. <archive>
  136. <manifest>
  137. <addClasspath>true</addClasspath>
  138. <classpathPrefix>lib/</classpathPrefix>
  139. <mainClass>com.cloudera.hue.sparker.repl.Main</mainClass>
  140. </manifest>
  141. </archive>
  142. </configuration>
  143. </plugin>
  144. -->
  145. </plugins>
  146. </build>
  147. <reporting>
  148. <plugins>
  149. <plugin>
  150. <groupId>org.scala-tools</groupId>
  151. <artifactId>maven-scala-plugin</artifactId>
  152. <configuration>
  153. <scalaVersion>${scala.version}</scalaVersion>
  154. </configuration>
  155. </plugin>
  156. </plugins>
  157. </reporting>
  158. </project>