pom.xml 4.5 KB

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