pom.xml 17 KB

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