pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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-yarn</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. <PermGen>64m</PermGen>
  20. <MaxPermGen>512m</MaxPermGen>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-common</artifactId>
  26. <version>${hadoop.version}</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.apache.hadoop</groupId>
  30. <artifactId>hadoop-yarn-client</artifactId>
  31. <version>${hadoop.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.apache.hadoop</groupId>
  35. <artifactId>hadoop-yarn-api</artifactId>
  36. <version>${hadoop.version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.scala-lang</groupId>
  40. <artifactId>scala-library</artifactId>
  41. <version>${scala.version}</version>
  42. </dependency>
  43. </dependencies>
  44. <build>
  45. <plugins>
  46. <plugin>
  47. <groupId>org.scala-tools</groupId>
  48. <artifactId>maven-scala-plugin</artifactId>
  49. <version>2.15.2</version>
  50. <executions>
  51. <execution>
  52. <goals>
  53. <goal>compile</goal>
  54. <goal>testCompile</goal>
  55. </goals>
  56. </execution>
  57. </executions>
  58. <configuration>
  59. <scalaVersion>${scala.version}</scalaVersion>
  60. </configuration
  61. <plugin>
  62. <artifactId>maven-assembly-plugin</artifactId>
  63. <version>2.4</version>
  64. <configuration>
  65. <descriptor>src/main/assembly/dist.xml</descriptor>
  66. </configuration>
  67. </plugin>
  68. <!--
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-shade-plugin</artifactId>
  72. <version>1.6</version>
  73. <configuration>
  74. <createDependencyReducedPom>true</createDependencyReducedPom>
  75. <filters>
  76. <filter>
  77. <artifact>*:*</artifact>
  78. <excludes>
  79. <exclude>META-INF/*.SF</exclude>
  80. <exclude>META-INF/*.DSA</exclude>
  81. <exclude>META-INF/*.RSA</exclude>
  82. </excludes>
  83. </filter>
  84. </filters>
  85. </configuration>
  86. <executions>
  87. <execution>
  88. <phase>package</phase>
  89. <goals>
  90. <goal>shade</goal>
  91. </goals>
  92. <configuration>
  93. <transformers>
  94. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  95. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  96. <mainClass>com.cloudera.hue.sparker.yarn.Client</mainClass>
  97. </transformer>
  98. </transformers>
  99. </configuration>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. -->
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-dependency-plugin</artifactId>
  107. <executions>
  108. <execution>
  109. <id>copy-dependencies</id>
  110. <phase>prepare-package</phase>
  111. <goals>
  112. <goal>copy-dependencies</goal>
  113. </goals>
  114. <configuration>
  115. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  116. <overWriteReleases>false</overWriteReleases>
  117. <overWriteSnapshots>false</overWriteSnapshots>
  118. <overWriteIfNewer>true</overWriteIfNewer>
  119. </configuration>
  120. </execution>
  121. </executions>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-jar-plugin</artifactId>
  126. <configuration>
  127. <archive>
  128. <manifest>
  129. <addClasspath>true</addClasspath>
  130. <classpathPrefix>lib/</classpathPrefix>
  131. <maisparkerss>com.cloudera.hue.livy.yarn.Client</mainClass>
  132. </manifest>
  133. </archive>
  134. </configuratio>>
  135. </plugin>
  136. </plugins>
  137. </build>
  138. <reporting>
  139. <plugins>
  140. <plugin>
  141. <groupId>org.scala-tools</groupId>
  142. <artifactId>maven-scala-plugin</artifactId>
  143. <configuration>
  144. <scalaVersion>${scala.version}</scalaVersion>
  145. </configuration>
  146. </plugin>
  147. </plugins>
  148. </reporting>
  149. </project>