pom.xml 17 KB

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