pom.xml 18 KB

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