pom.xml 20 KB

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