pom.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  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. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <project xmlns="http://maven.apache.org/POM/4.0.0"
  17. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  18. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  19. https://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <parent>
  21. <artifactId>hadoop-yarn-server</artifactId>
  22. <groupId>org.apache.hadoop</groupId>
  23. <version>3.5.0-SNAPSHOT</version>
  24. </parent>
  25. <modelVersion>4.0.0</modelVersion>
  26. <artifactId>hadoop-yarn-server-timelineservice-hbase-tests</artifactId>
  27. <version>3.5.0-SNAPSHOT</version>
  28. <name>Apache Hadoop YARN TimelineService HBase tests</name>
  29. <properties>
  30. <!-- Needed for generating FindBugs warnings using parent pom -->
  31. <yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
  32. </properties>
  33. <dependencies>
  34. <dependency>
  35. <groupId>junit</groupId>
  36. <artifactId>junit</artifactId>
  37. <scope>test</scope>
  38. </dependency>
  39. <!-- Since hbase 1.0.1 requires an older version of hadoop we enforce an
  40. older version of hadoop just for the hbase unit tests. We also need to
  41. exclude hadoop-common and hadoop-hdfs on each dependency that has
  42. transitive dependencies on them.
  43. -->
  44. <dependency>
  45. <groupId>org.apache.hadoop</groupId>
  46. <artifactId>hadoop-yarn-server-timelineservice</artifactId>
  47. <scope>test</scope>
  48. <exclusions>
  49. <exclusion>
  50. <groupId>org.apache.hadoop</groupId>
  51. <artifactId>hadoop-common</artifactId>
  52. </exclusion>
  53. <exclusion>
  54. <artifactId>jersey-client</artifactId>
  55. <groupId>org.glassfish.jersey.core</groupId>
  56. </exclusion>
  57. </exclusions>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.hadoop</groupId>
  61. <artifactId>hadoop-yarn-server-timelineservice-hbase-client</artifactId>
  62. <scope>test</scope>
  63. <exclusions>
  64. <exclusion>
  65. <groupId>org.apache.hadoop</groupId>
  66. <artifactId>hadoop-common</artifactId>
  67. </exclusion>
  68. </exclusions>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.hadoop</groupId>
  72. <artifactId>hadoop-yarn-server-timelineservice-hbase-common</artifactId>
  73. <scope>test</scope>
  74. <exclusions>
  75. <exclusion>
  76. <groupId>org.apache.hadoop</groupId>
  77. <artifactId>hadoop-common</artifactId>
  78. </exclusion>
  79. </exclusions>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.hadoop</groupId>
  83. <artifactId>hadoop-common</artifactId>
  84. <version>${hbase-compatible-hadoop.version}</version>
  85. <scope>test</scope>
  86. <exclusions>
  87. <exclusion>
  88. <groupId>org.apache.hadoop</groupId>
  89. <artifactId>hadoop-auth</artifactId>
  90. </exclusion>
  91. <exclusion>
  92. <groupId>tomcat</groupId>
  93. <artifactId>jasper-runtime</artifactId>
  94. </exclusion>
  95. <exclusion>
  96. <groupId>org.apache.hadoop</groupId>
  97. <artifactId>hadoop-hdfs-client</artifactId>
  98. </exclusion>
  99. <exclusion>
  100. <groupId>com.sun.jersey</groupId>
  101. <artifactId>jersey-json</artifactId>
  102. </exclusion>
  103. </exclusions>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.junit.jupiter</groupId>
  107. <artifactId>junit-jupiter-api</artifactId>
  108. <scope>test</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.junit.jupiter</groupId>
  112. <artifactId>junit-jupiter-engine</artifactId>
  113. <scope>test</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.junit.jupiter</groupId>
  117. <artifactId>junit-jupiter-params</artifactId>
  118. <scope>test</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.junit.platform</groupId>
  122. <artifactId>junit-platform-launcher</artifactId>
  123. <scope>test</scope>
  124. </dependency>
  125. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  126. dependency -->
  127. <dependency>
  128. <groupId>org.apache.hadoop</groupId>
  129. <artifactId>hadoop-auth</artifactId>
  130. <version>${hbase-compatible-hadoop.version}</version>
  131. <scope>test</scope>
  132. <exclusions>
  133. <exclusion>
  134. <groupId>org.apache.hadoop</groupId>
  135. <artifactId>hadoop-hdfs-client</artifactId>
  136. </exclusion>
  137. </exclusions>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.hadoop</groupId>
  141. <artifactId>hadoop-yarn-api</artifactId>
  142. <scope>test</scope>
  143. <exclusions>
  144. <exclusion>
  145. <groupId>org.apache.hadoop</groupId>
  146. <artifactId>hadoop-common</artifactId>
  147. </exclusion>
  148. <exclusion>
  149. <groupId>org.apache.hadoop</groupId>
  150. <artifactId>hadoop-hdfs-client</artifactId>
  151. </exclusion>
  152. </exclusions>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.apache.hadoop</groupId>
  156. <artifactId>hadoop-yarn-common</artifactId>
  157. <scope>test</scope>
  158. <exclusions>
  159. <exclusion>
  160. <groupId>org.apache.hadoop</groupId>
  161. <artifactId>hadoop-common</artifactId>
  162. </exclusion>
  163. <exclusion>
  164. <groupId>org.apache.hadoop</groupId>
  165. <artifactId>hadoop-auth</artifactId>
  166. </exclusion>
  167. <exclusion>
  168. <groupId>org.apache.hadoop</groupId>
  169. <artifactId>hadoop-hdfs-client</artifactId>
  170. </exclusion>
  171. <exclusion>
  172. <artifactId>jersey-common</artifactId>
  173. <groupId>org.glassfish.jersey.core</groupId>
  174. </exclusion>
  175. <exclusion>
  176. <artifactId>jersey-server</artifactId>
  177. <groupId>org.glassfish.jersey.core</groupId>
  178. </exclusion>
  179. </exclusions>
  180. </dependency>
  181. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  182. dependency -->
  183. <dependency>
  184. <groupId>org.apache.hadoop</groupId>
  185. <artifactId>hadoop-yarn-server-applicationhistoryservice</artifactId>
  186. <scope>test</scope>
  187. <exclusions>
  188. <exclusion>
  189. <groupId>org.apache.hadoop</groupId>
  190. <artifactId>hadoop-common</artifactId>
  191. </exclusion>
  192. <exclusion>
  193. <groupId>org.glassfish.jersey.core</groupId>
  194. <artifactId>jersey-common</artifactId>
  195. </exclusion>
  196. <exclusion>
  197. <groupId>org.glassfish.jersey.core</groupId>
  198. <artifactId>jersey-client</artifactId>
  199. </exclusion>
  200. <exclusion>
  201. <groupId>org.glassfish.jersey.inject</groupId>
  202. <artifactId>jersey-hk2</artifactId>
  203. </exclusion>
  204. <exclusion>
  205. <groupId>org.glassfish.jersey.media</groupId>
  206. <artifactId>jersey-media-json-jettison</artifactId>
  207. </exclusion>
  208. <exclusion>
  209. <groupId>org.glassfish.jersey.test-framework.providers</groupId>
  210. <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
  211. </exclusion>
  212. <exclusion>
  213. <groupId>org.glassfish.jersey.test-framework</groupId>
  214. <artifactId>jersey-test-framework-core</artifactId>
  215. </exclusion>
  216. </exclusions>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.apache.hadoop.thirdparty</groupId>
  220. <artifactId>hadoop-shaded-guava</artifactId>
  221. <scope>test</scope>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.xerial.snappy</groupId>
  225. <artifactId>snappy-java</artifactId>
  226. <scope>runtime</scope>
  227. </dependency>
  228. <dependency>
  229. <groupId>com.sun.jersey</groupId>
  230. <artifactId>jersey-client</artifactId>
  231. <version>1.19.4</version>
  232. <scope>test</scope>
  233. </dependency>
  234. <dependency>
  235. <groupId>javax.ws.rs</groupId>
  236. <artifactId>jsr311-api</artifactId>
  237. <version>1.1.1</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>org.apache.hbase</groupId>
  241. <artifactId>hbase-common</artifactId>
  242. <scope>test</scope>
  243. <exclusions>
  244. <exclusion>
  245. <groupId>org.apache.hadoop</groupId>
  246. <artifactId>hadoop-common</artifactId>
  247. </exclusion>
  248. <exclusion>
  249. <groupId>org.apache.hadoop</groupId>
  250. <artifactId>hadoop-mapreduce-client-core</artifactId>
  251. </exclusion>
  252. </exclusions>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.apache.hbase</groupId>
  256. <artifactId>hbase-client</artifactId>
  257. <scope>test</scope>
  258. <exclusions>
  259. <exclusion>
  260. <groupId>org.apache.hadoop</groupId>
  261. <artifactId>hadoop-common</artifactId>
  262. </exclusion>
  263. <exclusion>
  264. <groupId>org.apache.hadoop</groupId>
  265. <artifactId>hadoop-auth</artifactId>
  266. </exclusion>
  267. <exclusion>
  268. <groupId>org.apache.hadoop</groupId>
  269. <artifactId>hadoop-mapreduce-client-core</artifactId>
  270. </exclusion>
  271. </exclusions>
  272. </dependency>
  273. <dependency>
  274. <groupId>org.apache.hbase</groupId>
  275. <artifactId>hbase-server</artifactId>
  276. <scope>test</scope>
  277. <exclusions>
  278. <exclusion>
  279. <groupId>org.apache.hadoop</groupId>
  280. <artifactId>hadoop-common</artifactId>
  281. </exclusion>
  282. <exclusion>
  283. <groupId>org.apache.hadoop</groupId>
  284. <artifactId>hadoop-auth</artifactId>
  285. </exclusion>
  286. <exclusion>
  287. <groupId>org.apache.hadoop</groupId>
  288. <artifactId>hadoop-hdfs</artifactId>
  289. </exclusion>
  290. <exclusion>
  291. <groupId>org.apache.hadoop</groupId>
  292. <artifactId>hadoop-hdfs-client</artifactId>
  293. </exclusion>
  294. <exclusion>
  295. <groupId>org.apache.hadoop</groupId>
  296. <artifactId>hadoop-client</artifactId>
  297. </exclusion>
  298. <exclusion>
  299. <groupId>org.apache.hadoop</groupId>
  300. <artifactId>hadoop-mapreduce-client-core</artifactId>
  301. </exclusion>
  302. <exclusion>
  303. <groupId>org.apache.hadoop</groupId>
  304. <artifactId>hadoop-distcp</artifactId>
  305. </exclusion>
  306. </exclusions>
  307. </dependency>
  308. <dependency>
  309. <groupId>org.apache.hbase</groupId>
  310. <artifactId>hbase-server</artifactId>
  311. <classifier>tests</classifier>
  312. <scope>test</scope>
  313. <exclusions>
  314. <exclusion>
  315. <groupId>org.apache.hadoop</groupId>
  316. <artifactId>hadoop-common</artifactId>
  317. </exclusion>
  318. <exclusion>
  319. <groupId>org.apache.hadoop</groupId>
  320. <artifactId>hadoop-auth</artifactId>
  321. </exclusion>
  322. <exclusion>
  323. <groupId>org.apache.hadoop</groupId>
  324. <artifactId>hadoop-hdfs</artifactId>
  325. </exclusion>
  326. <exclusion>
  327. <groupId>org.apache.hadoop</groupId>
  328. <artifactId>hadoop-hdfs-client</artifactId>
  329. </exclusion>
  330. <exclusion>
  331. <groupId>org.apache.hadoop</groupId>
  332. <artifactId>hadoop-client</artifactId>
  333. </exclusion>
  334. <exclusion>
  335. <groupId>org.apache.hadoop</groupId>
  336. <artifactId>hadoop-mapreduce-client-core</artifactId>
  337. </exclusion>
  338. <exclusion>
  339. <groupId>org.apache.hadoop</groupId>
  340. <artifactId>hadoop-distcp</artifactId>
  341. </exclusion>
  342. </exclusions>
  343. </dependency>
  344. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  345. dependency -->
  346. <dependency>
  347. <groupId>org.apache.hadoop</groupId>
  348. <artifactId>hadoop-common</artifactId>
  349. <version>${hbase-compatible-hadoop.version}</version>
  350. <type>test-jar</type>
  351. <scope>test</scope>
  352. <exclusions>
  353. <exclusion>
  354. <groupId>org.apache.hadoop</groupId>
  355. <artifactId>hadoop-auth</artifactId>
  356. </exclusion>
  357. <exclusion>
  358. <groupId>com.sun.jersey</groupId>
  359. <artifactId>jersey-json</artifactId>
  360. </exclusion>
  361. <exclusion>
  362. <groupId>commons-logging</groupId>
  363. <artifactId>commons-logging</artifactId>
  364. </exclusion>
  365. </exclusions>
  366. </dependency>
  367. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  368. dependency -->
  369. <dependency>
  370. <groupId>org.apache.hadoop</groupId>
  371. <artifactId>hadoop-hdfs</artifactId>
  372. <version>${hbase-compatible-hadoop.version}</version>
  373. <scope>test</scope>
  374. <exclusions>
  375. <exclusion>
  376. <groupId>org.apache.hadoop</groupId>
  377. <artifactId>hadoop-hdfs-client</artifactId>
  378. </exclusion>
  379. <exclusion>
  380. <groupId>commons-logging</groupId>
  381. <artifactId>commons-logging</artifactId>
  382. </exclusion>
  383. </exclusions>
  384. </dependency>
  385. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  386. dependency -->
  387. <dependency>
  388. <groupId>org.apache.hadoop</groupId>
  389. <artifactId>hadoop-hdfs</artifactId>
  390. <version>${hbase-compatible-hadoop.version}</version>
  391. <type>test-jar</type>
  392. <scope>test</scope>
  393. <exclusions>
  394. <exclusion>
  395. <groupId>org.apache.hadoop</groupId>
  396. <artifactId>hadoop-hdfs-client</artifactId>
  397. </exclusion>
  398. <exclusion>
  399. <groupId>commons-logging</groupId>
  400. <artifactId>commons-logging</artifactId>
  401. </exclusion>
  402. </exclusions>
  403. </dependency>
  404. <dependency>
  405. <groupId>org.apache.hadoop</groupId>
  406. <artifactId>hadoop-hdfs-client</artifactId>
  407. <version>${hbase-compatible-hadoop.version}</version>
  408. <scope>test</scope>
  409. </dependency>
  410. <dependency>
  411. <groupId>org.assertj</groupId>
  412. <artifactId>assertj-core</artifactId>
  413. <scope>test</scope>
  414. </dependency>
  415. <dependency>
  416. <groupId>org.apache.hbase</groupId>
  417. <artifactId>hbase-testing-util</artifactId>
  418. <scope>test</scope>
  419. <optional>true</optional>
  420. <exclusions>
  421. <exclusion>
  422. <groupId>org.apache.hadoop</groupId>
  423. <artifactId>hadoop-common</artifactId>
  424. </exclusion>
  425. <exclusion>
  426. <groupId>org.apache.hadoop</groupId>
  427. <artifactId>hadoop-auth</artifactId>
  428. </exclusion>
  429. <exclusion>
  430. <groupId>org.apache.hadoop</groupId>
  431. <artifactId>hadoop-client</artifactId>
  432. </exclusion>
  433. <exclusion>
  434. <groupId>org.apache.hadoop</groupId>
  435. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  436. </exclusion>
  437. <exclusion>
  438. <groupId>org.apache.hadoop</groupId>
  439. <artifactId>hadoop-mapreduce-client-core</artifactId>
  440. </exclusion>
  441. </exclusions>
  442. </dependency>
  443. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  444. dependency -->
  445. <!-- Jetty 9 is needed by the ATS code -->
  446. <dependency>
  447. <groupId>org.eclipse.jetty</groupId>
  448. <artifactId>jetty-servlet</artifactId>
  449. <scope>test</scope>
  450. </dependency>
  451. <dependency>
  452. <groupId>org.eclipse.jetty</groupId>
  453. <artifactId>jetty-webapp</artifactId>
  454. <scope>test</scope>
  455. </dependency>
  456. <dependency>
  457. <groupId>org.apache.commons</groupId>
  458. <artifactId>commons-lang3</artifactId>
  459. <scope>test</scope>
  460. </dependency>
  461. <dependency>
  462. <groupId>org.apache.hadoop</groupId>
  463. <artifactId>hadoop-yarn-server-timelineservice-hbase-server-2</artifactId>
  464. <scope>test</scope>
  465. <exclusions>
  466. <exclusion>
  467. <groupId>org.apache.hadoop</groupId>
  468. <artifactId>hadoop-common</artifactId>
  469. </exclusion>
  470. </exclusions>
  471. </dependency>
  472. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  473. dependency -->
  474. <!-- This is needed by HBaseTestingUtility -->
  475. <dependency>
  476. <groupId>org.mockito</groupId>
  477. <artifactId>mockito-inline</artifactId>
  478. <scope>test</scope>
  479. </dependency>
  480. </dependencies>
  481. <build>
  482. <plugins>
  483. <plugin>
  484. <groupId>com.github.spotbugs</groupId>
  485. <artifactId>spotbugs-maven-plugin</artifactId>
  486. <configuration>
  487. <includeTests>true</includeTests>
  488. </configuration>
  489. </plugin>
  490. <plugin>
  491. <artifactId>maven-jar-plugin</artifactId>
  492. <executions>
  493. <execution>
  494. <goals>
  495. <goal>test-jar</goal>
  496. </goals>
  497. <phase>test-compile</phase>
  498. </execution>
  499. </executions>
  500. </plugin>
  501. <plugin>
  502. <groupId>org.apache.maven.plugins</groupId>
  503. <artifactId>maven-enforcer-plugin</artifactId>
  504. <executions>
  505. <execution>
  506. <id>depcheck</id>
  507. <configuration>
  508. <!-- disable dependency convergence check -->
  509. <skip>true</skip>
  510. </configuration>
  511. <goals>
  512. <goal>enforce</goal>
  513. </goals>
  514. <phase/>
  515. </execution>
  516. </executions>
  517. </plugin>
  518. <!-- The fork value is deliberately set to 0 to avoid VM crash while running tests
  519. on Jenkins, removing this leads to tests crashing silently due to VM crash -->
  520. <!-- TODO: we should investigate and address the crash issue and re-enable fork,
  521. otherwise, JPMS args does not take effect -->
  522. <plugin>
  523. <artifactId>maven-surefire-plugin</artifactId>
  524. <configuration>
  525. <forkCount>0</forkCount>
  526. </configuration>
  527. </plugin>
  528. </plugins>
  529. </build>
  530. </project>