pom.xml 17 KB

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