pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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-jackson_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-json_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.scala-tools</groupId>
  51. <artifactId>maven-scala-plugin</artifactId>
  52. <executions>
  53. <execution>
  54. <goals>
  55. <goal>compile</goal>
  56. <goal>testCompile</goal>
  57. </goals>
  58. </execution>
  59. </executions>
  60. <configuration>
  61. <!-- The following plugin is required to use quasiquotes in Scala 2.10 and is used
  62. by Spark SQL for code generation. -->
  63. <compilerPlugins>
  64. <compilerPlugin>
  65. <groupId>org.scalamacros</groupId>
  66. <artifactId>paradise_${scala.version}</artifactId>
  67. <version>${scala.macros.version}</version>
  68. </compilerPlugin>
  69. </compilerPlugins>
  70. </configuration>
  71. </plugin>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-dependency-plugin</artifactId>
  75. <executions>
  76. <execution>
  77. <id>copy-dependencies</id>
  78. <phase>prepare-package</phase>
  79. <goals>
  80. <goal>copy-dependencies</goal>
  81. </goals>
  82. <configuration>
  83. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  84. <overWriteReleases>false</overWriteReleases>
  85. <overWriteSnapshots>false</overWriteSnapshots>
  86. <overWriteIfNewer>true</overWriteIfNewer>
  87. </configuration>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-jar-plugin</artifactId>
  94. <configuration>
  95. <archive>
  96. <manifest>
  97. <addClasspath>true</addClasspath>
  98. <classpathPrefix>lib/</classpathPrefix>
  99. <mainClass>com.cloudera.hue.sparker.repl.Main</mainClass>
  100. </manifest>
  101. </archive>
  102. </configuration>
  103. </plugin>
  104. </plugins>
  105. </build>
  106. <reporting>
  107. <plugins>
  108. <plugin>
  109. <groupId>org.scala-tools</groupId>
  110. <artifactId>maven-scala-plugin</artifactId>
  111. <configuration>
  112. <scalaVersion>${scala.version}</scalaVersion>
  113. </configuration>
  114. </plugin>
  115. </plugins>
  116. </reporting>
  117. </project>