pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  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.livy</groupId>
  28. <artifactId>livy-main</artifactId>
  29. <packaging>pom</packaging>
  30. <name>livy-main</name>
  31. <description>livy-main</description>
  32. <licenses>
  33. <license>
  34. <name>The Apache Software License, Version 2.0</name>
  35. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  36. </license>
  37. </licenses>
  38. <organization>
  39. <name>Cloudera Inc</name>
  40. <url>http://www.cloudera.com</url>
  41. </organization>
  42. <properties>
  43. <guava.version>11.0.2</guava.version>
  44. <jetty.version>9.2.10.v20150310</jetty.version>
  45. <json4s.version>3.2.11</json4s.version>
  46. <logback.version>1.1.2</logback.version>
  47. <scala.version>2.10.4</scala.version>
  48. <scala.binary.version>2.10</scala.binary.version>
  49. <scalatra.version>2.3.0</scalatra.version>
  50. <dispatch.version>0.11.2</dispatch.version>
  51. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  52. </properties>
  53. <modules>
  54. <module>livy-core</module>
  55. <module>livy-repl</module>
  56. <module>livy-yarn</module>
  57. <module>livy-server</module>
  58. <module>livy-assembly</module>
  59. </modules>
  60. <dependencyManagement>
  61. <dependencies>
  62. <dependency>
  63. <groupId>ch.qos.logback</groupId>
  64. <artifactId>logback-classic</artifactId>
  65. <version>${logback.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>ch.qos.logback</groupId>
  69. <artifactId>logback-access</artifactId>
  70. <version>${logback.version}</version>
  71. </dependency>
  72. <!-- These will be stored in the assembly -->
  73. <dependency>
  74. <groupId>org.eclipse.jetty</groupId>
  75. <artifactId>jetty-http</artifactId>
  76. <version>${jetty.version}</version>
  77. <scope>provided</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.eclipse.jetty</groupId>
  81. <artifactId>jetty-continuation</artifactId>
  82. <version>${jetty.version}</version>
  83. <scope>provided</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.eclipse.jetty</groupId>
  87. <artifactId>jetty-servlet</artifactId>
  88. <version>${jetty.version}</version>
  89. <scope>provided</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.eclipse.jetty</groupId>
  93. <artifactId>jetty-server</artifactId>
  94. <version>${jetty.version}</version>
  95. <scope>provided</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.eclipse.jetty</groupId>
  99. <artifactId>jetty-util</artifactId>
  100. <version>${jetty.version}</version>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.eclipse.jetty</groupId>
  105. <artifactId>jetty-plus</artifactId>
  106. <version>${jetty.version}</version>
  107. <scope>provided</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.eclipse.jetty</groupId>
  111. <artifactId>jetty-security</artifactId>
  112. <version>${jetty.version}</version>
  113. <scope>provided</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.scalatra</groupId>
  117. <artifactId>scalatra_${scala.binary.version}</artifactId>
  118. <version>${scalatra.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.scalatra</groupId>
  122. <artifactId>scalatra-jetty_${scala.binary.version}</artifactId>
  123. <version>${scalatra.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.scalatra</groupId>
  127. <artifactId>scalatra-scalatest_${scala.binary.version}</artifactId>
  128. <version>${scalatra.version}</version>
  129. <scope>test</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.scalatra</groupId>
  133. <artifactId>scalatra-json_${scala.binary.version}</artifactId>
  134. <version>${scalatra.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.json4s</groupId>
  138. <artifactId>json4s_${scala.binary.version}</artifactId>
  139. <version>${json4s.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.json4s</groupId>
  143. <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
  144. <version>${json4s.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.hadoop</groupId>
  148. <artifactId>hadoop-common</artifactId>
  149. <version>${hadoop.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.hadoop</groupId>
  153. <artifactId>hadoop-client</artifactId>
  154. <version>${hadoop.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.hadoop</groupId>
  158. <artifactId>hadoop-yarn-client</artifactId>
  159. <version>${hadoop.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.hadoop</groupId>
  163. <artifactId>hadoop-yarn-api</artifactId>
  164. <version>${hadoop.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.apache.spark</groupId>
  168. <artifactId>spark-core_${scala.binary.version}</artifactId>
  169. <version>${spark.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.spark</groupId>
  173. <artifactId>spark-yarn_${scala.binary.version}</artifactId>
  174. <version>${spark.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>net.databinder.dispatch</groupId>
  178. <artifactId>dispatch-core_${scala.binary.version}</artifactId>
  179. <version>${dispatch.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>net.databinder.dispatch</groupId>
  183. <artifactId>dispatch-json4s-jackson_${scala.binary.version}</artifactId>
  184. <version>${dispatch.version}</version>
  185. </dependency>
  186. </dependencies>
  187. </dependencyManagement>
  188. <build>
  189. <pluginManagement>
  190. <plugins>
  191. <plugin>
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-enforcer-plugin</artifactId>
  194. <version>1.0</version>
  195. </plugin>
  196. <plugin>
  197. <groupId>org.apache.maven.plugins</groupId>
  198. <artifactId>maven-compiler-plugin</artifactId>
  199. <version>2.5.1</version>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-site-plugin</artifactId>
  204. <version>3.3</version>
  205. </plugin>
  206. <plugin>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-javadoc-plugin</artifactId>
  209. <version>2.8.1</version>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-assembly-plugin</artifactId>
  214. <version>2.2</version>
  215. </plugin>
  216. <plugin>
  217. <groupId>org.apache.maven.plugins</groupId>
  218. <artifactId>maven-antrun-plugin</artifactId>
  219. <version>1.6</version>
  220. </plugin>
  221. <plugin>
  222. <groupId>org.codehaus.mojo</groupId>
  223. <artifactId>build-helper-maven-plugin</artifactId>
  224. <version>1.8</version>
  225. </plugin>
  226. <plugin>
  227. <groupId>org.apache.hadoop</groupId>
  228. <artifactId>hadoop-maven-plugins</artifactId>
  229. <version>${hadoop.version}</version>
  230. </plugin>
  231. <plugin>
  232. <groupId>org.apache.maven.plugins</groupId>
  233. <artifactId>maven-jar-plugin</artifactId>
  234. <version>2.3.2</version>
  235. </plugin>
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-source-plugin</artifactId>
  239. <version>2.1.2</version>
  240. </plugin>
  241. <plugin>
  242. <groupId>com.atlassian.maven.plugins</groupId>
  243. <artifactId>maven-clover2-plugin</artifactId>
  244. <version>3.0.5</version>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.apache.rat</groupId>
  248. <artifactId>apache-rat-plugin</artifactId>
  249. <version>0.8</version>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-deploy-plugin</artifactId>
  254. <version>2.7</version>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.felix</groupId>
  258. <artifactId>maven-bundle-plugin</artifactId>
  259. <version>2.4.0</version>
  260. </plugin>
  261. <plugin>
  262. <groupId>net.alchim31.maven</groupId>
  263. <artifactId>scala-maven-plugin</artifactId>
  264. <version>3.2.0</version>
  265. <executions>
  266. <execution>
  267. <goals>
  268. <goal>compile</goal>
  269. <goal>testCompile</goal>
  270. </goals>
  271. </execution>
  272. </executions>
  273. <configuration>
  274. <scalaVersion>${scala.version}</scalaVersion>
  275. <args>
  276. <arg>-deprecation</arg>
  277. <arg>-feature</arg>
  278. </args>
  279. </configuration>
  280. </plugin>
  281. <plugin>
  282. <groupId>org.apache.maven.plugins</groupId>
  283. <artifactId>maven-install-plugin</artifactId>
  284. <version>2.3.1</version>
  285. </plugin>
  286. <plugin>
  287. <groupId>org.apache.maven.plugins</groupId>
  288. <artifactId>maven-shade-plugin</artifactId>
  289. <version>2.2</version>
  290. </plugin>
  291. <plugin>
  292. <groupId>org.apache.maven.plugins</groupId>
  293. <artifactId>maven-surefire-plugin</artifactId>
  294. <version>2.7</version>
  295. <configuration>
  296. <skipTests>true</skipTests>
  297. </configuration>
  298. </plugin>
  299. <plugin>
  300. <groupId>org.scalatest</groupId>
  301. <artifactId>scalatest-maven-plugin</artifactId>
  302. <version>1.0</version>
  303. <configuration>
  304. <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
  305. <junitxml>.</junitxml>
  306. <filereports>WDF TestSuite.txt</filereports>
  307. </configuration>
  308. <executions>
  309. <execution>
  310. <id>test</id>
  311. <goals>
  312. <goal>test</goal>
  313. </goals>
  314. </execution>
  315. </executions>
  316. </plugin>
  317. </plugins>
  318. </pluginManagement>
  319. <plugins>
  320. <plugin>
  321. <groupId>org.apache.maven.plugins</groupId>
  322. <artifactId>maven-enforcer-plugin</artifactId>
  323. <inherited>false</inherited>
  324. <configuration>
  325. <rules>
  326. <requireMavenVersion>
  327. <version>[3.0.0,)</version>
  328. </requireMavenVersion>
  329. <requireJavaVersion>
  330. <version>[${minJavaVersion}.0,${maxJavaVersion}.1000}]</version>
  331. </requireJavaVersion>
  332. <requireOS>
  333. <family>unix</family>
  334. </requireOS>
  335. </rules>
  336. </configuration>
  337. <executions>
  338. <execution>
  339. <id>clean</id>
  340. <goals>
  341. <goal>enforce</goal>
  342. </goals>
  343. <phase>pre-clean</phase>
  344. </execution>
  345. <execution>
  346. <id>default</id>
  347. <goals>
  348. <goal>enforce</goal>
  349. </goals>
  350. <phase>validate</phase>
  351. </execution>
  352. <execution>
  353. <id>site</id>
  354. <goals>
  355. <goal>enforce</goal>
  356. </goals>
  357. <phase>pre-site</phase>
  358. </execution>
  359. </executions>
  360. </plugin>
  361. <plugin>
  362. <groupId>org.apache.maven.plugins</groupId>
  363. <artifactId>maven-compiler-plugin</artifactId>
  364. <configuration>
  365. <source>${sourceJavaVersion}</source>
  366. <target>${targetJavaVersion}</target>
  367. </configuration>
  368. </plugin>
  369. <plugin>
  370. <groupId>net.alchim31.maven</groupId>
  371. <artifactId>scala-maven-plugin</artifactId>
  372. </plugin>
  373. <plugin>
  374. <groupId>org.apache.maven.plugins</groupId>
  375. <artifactId>maven-shade-plugin</artifactId>
  376. <version>2.2</version>
  377. <configuration>
  378. <shadedArtifactAttached>false</shadedArtifactAttached>
  379. <artifactSet>
  380. <includes>
  381. <include>com.cloudera.hue:unused</include>
  382. <include>org.eclipse.jetty:jetty-http</include>
  383. <include>org.eclipse.jetty:jetty-io</include>
  384. <include>org.eclipse.jetty:jetty-continuation</include>
  385. <include>org.eclipse.jetty:jetty-servlet</include>
  386. <include>org.eclipse.jetty:jetty-plus</include>
  387. <include>org.eclipse.jetty:jetty-security</include>
  388. <include>org.eclipse.jetty:jetty-util</include>
  389. <include>org.eclipse.jetty:jetty-server</include>
  390. <include>com.google.guava:guava</include>
  391. </includes>
  392. </artifactSet>
  393. </configuration>
  394. <executions>
  395. <execution>
  396. <phase>package</phase>
  397. <goals>
  398. <goal>shade</goal>
  399. </goals>
  400. </execution>
  401. </executions>
  402. </plugin>
  403. </plugins>
  404. </build>
  405. </project>