pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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.hue.sparker</groupId>
  28. <artifactId>sparker-main</artifactId>
  29. <packaging>pom</packaging>
  30. <version>3.7.0-SNAPSHOT</version>
  31. <name>Spark Main</name>
  32. <description>Spark Main</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. </properties>
  52. <modules>
  53. <module>sparker-server</module>
  54. <module>sparker-repl</module>
  55. </modules>
  56. <repositories>
  57. <repository>
  58. <id>cdh.repo</id>
  59. <url>https://repository.cloudera.com/content/groups/cloudera-repos</url>
  60. <name>Cloudera Repositories</name>
  61. <snapshots>
  62. <enabled>false</enabled>
  63. </snapshots>
  64. </repository>
  65. <repository>
  66. <id>cdh.snapshots.repo</id>
  67. <url>https://repository.cloudera.com/content/repositories/snapshots</url>
  68. <name>Cloudera Snapshots Repository</name>
  69. <snapshots>
  70. <enabled>true</enabled>
  71. </snapshots>
  72. <releases>
  73. <enabled>false</enabled>
  74. </releases>
  75. </repository>
  76. <repository>
  77. <id>Codehaus repository</id>
  78. <url>http://repository.codehaus.org/</url>
  79. <snapshots>
  80. <enabled>false</enabled>
  81. </snapshots>
  82. </repository>
  83. </repositories>
  84. <build>
  85. <pluginManagement>
  86. <plugins>
  87. <plugin>
  88. <groupId>org.apache.maven.plugins</groupId>
  89. <artifactId>maven-enforcer-plugin</artifactId>
  90. <version>1.0</version>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-compiler-plugin</artifactId>
  95. <version>2.5.1</version>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-site-plugin</artifactId>
  100. <version>3.3</version>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-javadoc-plugin</artifactId>
  105. <version>2.8.1</version>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.apache.maven.plugins</groupId>
  109. <artifactId>maven-assembly-plugin</artifactId>
  110. <version>2.2</version>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-antrun-plugin</artifactId>
  115. <version>1.6</version>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.codehaus.mojo</groupId>
  119. <artifactId>build-helper-maven-plugin</artifactId>
  120. <version>1.8</version>
  121. </plugin>
  122. <plugin>
  123. <groupId>org.apache.hadoop</groupId>
  124. <artifactId>hadoop-maven-plugins</artifactId>
  125. <version>${hadoop.version}</version>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-jar-plugin</artifactId>
  130. <version>2.3.2</version>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-source-plugin</artifactId>
  135. <version>2.1.2</version>
  136. </plugin>
  137. <plugin>
  138. <groupId>com.atlassian.maven.plugins</groupId>
  139. <artifactId>maven-clover2-plugin</artifactId>
  140. <version>3.0.5</version>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.apache.rat</groupId>
  144. <artifactId>apache-rat-plugin</artifactId>
  145. <version>0.8</version>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-deploy-plugin</artifactId>
  150. <version>2.7</version>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.apache.felix</groupId>
  154. <artifactId>maven-bundle-plugin</artifactId>
  155. <version>2.4.0</version>
  156. </plugin>
  157. </plugins>
  158. </pluginManagement>
  159. <plugins>
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-enforcer-plugin</artifactId>
  163. <inherited>false</inherited>
  164. <configuration>
  165. <rules>
  166. <requireMavenVersion>
  167. <version>[3.0.0,)</version>
  168. </requireMavenVersion>
  169. <requireJavaVersion>
  170. <version>[${javaVersion}.0,${javaVersion}.1000}]</version>
  171. </requireJavaVersion>
  172. <requireOS>
  173. <family>unix</family>
  174. </requireOS>
  175. </rules>
  176. </configuration>
  177. <executions>
  178. <execution>
  179. <id>clean</id>
  180. <goals>
  181. <goal>enforce</goal>
  182. </goals>
  183. <phase>pre-clean</phase>
  184. </execution>
  185. <execution>
  186. <id>default</id>
  187. <goals>
  188. <goal>enforce</goal>
  189. </goals>
  190. <phase>validate</phase>
  191. </execution>
  192. <execution>
  193. <id>site</id>
  194. <goals>
  195. <goal>enforce</goal>
  196. </goals>
  197. <phase>pre-site</phase>
  198. </execution>
  199. </executions>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-compiler-plugin</artifactId>
  204. <configuration>
  205. <source>1.6</source>
  206. <target>1.6</target>
  207. </configuration>
  208. </plugin>
  209. <!--
  210. <plugin>
  211. <groupId>org.apache.maven.plugins</groupId>
  212. <artifactId>maven-jar-plugin</artifactId>
  213. <configuration>
  214. <archive>
  215. <manifest>
  216. <mainClass>com.cloudera.sparker.SparkerMain</mainClass>
  217. </manifest>
  218. </archive>
  219. </configuration>
  220. <executions>
  221. <execution>
  222. <id>test-package</id>
  223. <phase>package</phase>
  224. <goals>
  225. <goal>test-jar</goal>
  226. </goals>
  227. </execution>
  228. </executions>
  229. </plugin>
  230. -->
  231. <plugin>
  232. <groupId>org.apache.maven.plugins</groupId>
  233. <artifactId>maven-dependency-plugin</artifactId>
  234. <executions>
  235. <execution>
  236. <id>copy-dependencies</id>
  237. <phase>prepare-package</phase>
  238. <goals>
  239. <goal>copy-dependencies</goal>
  240. </goals>
  241. <configuration>
  242. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  243. <overWriteReleases>false</overWriteReleases>
  244. <overWriteSnapshots>false</overWriteSnapshots>
  245. <overWriteIfNewer>true</overWriteIfNewer>
  246. </configuration>
  247. </execution>
  248. </executions>
  249. </plugin>
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-jar-plugin</artifactId>
  253. <configuration>
  254. <archive>
  255. <manifest>
  256. <addClasspath>true</addClasspath>
  257. <classpathPrefix>lib/</classpathPrefix>
  258. <mainClass>com.cloudera.sparker.SparkerMain</mainClass>
  259. </manifest>
  260. </archive>
  261. </configuration>
  262. </plugin>
  263. </plugins>
  264. </build>
  265. </project>