pom.xml 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one or more
  4. ~ contributor license agreements. See the NOTICE file distributed with
  5. ~ this work for additional information regarding copyright ownership.
  6. ~ The ASF licenses this file to You under the Apache License, Version 2.0
  7. ~ (the "License"); you may not use this file except in compliance with
  8. ~ the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing, software
  13. ~ distributed under the License is distributed on an "AS IS" BASIS,
  14. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ~ See the License for the specific language governing permissions and
  16. ~ limitations under the License.
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  19. <modelVersion>4.0.0</modelVersion>
  20. <groupId>org.apache.livy</groupId>
  21. <artifactId>livy-main</artifactId>
  22. <version>0.8.0-incubating-SNAPSHOT</version>
  23. <packaging>pom</packaging>
  24. <name>Livy Project Parent POM</name>
  25. <description>Livy Project</description>
  26. <url>http://livy.incubating.apache.org/</url>
  27. <parent>
  28. <groupId>org.apache</groupId>
  29. <artifactId>apache</artifactId>
  30. <version>18</version>
  31. </parent>
  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. <distribution>repo</distribution>
  37. </license>
  38. </licenses>
  39. <scm>
  40. <connection>scm:git:git@github.com:apache/incubator-livy.git</connection>
  41. <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/incubator-livy.git</developerConnection>
  42. <url>scm:git:git@github.com:apache/incubator-livy.git</url>
  43. <tag>HEAD</tag>
  44. </scm>
  45. <issueManagement>
  46. <system>JIRA</system>
  47. <url>https://issues.apache.org/jira/browse/LIVY</url>
  48. </issueManagement>
  49. <mailingLists>
  50. <mailingList>
  51. <name>Dev Mailing List</name>
  52. <post>dev@livy.incubating.apache.org</post>
  53. <subscribe>dev-subscribe@livy.incubating.apache.org</subscribe>
  54. <unsubscribe>dev-unsubscribe@livy.incubating.apache.org</unsubscribe>
  55. </mailingList>
  56. <mailingList>
  57. <name>User Mailing List</name>
  58. <post>user@livy.incubating.apache.org</post>
  59. <subscribe>user-subscribe@livy.incubating.apache.org</subscribe>
  60. <unsubscribe>user-unsubscribe@livy.incubating.apache.org</unsubscribe>
  61. </mailingList>
  62. <mailingList>
  63. <name>Commits Mailing List</name>
  64. <post>commits@livy.incubating.apache.org</post>
  65. <subscribe>commits-subscribe@livy.incubating.apache.org</subscribe>
  66. <unsubscribe>commits-unsubscribe@livy.incubating.apache.org</unsubscribe>
  67. </mailingList>
  68. </mailingLists>
  69. <properties>
  70. <asynchttpclient.version>2.10.1</asynchttpclient.version>
  71. <hadoop.version>3.0.3</hadoop.version>
  72. <hadoop.scope>compile</hadoop.scope>
  73. <spark.scala-2.11.version>3.2</spark.scala-2.11.version>
  74. <spark.scala-2.12.version>3.2</spark.scala-2.12.version>
  75. <!-- <hadoop.version>2.7.3</hadoop.version>-->
  76. <!-- <hadoop.scope>compile</hadoop.scope>-->
  77. <!-- <spark.scala-2.11.version>2.4.5</spark.scala-2.11.version>-->
  78. <!-- <spark.scala-2.12.version>2.4.5</spark.scala-2.12.version>-->
  79. <spark.version>${spark.scala-2.11.version}</spark.version>
  80. <hive.version>3.0.0</hive.version>
  81. <commons-codec.version>1.9</commons-codec.version>
  82. <httpclient.version>4.5.3</httpclient.version>
  83. <httpcore.version>4.4.4</httpcore.version>
  84. <jackson.version>2.10.1</jackson.version>
  85. <javax.servlet-api.version>3.1.0</javax.servlet-api.version>
  86. <jetty.version>9.3.24.v20180605</jetty.version>
  87. <json4s.spark-2.11.version>3.5.3</json4s.spark-2.11.version>
  88. <json4s.spark-2.12.version>3.5.3</json4s.spark-2.12.version>
  89. <json4s.version>${json4s.spark-2.11.version}</json4s.version>
  90. <junit.version>4.11</junit.version>
  91. <libthrift.version>0.9.3</libthrift.version>
  92. <kryo.version>4.0.2</kryo.version>
  93. <metrics.version>3.1.0</metrics.version>
  94. <mockito.version>1.10.19</mockito.version>
  95. <netty.spark-2.11.version>4.1.17.Final</netty.spark-2.11.version>
  96. <netty.spark-2.12.version>4.1.17.Final</netty.spark-2.12.version>
  97. <netty.version>${netty.spark-2.11.version}</netty.version>
  98. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  99. <py4j.version>0.10.7</py4j.version>
  100. <scala-2.11.version>2.11.12</scala-2.11.version>
  101. <scala-2.12.version>2.12.10</scala-2.12.version>
  102. <scala.binary.version>2.11</scala.binary.version>
  103. <scala.version>${scala-2.11.version}</scala.version>
  104. <scalatest.version>3.0.8</scalatest.version>
  105. <scalatra.version>2.6.5</scalatra.version>
  106. <java.version>1.8</java.version>
  107. <test.redirectToFile>true</test.redirectToFile>
  108. <execution.root>${user.dir}</execution.root>
  109. <spark.home>${execution.root}/dev/spark</spark.home>
  110. <!-- <spark.bin.download.url>-->
  111. <!-- https://archive.apache.org/dist/spark/spark-2.4.5/spark-2.4.5-bin-hadoop2.7.tgz-->
  112. <!-- </spark.bin.download.url>-->
  113. <spark.bin.name>spark-3.0.3-bin-hadoop3.2</spark.bin.name>
  114. <!-- <spark.bin.name>spark-2.4.5-bin-hadoop2.7</spark.bin.name>-->
  115. <!-- used for testing, NCSARequestLog use it for access log -->
  116. <livy.log.dir>${basedir}/target</livy.log.dir>
  117. <!-- Set this to "true" to skip R tests. -->
  118. <skipRTests>false</skipRTests>
  119. <!-- Set this to "true" to skip PySpark3 tests. -->
  120. <skipPySpark3Tests>false</skipPySpark3Tests>
  121. <!-- Required for testing LDAP integration -->
  122. <apacheds.version>2.0.0-M21</apacheds.version>
  123. <ldap-api.version>1.0.0-M33</ldap-api.version>
  124. <curator.version>2.7.1</curator.version>
  125. <zookeeper.version>3.4.6</zookeeper.version>
  126. <!--
  127. Properties for the copyright header style checks. Modules that use the ASF header
  128. should override the "copyright.header" property.
  129. -->
  130. <!--
  131. Artifacts that should not be deployed to a maven repo should override the "skipDeploy"
  132. property in their pom.
  133. -->
  134. <skipDeploy>false</skipDeploy>
  135. <asf.copyright.header>
  136. <![CDATA[/*
  137. * Licensed to the Apache Software Foundation (ASF) under one or more
  138. * contributor license agreements. See the NOTICE file distributed with
  139. * this work for additional information regarding copyright ownership.
  140. * The ASF licenses this file to You under the Apache License, Version 2.0
  141. * (the "License"); you may not use this file except in compliance with
  142. * the License. You may obtain a copy of the License at
  143. *
  144. * http://www.apache.org/licenses/LICENSE-2.0
  145. *
  146. * Unless required by applicable law or agreed to in writing, software
  147. * distributed under the License is distributed on an "AS IS" BASIS,
  148. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  149. * See the License for the specific language governing permissions and
  150. * limitations under the License.
  151. */]]>
  152. </asf.copyright.header>
  153. <copyright.header>${asf.copyright.header}</copyright.header>
  154. <MaxPermGen>512m</MaxPermGen>
  155. <CodeCacheSize>512m</CodeCacheSize>
  156. <maven.compiler.source>${java.version}</maven.compiler.source>
  157. <maven.compiler.target>${java.version}</maven.compiler.target>
  158. </properties>
  159. <repositories>
  160. <repository>
  161. <id>central</id>
  162. <!-- This should be at top, it makes maven try the central repo first and then others and hence faster dep resolution -->
  163. <name>Maven Repository</name>
  164. <url>https://repo1.maven.org/maven2</url>
  165. <releases>
  166. <enabled>true</enabled>
  167. </releases>
  168. <snapshots>
  169. <enabled>false</enabled>
  170. </snapshots>
  171. </repository>
  172. <repository>
  173. <id>apache-repo</id>
  174. <name>Apache Repository</name>
  175. <url>https://repository.apache.org/content/repositories/releases</url>
  176. <releases>
  177. <enabled>true</enabled>
  178. </releases>
  179. <snapshots>
  180. <enabled>false</enabled>
  181. </snapshots>
  182. </repository>
  183. </repositories>
  184. <modules>
  185. <module>api</module>
  186. <module>assembly</module>
  187. <module>client-common</module>
  188. <module>client-http</module>
  189. <module>core</module>
  190. <module>core/scala-2.11</module>
  191. <module>core/scala-2.12</module>
  192. <module>coverage</module>
  193. <module>examples</module>
  194. <module>python-api</module>
  195. <module>repl</module>
  196. <module>repl/scala-2.11</module>
  197. <module>repl/scala-2.12</module>
  198. <module>rsc</module>
  199. <module>scala</module>
  200. <module>scala-api</module>
  201. <module>scala-api/scala-2.11</module>
  202. <module>scala-api/scala-2.12</module>
  203. <module>server</module>
  204. <module>test-lib</module>
  205. <module>integration-test</module>
  206. </modules>
  207. <dependencies>
  208. <dependency>
  209. <groupId>junit</groupId>
  210. <artifactId>junit</artifactId>
  211. <version>${junit.version}</version>
  212. <scope>test</scope>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.mockito</groupId>
  216. <artifactId>mockito-all</artifactId>
  217. <version>${mockito.version}</version>
  218. <scope>test</scope>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.scalatest</groupId>
  222. <artifactId>scalatest_${scala.binary.version}</artifactId>
  223. <version>${scalatest.version}</version>
  224. <scope>test</scope>
  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. <exclusions>
  232. <exclusion>
  233. <groupId>org.mockito</groupId>
  234. <artifactId>*</artifactId>
  235. </exclusion>
  236. </exclusions>
  237. </dependency>
  238. </dependencies>
  239. <dependencyManagement>
  240. <dependencies>
  241. <dependency>
  242. <groupId>log4j</groupId>
  243. <artifactId>log4j</artifactId>
  244. <version>1.2.16</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>com.esotericsoftware</groupId>
  248. <artifactId>kryo</artifactId>
  249. <version>${kryo.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>com.fasterxml.jackson.core</groupId>
  253. <artifactId>jackson-annotations</artifactId>
  254. <version>${jackson.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>com.fasterxml.jackson.core</groupId>
  258. <artifactId>jackson-core</artifactId>
  259. <version>${jackson.version}</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>com.fasterxml.jackson.core</groupId>
  263. <artifactId>jackson-databind</artifactId>
  264. <version>${jackson.version}</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>com.fasterxml.jackson.module</groupId>
  268. <artifactId>jackson-module-scala_${scala.binary.version}</artifactId>
  269. <version>${jackson.version}</version>
  270. </dependency>
  271. <dependency>
  272. <groupId>commons-codec</groupId>
  273. <artifactId>commons-codec</artifactId>
  274. <version>${commons-codec.version}</version>
  275. </dependency>
  276. <dependency>
  277. <groupId>io.dropwizard.metrics</groupId>
  278. <artifactId>metrics-core</artifactId>
  279. <version>${metrics.version}</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>io.dropwizard.metrics</groupId>
  283. <artifactId>metrics-healthchecks</artifactId>
  284. <version>${metrics.version}</version>
  285. </dependency>
  286. <dependency>
  287. <groupId>io.netty</groupId>
  288. <artifactId>netty-all</artifactId>
  289. <version>${netty.version}</version>
  290. </dependency>
  291. <dependency>
  292. <groupId>javax.servlet</groupId>
  293. <artifactId>javax.servlet-api</artifactId>
  294. <version>${javax.servlet-api.version}</version>
  295. </dependency>
  296. <dependency>
  297. <groupId>org.apache.hadoop</groupId>
  298. <artifactId>hadoop-auth</artifactId>
  299. <version>${hadoop.version}</version>
  300. </dependency>
  301. <dependency>
  302. <groupId>org.apache.hadoop</groupId>
  303. <artifactId>hadoop-common</artifactId>
  304. <version>${hadoop.version}</version>
  305. <exclusions>
  306. <exclusion>
  307. <groupId>javax.servlet</groupId>
  308. <artifactId>servlet-api</artifactId>
  309. </exclusion>
  310. </exclusions>
  311. </dependency>
  312. <dependency>
  313. <groupId>org.apache.hadoop</groupId>
  314. <artifactId>hadoop-common</artifactId>
  315. <classifier>tests</classifier>
  316. <version>${hadoop.version}</version>
  317. </dependency>
  318. <dependency>
  319. <groupId>org.apache.hadoop</groupId>
  320. <artifactId>hadoop-client</artifactId>
  321. <version>${hadoop.version}</version>
  322. </dependency>
  323. <dependency>
  324. <groupId>org.apache.hadoop</groupId>
  325. <artifactId>hadoop-hdfs</artifactId>
  326. <classifier>tests</classifier>
  327. <version>${hadoop.version}</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>org.apache.hadoop</groupId>
  331. <artifactId>hadoop-yarn-api</artifactId>
  332. <version>${hadoop.version}</version>
  333. </dependency>
  334. <dependency>
  335. <groupId>org.apache.hadoop</groupId>
  336. <artifactId>hadoop-yarn-client</artifactId>
  337. <version>${hadoop.version}</version>
  338. </dependency>
  339. <dependency>
  340. <groupId>org.apache.hadoop</groupId>
  341. <artifactId>hadoop-yarn-common</artifactId>
  342. <version>${hadoop.version}</version>
  343. </dependency>
  344. <dependency>
  345. <groupId>org.apache.hadoop</groupId>
  346. <artifactId>hadoop-yarn-server-tests</artifactId>
  347. <classifier>tests</classifier>
  348. <version>${hadoop.version}</version>
  349. </dependency>
  350. <dependency>
  351. <groupId>org.apache.httpcomponents</groupId>
  352. <artifactId>httpcore</artifactId>
  353. <version>${httpcore.version}</version>
  354. </dependency>
  355. <dependency>
  356. <groupId>org.apache.httpcomponents</groupId>
  357. <artifactId>httpclient</artifactId>
  358. <version>${httpclient.version}</version>
  359. </dependency>
  360. <dependency>
  361. <groupId>org.apache.spark</groupId>
  362. <artifactId>spark-core_${scala.binary.version}</artifactId>
  363. <version>${spark.version}</version>
  364. <exclusions>
  365. <exclusion>
  366. <groupId>org.eclipse.jetty.orbit</groupId>
  367. <artifactId>javax.servlet</artifactId>
  368. </exclusion>
  369. </exclusions>
  370. </dependency>
  371. <dependency>
  372. <groupId>org.apache.spark</groupId>
  373. <artifactId>spark-hive_${scala.binary.version}</artifactId>
  374. <version>${spark.version}</version>
  375. </dependency>
  376. <dependency>
  377. <groupId>org.apache.spark</groupId>
  378. <artifactId>spark-launcher_${scala.binary.version}</artifactId>
  379. <version>${spark.version}</version>
  380. <exclusions>
  381. <exclusion>
  382. <groupId>org.spark-project.spark</groupId>
  383. <artifactId>unused</artifactId>
  384. </exclusion>
  385. </exclusions>
  386. </dependency>
  387. <dependency>
  388. <groupId>org.apache.spark</groupId>
  389. <artifactId>spark-repl_${scala.binary.version}</artifactId>
  390. <version>${spark.version}</version>
  391. </dependency>
  392. <dependency>
  393. <groupId>org.apache.spark</groupId>
  394. <artifactId>spark-sql_${scala.binary.version}</artifactId>
  395. <version>${spark.version}</version>
  396. </dependency>
  397. <dependency>
  398. <groupId>org.apache.spark</groupId>
  399. <artifactId>spark-streaming_${scala.binary.version}</artifactId>
  400. <version>${spark.version}</version>
  401. <scope>provided</scope>
  402. </dependency>
  403. <dependency>
  404. <groupId>org.apache.spark</groupId>
  405. <artifactId>spark-yarn_${scala.binary.version}</artifactId>
  406. <version>${spark.version}</version>
  407. </dependency>
  408. <dependency>
  409. <groupId>org.eclipse.jetty</groupId>
  410. <artifactId>jetty-http</artifactId>
  411. <version>${jetty.version}</version>
  412. </dependency>
  413. <dependency>
  414. <groupId>org.eclipse.jetty</groupId>
  415. <artifactId>jetty-continuation</artifactId>
  416. <version>${jetty.version}</version>
  417. </dependency>
  418. <dependency>
  419. <groupId>org.eclipse.jetty</groupId>
  420. <artifactId>jetty-servlet</artifactId>
  421. <version>${jetty.version}</version>
  422. </dependency>
  423. <dependency>
  424. <groupId>org.eclipse.jetty</groupId>
  425. <artifactId>jetty-server</artifactId>
  426. <version>${jetty.version}</version>
  427. </dependency>
  428. <dependency>
  429. <groupId>org.eclipse.jetty</groupId>
  430. <artifactId>jetty-util</artifactId>
  431. <version>${jetty.version}</version>
  432. </dependency>
  433. <dependency>
  434. <groupId>org.eclipse.jetty</groupId>
  435. <artifactId>jetty-plus</artifactId>
  436. <version>${jetty.version}</version>
  437. </dependency>
  438. <dependency>
  439. <groupId>org.eclipse.jetty</groupId>
  440. <artifactId>jetty-security</artifactId>
  441. <version>${jetty.version}</version>
  442. </dependency>
  443. <dependency>
  444. <groupId>org.json4s</groupId>
  445. <artifactId>json4s_${scala.binary.version}</artifactId>
  446. <version>${json4s.version}</version>
  447. </dependency>
  448. <dependency>
  449. <groupId>org.json4s</groupId>
  450. <artifactId>json4s-ast_${scala.binary.version}</artifactId>
  451. <version>${json4s.version}</version>
  452. </dependency>
  453. <dependency>
  454. <groupId>org.json4s</groupId>
  455. <artifactId>json4s-core_${scala.binary.version}</artifactId>
  456. <version>${json4s.version}</version>
  457. </dependency>
  458. <dependency>
  459. <groupId>org.json4s</groupId>
  460. <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
  461. <version>${json4s.version}</version>
  462. </dependency>
  463. <dependency>
  464. <groupId>org.scala-lang</groupId>
  465. <artifactId>scala-compiler</artifactId>
  466. <version>${scala.version}</version>
  467. </dependency>
  468. <dependency>
  469. <groupId>org.scala-lang</groupId>
  470. <artifactId>scala-library</artifactId>
  471. <version>${scala.version}</version>
  472. </dependency>
  473. <dependency>
  474. <groupId>org.scala-lang</groupId>
  475. <artifactId>scala-reflect</artifactId>
  476. <version>${scala.version}</version>
  477. </dependency>
  478. <dependency>
  479. <groupId>org.scalatra</groupId>
  480. <artifactId>scalatra_${scala.binary.version}</artifactId>
  481. <version>${scalatra.version}</version>
  482. </dependency>
  483. <dependency>
  484. <groupId>org.scalatra</groupId>
  485. <artifactId>scalatra-jetty_${scala.binary.version}</artifactId>
  486. <version>${scalatra.version}</version>
  487. </dependency>
  488. <dependency>
  489. <groupId>org.scalatra</groupId>
  490. <artifactId>scalatra-json_${scala.binary.version}</artifactId>
  491. <version>${scalatra.version}</version>
  492. </dependency>
  493. <dependency>
  494. <groupId>org.scalatra</groupId>
  495. <artifactId>scalatra-metrics_${scala.binary.version}</artifactId>
  496. <version>${scalatra.version}</version>
  497. </dependency>
  498. <dependency>
  499. <groupId>org.scalatra</groupId>
  500. <artifactId>scalatra-test_${scala.binary.version}</artifactId>
  501. <version>${scalatra.version}</version>
  502. </dependency>
  503. <dependency>
  504. <groupId>net.sf.py4j</groupId>
  505. <artifactId>py4j</artifactId>
  506. <version>${py4j.version}</version>
  507. </dependency>
  508. <dependency>
  509. <groupId>org.asynchttpclient</groupId>
  510. <artifactId>async-http-client</artifactId>
  511. <version>${asynchttpclient.version}</version>
  512. </dependency>
  513. <!-- we need a version > 1.7.13 because of SLF4J-324 -->
  514. <dependency>
  515. <groupId>org.slf4j</groupId>
  516. <artifactId>slf4j-api</artifactId>
  517. <version>1.7.25</version>
  518. </dependency>
  519. </dependencies>
  520. </dependencyManagement>
  521. <build>
  522. <pluginManagement>
  523. <plugins>
  524. <plugin>
  525. <groupId>org.apache.maven.plugins</groupId>
  526. <artifactId>maven-compiler-plugin</artifactId>
  527. <version>3.3</version>
  528. </plugin>
  529. <plugin>
  530. <groupId>org.apache.maven.plugins</groupId>
  531. <artifactId>maven-assembly-plugin</artifactId>
  532. <version>2.6</version>
  533. </plugin>
  534. <plugin>
  535. <groupId>org.apache.maven.plugins</groupId>
  536. <artifactId>maven-antrun-plugin</artifactId>
  537. <version>1.8</version>
  538. </plugin>
  539. <plugin>
  540. <groupId>org.apache.maven.plugins</groupId>
  541. <artifactId>maven-jar-plugin</artifactId>
  542. <version>2.3.2</version>
  543. </plugin>
  544. <plugin>
  545. <groupId>org.apache.maven.plugins</groupId>
  546. <artifactId>maven-deploy-plugin</artifactId>
  547. <version>2.8.2</version>
  548. </plugin>
  549. <plugin>
  550. <groupId>org.apache.felix</groupId>
  551. <artifactId>maven-bundle-plugin</artifactId>
  552. <version>2.4.0</version>
  553. </plugin>
  554. <plugin>
  555. <groupId>org.codehaus.mojo</groupId>
  556. <artifactId>build-helper-maven-plugin</artifactId>
  557. <version>1.10</version>
  558. </plugin>
  559. <plugin>
  560. <groupId>net.alchim31.maven</groupId>
  561. <artifactId>scala-maven-plugin</artifactId>
  562. <version>4.2.0</version>
  563. <executions>
  564. <execution>
  565. <goals>
  566. <goal>compile</goal>
  567. <goal>testCompile</goal>
  568. </goals>
  569. </execution>
  570. <execution>
  571. <id>scala-compile-first</id>
  572. <phase>process-resources</phase>
  573. <goals>
  574. <goal>compile</goal>
  575. </goals>
  576. </execution>
  577. </executions>
  578. <configuration>
  579. <scalaVersion>${scala.version}</scalaVersion>
  580. <recompileMode>incremental</recompileMode>
  581. <checkMultipleScalaVersions>false</checkMultipleScalaVersions>
  582. <args>
  583. <arg>-unchecked</arg>
  584. <arg>-deprecation</arg>
  585. <arg>-feature</arg>
  586. </args>
  587. <javacArgs>
  588. <javacArg>-source</javacArg>
  589. <javacArg>${java.version}</javacArg>
  590. <javacArg>-target</javacArg>
  591. <javacArg>${java.version}</javacArg>
  592. <javacArg>-Xlint:unchecked</javacArg>
  593. </javacArgs>
  594. <jvmArgs>
  595. <jvmArg>-Xms1024m</jvmArg>
  596. <jvmArg>-Xmx1024m</jvmArg>
  597. <jvmArg>-XX:ReservedCodeCacheSize=${CodeCacheSize}</jvmArg>
  598. </jvmArgs>
  599. </configuration>
  600. </plugin>
  601. <plugin>
  602. <groupId>org.apache.maven.plugins</groupId>
  603. <artifactId>maven-install-plugin</artifactId>
  604. <version>2.5.2</version>
  605. </plugin>
  606. <plugin>
  607. <groupId>org.apache.maven.plugins</groupId>
  608. <artifactId>maven-shade-plugin</artifactId>
  609. <version>3.2.1</version>
  610. </plugin>
  611. <plugin>
  612. <groupId>org.apache.maven.plugins</groupId>
  613. <artifactId>maven-surefire-plugin</artifactId>
  614. <version>2.19</version>
  615. <configuration>
  616. <environmentVariables>
  617. <LIVY_TEST>true</LIVY_TEST>
  618. <SPARK_HOME>${spark.home}</SPARK_HOME>
  619. <LIVY_SPARK_VERSION>${spark.version}</LIVY_SPARK_VERSION>
  620. </environmentVariables>
  621. <systemProperties>
  622. <java.awt.headless>true</java.awt.headless>
  623. <java.io.tmpdir>${project.build.directory}/tmp</java.io.tmpdir>
  624. <livy.environment>development</livy.environment>
  625. <jacoco.args>${argLine}</jacoco.args>
  626. <spark.ui.enabled>false</spark.ui.enabled>
  627. <project.version>${project.version}</project.version>
  628. <skipRTests>${skipRTests}</skipRTests>
  629. <skipPySpark3Tests>${skipPySpark3Tests}</skipPySpark3Tests>
  630. </systemProperties>
  631. <redirectTestOutputToFile>${test.redirectToFile}</redirectTestOutputToFile>
  632. <useFile>${test.redirectToFile}</useFile>
  633. <argLine>${argLine} -Xmx2g</argLine>
  634. <failIfNoTests>false</failIfNoTests>
  635. </configuration>
  636. </plugin>
  637. <plugin>
  638. <groupId>org.scalatest</groupId>
  639. <artifactId>scalatest-maven-plugin</artifactId>
  640. <version>2.0.0</version>
  641. <configuration>
  642. <environmentVariables>
  643. <LIVY_TEST>true</LIVY_TEST>
  644. <SPARK_HOME>${spark.home}</SPARK_HOME>
  645. <LIVY_LOG_DIR>${livy.log.dir}</LIVY_LOG_DIR>
  646. <LIVY_SPARK_VERSION>${spark.version}</LIVY_SPARK_VERSION>
  647. <LIVY_SCALA_VERSION>${scala.binary.version}</LIVY_SCALA_VERSION>
  648. </environmentVariables>
  649. <systemProperties>
  650. <java.awt.headless>true</java.awt.headless>
  651. <java.io.tmpdir>${project.build.directory}/tmp</java.io.tmpdir>
  652. <livy.environment>development</livy.environment>
  653. <jacoco.args>${argLine}</jacoco.args>
  654. <spark.ui.enabled>false</spark.ui.enabled>
  655. <project.version>${project.version}</project.version>
  656. <skipRTests>${skipRTests}</skipRTests>
  657. <skipPySpark3Tests>${skipPySpark3Tests}</skipPySpark3Tests>
  658. </systemProperties>
  659. <stdout>D</stdout>
  660. <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
  661. <junitxml>.</junitxml>
  662. <filereports>WDF TestSuite.txt</filereports>
  663. <argLine>${argLine} -Xmx2g</argLine>
  664. </configuration>
  665. <executions>
  666. <execution>
  667. <id>test</id>
  668. <goals>
  669. <goal>test</goal>
  670. </goals>
  671. </execution>
  672. </executions>
  673. </plugin>
  674. <plugin>
  675. <groupId>org.apache.rat</groupId>
  676. <artifactId>apache-rat-plugin</artifactId>
  677. <version>0.12</version>
  678. </plugin>
  679. <plugin>
  680. <groupId>org.apache.maven.plugins</groupId>
  681. <artifactId>maven-remote-resources-plugin</artifactId>
  682. <version>1.5</version>
  683. </plugin>
  684. <plugin>
  685. <groupId>org.codehaus.mojo</groupId>
  686. <artifactId>license-maven-plugin</artifactId>
  687. <version>1.13</version>
  688. </plugin>
  689. <plugin>
  690. <groupId>org.apache.maven.plugins</groupId>
  691. <artifactId>maven-javadoc-plugin</artifactId>
  692. <version>3.0.0-M1</version>
  693. <configuration>
  694. <doctitle>Livy ${project.version} Java API</doctitle>
  695. <windowtitle>Livy ${project.version} JavaDoc</windowtitle>
  696. </configuration>
  697. </plugin>
  698. <plugin>
  699. <groupId>com.googlecode.maven-download-plugin</groupId>
  700. <artifactId>download-maven-plugin</artifactId>
  701. <version>1.3.0</version>
  702. </plugin>
  703. </plugins>
  704. </pluginManagement>
  705. <plugins>
  706. <plugin>
  707. <groupId>org.apache.maven.plugins</groupId>
  708. <artifactId>maven-compiler-plugin</artifactId>
  709. <executions>
  710. <execution>
  711. <id>default-compile</id>
  712. <phase>none</phase>
  713. </execution>
  714. <execution>
  715. <id>default-testCompile</id>
  716. <phase>none</phase>
  717. </execution>
  718. </executions>
  719. <configuration>
  720. <source>${java.version}</source>
  721. <target>${java.version}</target>
  722. </configuration>
  723. </plugin>
  724. <plugin>
  725. <groupId>org.apache.maven.plugins</groupId>
  726. <artifactId>maven-enforcer-plugin</artifactId>
  727. <inherited>false</inherited>
  728. <configuration>
  729. <rules>
  730. <requireJavaVersion>
  731. <version>${java.version}</version>
  732. </requireJavaVersion>
  733. <requireMavenVersion>
  734. <version>[3.0.0,)</version>
  735. </requireMavenVersion>
  736. </rules>
  737. </configuration>
  738. <executions>
  739. <execution>
  740. <id>default</id>
  741. <goals>
  742. <goal>enforce</goal>
  743. </goals>
  744. <phase>validate</phase>
  745. </execution>
  746. </executions>
  747. </plugin>
  748. <plugin>
  749. <groupId>org.apache.maven.plugins</groupId>
  750. <artifactId>maven-antrun-plugin</artifactId>
  751. <executions>
  752. <!-- Cleans up files that tests append to (because we have two test plugins). -->
  753. <execution>
  754. <id>pre-test-clean</id>
  755. <phase>generate-test-resources</phase>
  756. <goals>
  757. <goal>run</goal>
  758. </goals>
  759. <configuration>
  760. <target>
  761. <delete file="${project.build.directory}/unit-tests.log" quiet="true" />
  762. <delete dir="${project.build.directory}/jacoco" quiet="true" />
  763. <delete dir="${project.build.directory}/tmp" quiet="true" />
  764. </target>
  765. </configuration>
  766. </execution>
  767. <!-- Create the temp directory to be used by tests. -->
  768. <execution>
  769. <id>create-tmp-dir</id>
  770. <phase>generate-test-resources</phase>
  771. <goals>
  772. <goal>run</goal>
  773. </goals>
  774. <configuration>
  775. <target>
  776. <mkdir dir="${project.build.directory}/tmp" />
  777. </target>
  778. </configuration>
  779. </execution>
  780. <!--
  781. Copy the template scalastyle / checkstyle configuration and replace the copyright
  782. header.
  783. -->
  784. <execution>
  785. <id>setup-style-checker</id>
  786. <phase>verify</phase>
  787. <goals>
  788. <goal>run</goal>
  789. </goals>
  790. <configuration>
  791. <target>
  792. <copy file="${execution.root}/scalastyle.xml" tofile="${project.build.directory}/scalastyle.xml" />
  793. <replace file="${project.build.directory}/scalastyle.xml" token="{{COPYRIGHT_HEADER}}" value="${copyright.header}" />
  794. <copy file="${execution.root}/checkstyle.xml" tofile="${project.build.directory}/checkstyle.xml" />
  795. <echo file="${project.build.directory}/checkstyle.header" message="${copyright.header}" />
  796. <replace file="${project.build.directory}/checkstyle.xml" token="{{HEADER_FILE}}" value="${project.build.directory}/checkstyle.header" />
  797. </target>
  798. </configuration>
  799. </execution>
  800. </executions>
  801. </plugin>
  802. <plugin>
  803. <groupId>org.scalastyle</groupId>
  804. <artifactId>scalastyle-maven-plugin</artifactId>
  805. <version>0.8.0</version>
  806. <configuration>
  807. <verbose>false</verbose>
  808. <failOnViolation>true</failOnViolation>
  809. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  810. <failOnWarning>false</failOnWarning>
  811. <sourceDirectory>${basedir}/src/main/scala</sourceDirectory>
  812. <testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory>
  813. <configLocation>${project.build.directory}/scalastyle.xml</configLocation>
  814. <outputFile>${basedir}/target/scalastyle-output.xml</outputFile>
  815. <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
  816. <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
  817. </configuration>
  818. <executions>
  819. <execution>
  820. <goals>
  821. <goal>check</goal>
  822. </goals>
  823. </execution>
  824. </executions>
  825. </plugin>
  826. <plugin>
  827. <groupId>org.apache.maven.plugins</groupId>
  828. <artifactId>maven-checkstyle-plugin</artifactId>
  829. <version>2.17</version>
  830. <configuration>
  831. <verbose>false</verbose>
  832. <failOnViolation>true</failOnViolation>
  833. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  834. <failOnWarning>false</failOnWarning>
  835. <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
  836. <testSourceDirectory>${basedir}/src/test/java</testSourceDirectory>
  837. <configLocation>${project.build.directory}/checkstyle.xml</configLocation>
  838. <outputFile>${basedir}/target/checkstyle-output.xml</outputFile>
  839. <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
  840. <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
  841. </configuration>
  842. <executions>
  843. <execution>
  844. <goals>
  845. <goal>check</goal>
  846. </goals>
  847. </execution>
  848. </executions>
  849. </plugin>
  850. <plugin>
  851. <groupId>org.apache.maven.plugins</groupId>
  852. <artifactId>maven-deploy-plugin</artifactId>
  853. <configuration>
  854. <skip>${skipDeploy}</skip>
  855. </configuration>
  856. </plugin>
  857. <plugin>
  858. <groupId>org.apache.maven.plugins</groupId>
  859. <artifactId>maven-dependency-plugin</artifactId>
  860. <version>2.10</version>
  861. <configuration>
  862. <outputDirectory>${project.build.directory}/jars</outputDirectory>
  863. <useSubDirectoryPerType>false</useSubDirectoryPerType>
  864. <includeScope>runtime</includeScope>
  865. <silent>true</silent>
  866. <overWriteReleases>true</overWriteReleases>
  867. <overWriteSnapshots>true</overWriteSnapshots>
  868. </configuration>
  869. </plugin>
  870. <plugin>
  871. <groupId>org.apache.maven.plugins</groupId>
  872. <artifactId>maven-surefire-plugin</artifactId>
  873. </plugin>
  874. <plugin>
  875. <groupId>org.jacoco</groupId>
  876. <artifactId>jacoco-maven-plugin</artifactId>
  877. <version>0.8.2</version>
  878. <executions>
  879. <execution>
  880. <goals>
  881. <goal>prepare-agent</goal>
  882. </goals>
  883. <configuration>
  884. <append>true</append>
  885. <destFile>${project.build.directory}/jacoco/main.exec</destFile>
  886. </configuration>
  887. </execution>
  888. </executions>
  889. </plugin>
  890. <plugin>
  891. <groupId>org.apache.rat</groupId>
  892. <artifactId>apache-rat-plugin</artifactId>
  893. <configuration>
  894. <excludesFile>${execution.root}/.rat-excludes</excludesFile>
  895. </configuration>
  896. <executions>
  897. <execution>
  898. <phase>verify</phase>
  899. <goals>
  900. <goal>check</goal>
  901. </goals>
  902. </execution>
  903. </executions>
  904. </plugin>
  905. </plugins>
  906. </build>
  907. <reporting>
  908. <plugins>
  909. <plugin>
  910. <groupId>net.alchim31.maven</groupId>
  911. <artifactId>scala-maven-plugin</artifactId>
  912. </plugin>
  913. </plugins>
  914. </reporting>
  915. <profiles>
  916. <profile>
  917. <id>thriftserver</id>
  918. <modules>
  919. <module>thriftserver/server</module>
  920. <module>thriftserver/session</module>
  921. <module>thriftserver/client</module>
  922. </modules>
  923. </profile>
  924. <profile>
  925. <id>spark-3.0</id>
  926. <activation>
  927. <property>
  928. <name>spark-3.0</name>
  929. </property>
  930. </activation>
  931. <properties>
  932. <spark.scala-2.12.version>3.0.0</spark.scala-2.12.version>
  933. <spark.scala-2.11.version>2.4.5</spark.scala-2.11.version>
  934. <spark.version>${spark.scala-2.11.version}</spark.version>
  935. <netty.spark-2.12.version>4.1.47.Final</netty.spark-2.12.version>
  936. <netty.spark-2.11.version>4.1.47.Final</netty.spark-2.11.version>
  937. <netty.version>${netty.spark-2.11.version}</netty.version>
  938. <java.version>1.8</java.version>
  939. <py4j.version>0.10.9</py4j.version>
  940. <json4s.spark-2.11.version>3.5.3</json4s.spark-2.11.version>
  941. <json4s.spark-2.12.version>3.6.6</json4s.spark-2.12.version>
  942. <json4s.version>${json4s.spark-2.11.version}</json4s.version>
  943. <!-- <spark.bin.download.url> -->
  944. <!-- https://archive.apache.org/dist/spark/spark-3.0.0/spark-3.0.0-bin-hadoop2.7.tgz -->
  945. <!-- http://mirror.nju.edu.cn/apache/spark/spark-3.1.3/spark-3.1.3-bin-hadoop3.2.tgz -->
  946. <!-- </spark.bin.download.url> -->
  947. <spark.bin.name>spark-3.0.3-bin-hadoop3.2</spark.bin.name>
  948. <!-- <spark.bin.name>spark-2.4.7-bin-hadoop2.7</spark.bin.name>-->
  949. </properties>
  950. </profile>
  951. <profile>
  952. <id>skip-parent-modules</id>
  953. <activation>
  954. <file>
  955. <missing>src/main/resources/build.marker</missing>
  956. </file>
  957. </activation>
  958. <build>
  959. <plugins>
  960. <plugin>
  961. <groupId>org.scalatest</groupId>
  962. <artifactId>scalatest-maven-plugin</artifactId>
  963. </plugin>
  964. <plugin>
  965. <groupId>net.alchim31.maven</groupId>
  966. <artifactId>scala-maven-plugin</artifactId>
  967. </plugin>
  968. </plugins>
  969. </build>
  970. </profile>
  971. <profile>
  972. <!-- This will search remote and local repos to generate THIRD-PARTY license file, make sure
  973. livy artifacts existed in either remote or local repos, otherwise run mvn install before. -->
  974. <id>generate-third-party</id>
  975. <activation>
  976. <property>
  977. <name>generate-third-party</name>
  978. </property>
  979. </activation>
  980. <build>
  981. <plugins>
  982. <plugin>
  983. <groupId>org.codehaus.mojo</groupId>
  984. <artifactId>license-maven-plugin</artifactId>
  985. <inherited>false</inherited>
  986. <configuration>
  987. <outputDirectory>${execution.root}</outputDirectory>
  988. <thirdPartyFilename>THIRD-PARTY</thirdPartyFilename>
  989. <sortArtifactByName>true</sortArtifactByName>
  990. <fileTemplate>${execution.root}/dev/third-party-file.ftl</fileTemplate>
  991. <useMissingFile>true</useMissingFile>
  992. <missingFile>${execution.root}/dev/third-party-missing-license.properties</missingFile>
  993. </configuration>
  994. <executions>
  995. <execution>
  996. <phase>prepare-package</phase>
  997. <goals>
  998. <goal>aggregate-add-third-party</goal>
  999. </goals>
  1000. </execution>
  1001. </executions>
  1002. </plugin>
  1003. </plugins>
  1004. </build>
  1005. </profile>
  1006. <profile>
  1007. <id>public-docs</id>
  1008. <activation>
  1009. <property>
  1010. <name>public-docs</name>
  1011. </property>
  1012. </activation>
  1013. <build>
  1014. <plugins>
  1015. <plugin>
  1016. <groupId>org.apache.maven.plugins</groupId>
  1017. <artifactId>maven-javadoc-plugin</artifactId>
  1018. <configuration>
  1019. <failOnError>true</failOnError>
  1020. <excludePackageNames>*.test,*.example,*.client,*.annotations,*.rsc</excludePackageNames>
  1021. </configuration>
  1022. </plugin>
  1023. </plugins>
  1024. </build>
  1025. </profile>
  1026. </profiles>
  1027. </project>