pom.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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.4.0-SNAPSHOT</version>
  24. </parent>
  25. <modelVersion>4.0.0</modelVersion>
  26. <artifactId>hadoop-yarn-server-timelineservice-hbase-tests</artifactId>
  27. <version>3.4.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 depedencies 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. </exclusions>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.hadoop</groupId>
  57. <artifactId>hadoop-yarn-server-timelineservice-hbase-client</artifactId>
  58. <scope>test</scope>
  59. <exclusions>
  60. <exclusion>
  61. <groupId>org.apache.hadoop</groupId>
  62. <artifactId>hadoop-common</artifactId>
  63. </exclusion>
  64. </exclusions>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.hadoop</groupId>
  68. <artifactId>hadoop-yarn-server-timelineservice-hbase-common</artifactId>
  69. <scope>test</scope>
  70. <exclusions>
  71. <exclusion>
  72. <groupId>org.apache.hadoop</groupId>
  73. <artifactId>hadoop-common</artifactId>
  74. </exclusion>
  75. </exclusions>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.apache.hadoop</groupId>
  79. <artifactId>hadoop-common</artifactId>
  80. <version>${hbase-compatible-hadoop.version}</version>
  81. <scope>test</scope>
  82. <exclusions>
  83. <exclusion>
  84. <groupId>org.apache.hadoop</groupId>
  85. <artifactId>hadoop-auth</artifactId>
  86. </exclusion>
  87. <exclusion>
  88. <groupId>tomcat</groupId>
  89. <artifactId>jasper-runtime</artifactId>
  90. </exclusion>
  91. <exclusion>
  92. <groupId>org.apache.hadoop</groupId>
  93. <artifactId>hadoop-hdfs-client</artifactId>
  94. </exclusion>
  95. <exclusion>
  96. <groupId>com.sun.jersey</groupId>
  97. <artifactId>jersey-json</artifactId>
  98. </exclusion>
  99. <exclusion>
  100. <groupId>commons-logging</groupId>
  101. <artifactId>commons-logging</artifactId>
  102. </exclusion>
  103. </exclusions>
  104. </dependency>
  105. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  106. dependency -->
  107. <dependency>
  108. <groupId>org.apache.hadoop</groupId>
  109. <artifactId>hadoop-auth</artifactId>
  110. <version>${hbase-compatible-hadoop.version}</version>
  111. <scope>test</scope>
  112. <exclusions>
  113. <exclusion>
  114. <groupId>org.apache.hadoop</groupId>
  115. <artifactId>hadoop-hdfs-client</artifactId>
  116. </exclusion>
  117. </exclusions>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.apache.hadoop</groupId>
  121. <artifactId>hadoop-yarn-api</artifactId>
  122. <scope>test</scope>
  123. <exclusions>
  124. <exclusion>
  125. <groupId>org.apache.hadoop</groupId>
  126. <artifactId>hadoop-common</artifactId>
  127. </exclusion>
  128. <exclusion>
  129. <groupId>org.apache.hadoop</groupId>
  130. <artifactId>hadoop-hdfs-client</artifactId>
  131. </exclusion>
  132. </exclusions>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.hadoop</groupId>
  136. <artifactId>hadoop-yarn-common</artifactId>
  137. <scope>test</scope>
  138. <exclusions>
  139. <exclusion>
  140. <groupId>org.apache.hadoop</groupId>
  141. <artifactId>hadoop-common</artifactId>
  142. </exclusion>
  143. <exclusion>
  144. <groupId>org.apache.hadoop</groupId>
  145. <artifactId>hadoop-auth</artifactId>
  146. </exclusion>
  147. <exclusion>
  148. <groupId>org.apache.hadoop</groupId>
  149. <artifactId>hadoop-hdfs-client</artifactId>
  150. </exclusion>
  151. </exclusions>
  152. </dependency>
  153. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  154. dependency -->
  155. <dependency>
  156. <groupId>org.apache.hadoop</groupId>
  157. <artifactId>hadoop-yarn-server-applicationhistoryservice</artifactId>
  158. <scope>test</scope>
  159. <exclusions>
  160. <exclusion>
  161. <groupId>org.apache.hadoop</groupId>
  162. <artifactId>hadoop-common</artifactId>
  163. </exclusion>
  164. </exclusions>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.apache.hadoop.thirdparty</groupId>
  168. <artifactId>hadoop-shaded-guava</artifactId>
  169. <scope>test</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.google.guava</groupId>
  173. <artifactId>guava</artifactId>
  174. <version>${hbase-compatible-guava.version}</version>
  175. <scope>test</scope>
  176. </dependency>
  177. <dependency>
  178. <groupId>com.google.inject</groupId>
  179. <artifactId>guice</artifactId>
  180. <version>${hbase-compatible-guice.version}</version>
  181. <scope>test</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.xerial.snappy</groupId>
  185. <artifactId>snappy-java</artifactId>
  186. <scope>runtime</scope>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.sun.jersey</groupId>
  190. <artifactId>jersey-client</artifactId>
  191. <scope>test</scope>
  192. </dependency>
  193. <dependency>
  194. <groupId>javax.ws.rs</groupId>
  195. <artifactId>jsr311-api</artifactId>
  196. <version>1.1.1</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.apache.hbase</groupId>
  200. <artifactId>hbase-common</artifactId>
  201. <scope>test</scope>
  202. <exclusions>
  203. <exclusion>
  204. <groupId>org.apache.hadoop</groupId>
  205. <artifactId>hadoop-common</artifactId>
  206. </exclusion>
  207. <exclusion>
  208. <groupId>org.apache.hadoop</groupId>
  209. <artifactId>hadoop-mapreduce-client-core</artifactId>
  210. </exclusion>
  211. </exclusions>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.apache.hbase</groupId>
  215. <artifactId>hbase-client</artifactId>
  216. <scope>test</scope>
  217. <exclusions>
  218. <exclusion>
  219. <groupId>org.apache.hadoop</groupId>
  220. <artifactId>hadoop-common</artifactId>
  221. </exclusion>
  222. <exclusion>
  223. <groupId>org.apache.hadoop</groupId>
  224. <artifactId>hadoop-auth</artifactId>
  225. </exclusion>
  226. <exclusion>
  227. <groupId>org.apache.hadoop</groupId>
  228. <artifactId>hadoop-mapreduce-client-core</artifactId>
  229. </exclusion>
  230. </exclusions>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.apache.hbase</groupId>
  234. <artifactId>hbase-server</artifactId>
  235. <scope>test</scope>
  236. <exclusions>
  237. <exclusion>
  238. <groupId>org.apache.hadoop</groupId>
  239. <artifactId>hadoop-common</artifactId>
  240. </exclusion>
  241. <exclusion>
  242. <groupId>org.apache.hadoop</groupId>
  243. <artifactId>hadoop-auth</artifactId>
  244. </exclusion>
  245. <exclusion>
  246. <groupId>org.apache.hadoop</groupId>
  247. <artifactId>hadoop-hdfs</artifactId>
  248. </exclusion>
  249. <exclusion>
  250. <groupId>org.apache.hadoop</groupId>
  251. <artifactId>hadoop-hdfs-client</artifactId>
  252. </exclusion>
  253. <exclusion>
  254. <groupId>org.apache.hadoop</groupId>
  255. <artifactId>hadoop-client</artifactId>
  256. </exclusion>
  257. <exclusion>
  258. <groupId>org.apache.hadoop</groupId>
  259. <artifactId>hadoop-mapreduce-client-core</artifactId>
  260. </exclusion>
  261. <exclusion>
  262. <groupId>org.apache.hadoop</groupId>
  263. <artifactId>hadoop-distcp</artifactId>
  264. </exclusion>
  265. </exclusions>
  266. </dependency>
  267. <dependency>
  268. <groupId>org.apache.hbase</groupId>
  269. <artifactId>hbase-server</artifactId>
  270. <classifier>tests</classifier>
  271. <scope>test</scope>
  272. <exclusions>
  273. <exclusion>
  274. <groupId>org.apache.hadoop</groupId>
  275. <artifactId>hadoop-common</artifactId>
  276. </exclusion>
  277. <exclusion>
  278. <groupId>org.apache.hadoop</groupId>
  279. <artifactId>hadoop-auth</artifactId>
  280. </exclusion>
  281. <exclusion>
  282. <groupId>org.apache.hadoop</groupId>
  283. <artifactId>hadoop-hdfs</artifactId>
  284. </exclusion>
  285. <exclusion>
  286. <groupId>org.apache.hadoop</groupId>
  287. <artifactId>hadoop-hdfs-client</artifactId>
  288. </exclusion>
  289. <exclusion>
  290. <groupId>org.apache.hadoop</groupId>
  291. <artifactId>hadoop-client</artifactId>
  292. </exclusion>
  293. <exclusion>
  294. <groupId>org.apache.hadoop</groupId>
  295. <artifactId>hadoop-mapreduce-client-core</artifactId>
  296. </exclusion>
  297. <exclusion>
  298. <groupId>org.apache.hadoop</groupId>
  299. <artifactId>hadoop-distcp</artifactId>
  300. </exclusion>
  301. </exclusions>
  302. </dependency>
  303. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  304. dependency -->
  305. <dependency>
  306. <groupId>org.apache.hadoop</groupId>
  307. <artifactId>hadoop-common</artifactId>
  308. <version>${hbase-compatible-hadoop.version}</version>
  309. <type>test-jar</type>
  310. <scope>test</scope>
  311. <exclusions>
  312. <exclusion>
  313. <groupId>org.apache.hadoop</groupId>
  314. <artifactId>hadoop-auth</artifactId>
  315. </exclusion>
  316. <exclusion>
  317. <groupId>com.sun.jersey</groupId>
  318. <artifactId>jersey-json</artifactId>
  319. </exclusion>
  320. <exclusion>
  321. <groupId>commons-logging</groupId>
  322. <artifactId>commons-logging</artifactId>
  323. </exclusion>
  324. </exclusions>
  325. </dependency>
  326. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  327. dependency -->
  328. <dependency>
  329. <groupId>org.apache.hadoop</groupId>
  330. <artifactId>hadoop-hdfs</artifactId>
  331. <version>${hbase-compatible-hadoop.version}</version>
  332. <scope>test</scope>
  333. <exclusions>
  334. <exclusion>
  335. <groupId>org.apache.hadoop</groupId>
  336. <artifactId>hadoop-hdfs-client</artifactId>
  337. </exclusion>
  338. <exclusion>
  339. <groupId>commons-logging</groupId>
  340. <artifactId>commons-logging</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-hdfs</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-hdfs-client</artifactId>
  356. </exclusion>
  357. <exclusion>
  358. <groupId>commons-logging</groupId>
  359. <artifactId>commons-logging</artifactId>
  360. </exclusion>
  361. </exclusions>
  362. </dependency>
  363. <dependency>
  364. <groupId>org.apache.hadoop</groupId>
  365. <artifactId>hadoop-hdfs-client</artifactId>
  366. <version>${hbase-compatible-hadoop.version}</version>
  367. <scope>test</scope>
  368. </dependency>
  369. <dependency>
  370. <groupId>org.jmockit</groupId>
  371. <artifactId>jmockit</artifactId>
  372. <version>1.24</version>
  373. <scope>test</scope>
  374. </dependency>
  375. <dependency>
  376. <groupId>org.assertj</groupId>
  377. <artifactId>assertj-core</artifactId>
  378. <scope>test</scope>
  379. </dependency>
  380. <dependency>
  381. <groupId>org.apache.hbase</groupId>
  382. <artifactId>hbase-testing-util</artifactId>
  383. <scope>test</scope>
  384. <optional>true</optional>
  385. <exclusions>
  386. <exclusion>
  387. <groupId>org.apache.hadoop</groupId>
  388. <artifactId>hadoop-common</artifactId>
  389. </exclusion>
  390. <exclusion>
  391. <groupId>org.apache.hadoop</groupId>
  392. <artifactId>hadoop-auth</artifactId>
  393. </exclusion>
  394. <exclusion>
  395. <groupId>org.apache.hadoop</groupId>
  396. <artifactId>hadoop-client</artifactId>
  397. </exclusion>
  398. <exclusion>
  399. <groupId>org.apache.hadoop</groupId>
  400. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  401. </exclusion>
  402. <exclusion>
  403. <groupId>org.apache.hadoop</groupId>
  404. <artifactId>hadoop-mapreduce-client-core</artifactId>
  405. </exclusion>
  406. </exclusions>
  407. </dependency>
  408. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  409. dependency -->
  410. <!-- Jetty 9 is needed by the ATS code -->
  411. <dependency>
  412. <groupId>org.eclipse.jetty</groupId>
  413. <artifactId>jetty-servlet</artifactId>
  414. <scope>test</scope>
  415. </dependency>
  416. <dependency>
  417. <groupId>org.eclipse.jetty</groupId>
  418. <artifactId>jetty-webapp</artifactId>
  419. <scope>test</scope>
  420. </dependency>
  421. <dependency>
  422. <groupId>org.apache.commons</groupId>
  423. <artifactId>commons-lang3</artifactId>
  424. <scope>test</scope>
  425. </dependency>
  426. </dependencies>
  427. <build>
  428. <plugins>
  429. <plugin>
  430. <groupId>com.github.spotbugs</groupId>
  431. <artifactId>spotbugs-maven-plugin</artifactId>
  432. <configuration>
  433. <includeTests>true</includeTests>
  434. </configuration>
  435. </plugin>
  436. <plugin>
  437. <artifactId>maven-jar-plugin</artifactId>
  438. <executions>
  439. <execution>
  440. <goals>
  441. <goal>test-jar</goal>
  442. </goals>
  443. <phase>test-compile</phase>
  444. </execution>
  445. </executions>
  446. </plugin>
  447. <plugin>
  448. <groupId>org.apache.maven.plugins</groupId>
  449. <artifactId>maven-enforcer-plugin</artifactId>
  450. <executions>
  451. <execution>
  452. <id>depcheck</id>
  453. <configuration>
  454. <!-- disable dependency convergence check -->
  455. <skip>true</skip>
  456. </configuration>
  457. <goals>
  458. <goal>enforce</goal>
  459. </goals>
  460. <phase/>
  461. </execution>
  462. </executions>
  463. </plugin>
  464. </plugins>
  465. </build>
  466. <profiles>
  467. <profile>
  468. <id>hbase1</id>
  469. <activation>
  470. <property>
  471. <name>!hbase.profile</name>
  472. </property>
  473. </activation>
  474. <dependencies>
  475. <dependency>
  476. <groupId>org.apache.hadoop</groupId>
  477. <artifactId>hadoop-yarn-server-timelineservice-hbase-server-1</artifactId>
  478. <scope>test</scope>
  479. <exclusions>
  480. <exclusion>
  481. <groupId>org.apache.hadoop</groupId>
  482. <artifactId>hadoop-common</artifactId>
  483. </exclusion>
  484. </exclusions>
  485. </dependency>
  486. </dependencies>
  487. </profile>
  488. <profile>
  489. <id>hbase2</id>
  490. <activation>
  491. <property>
  492. <name>hbase.profile</name>
  493. <value>2.0</value>
  494. </property>
  495. </activation>
  496. <dependencies>
  497. <dependency>
  498. <groupId>org.apache.hadoop</groupId>
  499. <artifactId>hadoop-yarn-server-timelineservice-hbase-server-2</artifactId>
  500. <scope>test</scope>
  501. <exclusions>
  502. <exclusion>
  503. <groupId>org.apache.hadoop</groupId>
  504. <artifactId>hadoop-common</artifactId>
  505. </exclusion>
  506. </exclusions>
  507. </dependency>
  508. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  509. dependency -->
  510. <!-- This is needed by HBaseTestingUtility -->
  511. <dependency>
  512. <groupId>org.mockito</groupId>
  513. <artifactId>mockito-core</artifactId>
  514. <scope>test</scope>
  515. </dependency>
  516. <dependency>
  517. <groupId>org.eclipse.jetty</groupId>
  518. <artifactId>jetty-server</artifactId>
  519. <scope>test</scope>
  520. <version>${hbase-compatible-jetty.version}</version>
  521. </dependency>
  522. <dependency>
  523. <groupId>org.eclipse.jetty</groupId>
  524. <artifactId>jetty-servlet</artifactId>
  525. <scope>test</scope>
  526. <version>${hbase-compatible-jetty.version}</version>
  527. </dependency>
  528. <dependency>
  529. <groupId>org.eclipse.jetty</groupId>
  530. <artifactId>jetty-webapp</artifactId>
  531. <scope>test</scope>
  532. <version>${hbase-compatible-jetty.version}</version>
  533. </dependency>
  534. <dependency>
  535. <groupId>org.eclipse.jetty</groupId>
  536. <artifactId>jetty-util</artifactId>
  537. <scope>test</scope>
  538. <version>${hbase-compatible-jetty.version}</version>
  539. </dependency>
  540. </dependencies>
  541. </profile>
  542. </profiles>
  543. </project>