pom.xml 18 KB

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