pom.xml 18 KB

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