pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. -->
  17. <project xmlns="http://maven.apache.org/POM/4.0.0"
  18. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <parent>
  22. <groupId>com.cloudera.hue</groupId>
  23. <artifactId>hue-parent</artifactId>
  24. <relativePath>../../../maven/pom.xml</relativePath>
  25. <version>3.7.0-SNAPSHOT</version>
  26. </parent>
  27. <groupId>com.cloudera.sparker</groupId>
  28. <artifactId>spark-server</artifactId>
  29. <packaging>jar</packaging>
  30. <version>3.7.0-SNAPSHOT</version>
  31. <name>Spark Server</name>
  32. <description>Spark Server</description>
  33. <licenses>
  34. <license>
  35. <name>The Apache Software License, Version 2.0</name>
  36. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  37. </license>
  38. </licenses>
  39. <organization>
  40. <name>Cloudera Inc</name>
  41. <url>http://www.cloudera.com</url>
  42. </organization>
  43. <properties>
  44. <javaVersion>1.7</javaVersion>
  45. <!--
  46. <hadoop.version>${cdh.hadoop.version}</hadoop.version>
  47. <spark.version>${cdh.spark.version}</spark.version>
  48. <slf4j.version>${cdh.slf4j.version}</slf4j.version>
  49. <jetty.version>8.1.14.v20131031</jetty.version>
  50. -->
  51. <spark.version></spark.version>
  52. </properties>
  53. <repositories>
  54. <repository>
  55. <id>cdh.repo</id>
  56. <url>https://repository.cloudera.com/content/groups/cloudera-repos</url>
  57. <name>Cloudera Repositories</name>
  58. <snapshots>
  59. <enabled>false</enabled>
  60. </snapshots>
  61. </repository>
  62. <repository>
  63. <id>cdh.snapshots.repo</id>
  64. <url>https://repository.cloudera.com/content/repositories/snapshots</url>
  65. <name>Cloudera Snapshots Repository</name>
  66. <snapshots>
  67. <enabled>true</enabled>
  68. </snapshots>
  69. <releases>
  70. <enabled>false</enabled>
  71. </releases>
  72. </repository>
  73. <repository>
  74. <id>Codehaus repository</id>
  75. <url>http://repository.codehaus.org/</url>
  76. <snapshots>
  77. <enabled>false</enabled>
  78. </snapshots>
  79. </repository>
  80. </repositories>
  81. <dependencies>
  82. <!--
  83. <dependency>
  84. <groupId>org.apache.spark</groupId>
  85. <artifactId>spark-core_2.10</artifactId>
  86. <version>${spark.version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.apache.spark</groupId>
  90. <artifactId>spark-bagel_2.10</artifactId>
  91. <version>${spark.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.apache.spark</groupId>
  95. <artifactId>spark-mllib_2.10</artifactId>
  96. <version>${spark.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.spark</groupId>
  100. <artifactId>spark-streaming_2.10</artifactId>
  101. <version>${spark.version}</version>
  102. </dependency>
  103. -->
  104. <dependency>
  105. <groupId>org.apache.spark</groupId>
  106. <artifactId>spark-repl_2.10</artifactId>
  107. <version>1.1.0-cdh5.2.0-SNAPSHOT</version>
  108. <!--
  109. ${spark.version}</version>
  110. -->
  111. <exclusions>
  112. <exclusion>
  113. <groupId>javax.servlet</groupId>
  114. <artifactId>servlet-api</artifactId>
  115. </exclusion>
  116. </exclusions>
  117. </dependency>
  118. </dependencies>
  119. <build>
  120. <pluginManagement>
  121. <plugins>
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-enforcer-plugin</artifactId>
  125. <version>1.0</version>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-compiler-plugin</artifactId>
  130. <version>2.5.1</version>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-site-plugin</artifactId>
  135. <version>3.3</version>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.apache.maven.plugins</groupId>
  139. <artifactId>maven-javadoc-plugin</artifactId>
  140. <version>2.8.1</version>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-assembly-plugin</artifactId>
  145. <version>2.2</version>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-antrun-plugin</artifactId>
  150. <version>1.6</version>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.codehaus.mojo</groupId>
  154. <artifactId>build-helper-maven-plugin</artifactId>
  155. <version>1.8</version>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.hadoop</groupId>
  159. <artifactId>hadoop-maven-plugins</artifactId>
  160. <version>${hadoop.version}</version>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-jar-plugin</artifactId>
  165. <version>2.3.2</version>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.apache.maven.plugins</groupId>
  169. <artifactId>maven-source-plugin</artifactId>
  170. <version>2.1.2</version>
  171. </plugin>
  172. <plugin>
  173. <groupId>com.atlassian.maven.plugins</groupId>
  174. <artifactId>maven-clover2-plugin</artifactId>
  175. <version>3.0.5</version>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.apache.rat</groupId>
  179. <artifactId>apache-rat-plugin</artifactId>
  180. <version>0.8</version>
  181. </plugin>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-deploy-plugin</artifactId>
  185. <version>2.7</version>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.apache.felix</groupId>
  189. <artifactId>maven-bundle-plugin</artifactId>
  190. <version>2.4.0</version>
  191. </plugin>
  192. </plugins>
  193. </pluginManagement>
  194. <plugins>
  195. <plugin>
  196. <groupId>org.apache.maven.plugins</groupId>
  197. <artifactId>maven-enforcer-plugin</artifactId>
  198. <inherited>false</inherited>
  199. <configuration>
  200. <rules>
  201. <requireMavenVersion>
  202. <version>[3.0.0,)</version>
  203. </requireMavenVersion>
  204. <requireJavaVersion>
  205. <version>[${javaVersion}.0,${javaVersion}.1000}]</version>
  206. </requireJavaVersion>
  207. <requireOS>
  208. <family>unix</family>
  209. </requireOS>
  210. </rules>
  211. </configuration>
  212. <executions>
  213. <execution>
  214. <id>clean</id>
  215. <goals>
  216. <goal>enforce</goal>
  217. </goals>
  218. <phase>pre-clean</phase>
  219. </execution>
  220. <execution>
  221. <id>default</id>
  222. <goals>
  223. <goal>enforce</goal>
  224. </goals>
  225. <phase>validate</phase>
  226. </execution>
  227. <execution>
  228. <id>site</id>
  229. <goals>
  230. <goal>enforce</goal>
  231. </goals>
  232. <phase>pre-site</phase>
  233. </execution>
  234. </executions>
  235. </plugin>
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-compiler-plugin</artifactId>
  239. <configuration>
  240. <source>1.6</source>
  241. <target>1.6</target>
  242. </configuration>
  243. </plugin>
  244. <!--
  245. <plugin>
  246. <groupId>org.apache.maven.plugins</groupId>
  247. <artifactId>maven-jar-plugin</artifactId>
  248. <configuration>
  249. <archive>
  250. <manifest>
  251. <mainClass>com.cloudera.sparker.SparkerMain</mainClass>
  252. </manifest>
  253. </archive>
  254. </configuration>
  255. <executions>
  256. <execution>
  257. <id>test-package</id>
  258. <phase>package</phase>
  259. <goals>
  260. <goal>test-jar</goal>
  261. </goals>
  262. </execution>
  263. </executions>
  264. </plugin>
  265. -->
  266. <plugin>
  267. <groupId>org.apache.maven.plugins</groupId>
  268. <artifactId>maven-dependency-plugin</artifactId>
  269. <executions>
  270. <execution>
  271. <id>copy-dependencies</id>
  272. <phase>prepare-package</phase>
  273. <goals>
  274. <goal>copy-dependencies</goal>
  275. </goals>
  276. <configuration>
  277. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  278. <overWriteReleases>false</overWriteReleases>
  279. <overWriteSnapshots>false</overWriteSnapshots>
  280. <overWriteIfNewer>true</overWriteIfNewer>
  281. </configuration>
  282. </execution>
  283. </executions>
  284. </plugin>
  285. <plugin>
  286. <groupId>org.apache.maven.plugins</groupId>
  287. <artifactId>maven-jar-plugin</artifactId>
  288. <configuration>
  289. <archive>
  290. <manifest>
  291. <addClasspath>true</addClasspath>
  292. <classpathPrefix>lib/</classpathPrefix>
  293. <mainClass>com.cloudera.sparker.SparkerMain</mainClass>
  294. </manifest>
  295. </archive>
  296. </configuration>
  297. </plugin>
  298. </plugins>
  299. </build>
  300. </project>