pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  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 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>org.xerial.snappy</groupId>
  169. <artifactId>snappy-java</artifactId>
  170. <scope>runtime</scope>
  171. </dependency>
  172. <dependency>
  173. <groupId>com.sun.jersey</groupId>
  174. <artifactId>jersey-client</artifactId>
  175. <scope>test</scope>
  176. </dependency>
  177. <dependency>
  178. <groupId>javax.ws.rs</groupId>
  179. <artifactId>jsr311-api</artifactId>
  180. <version>1.1.1</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.apache.hbase</groupId>
  184. <artifactId>hbase-common</artifactId>
  185. <scope>test</scope>
  186. <exclusions>
  187. <exclusion>
  188. <groupId>org.apache.hadoop</groupId>
  189. <artifactId>hadoop-common</artifactId>
  190. </exclusion>
  191. <exclusion>
  192. <groupId>org.apache.hadoop</groupId>
  193. <artifactId>hadoop-mapreduce-client-core</artifactId>
  194. </exclusion>
  195. </exclusions>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.apache.hbase</groupId>
  199. <artifactId>hbase-client</artifactId>
  200. <scope>test</scope>
  201. <exclusions>
  202. <exclusion>
  203. <groupId>org.apache.hadoop</groupId>
  204. <artifactId>hadoop-common</artifactId>
  205. </exclusion>
  206. <exclusion>
  207. <groupId>org.apache.hadoop</groupId>
  208. <artifactId>hadoop-auth</artifactId>
  209. </exclusion>
  210. <exclusion>
  211. <groupId>org.apache.hadoop</groupId>
  212. <artifactId>hadoop-mapreduce-client-core</artifactId>
  213. </exclusion>
  214. </exclusions>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.apache.hbase</groupId>
  218. <artifactId>hbase-server</artifactId>
  219. <scope>test</scope>
  220. <exclusions>
  221. <exclusion>
  222. <groupId>org.apache.hadoop</groupId>
  223. <artifactId>hadoop-common</artifactId>
  224. </exclusion>
  225. <exclusion>
  226. <groupId>org.apache.hadoop</groupId>
  227. <artifactId>hadoop-auth</artifactId>
  228. </exclusion>
  229. <exclusion>
  230. <groupId>org.apache.hadoop</groupId>
  231. <artifactId>hadoop-hdfs</artifactId>
  232. </exclusion>
  233. <exclusion>
  234. <groupId>org.apache.hadoop</groupId>
  235. <artifactId>hadoop-hdfs-client</artifactId>
  236. </exclusion>
  237. <exclusion>
  238. <groupId>org.apache.hadoop</groupId>
  239. <artifactId>hadoop-client</artifactId>
  240. </exclusion>
  241. <exclusion>
  242. <groupId>org.apache.hadoop</groupId>
  243. <artifactId>hadoop-mapreduce-client-core</artifactId>
  244. </exclusion>
  245. <exclusion>
  246. <groupId>org.apache.hadoop</groupId>
  247. <artifactId>hadoop-distcp</artifactId>
  248. </exclusion>
  249. </exclusions>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.apache.hbase</groupId>
  253. <artifactId>hbase-server</artifactId>
  254. <classifier>tests</classifier>
  255. <scope>test</scope>
  256. <exclusions>
  257. <exclusion>
  258. <groupId>org.apache.hadoop</groupId>
  259. <artifactId>hadoop-common</artifactId>
  260. </exclusion>
  261. <exclusion>
  262. <groupId>org.apache.hadoop</groupId>
  263. <artifactId>hadoop-auth</artifactId>
  264. </exclusion>
  265. <exclusion>
  266. <groupId>org.apache.hadoop</groupId>
  267. <artifactId>hadoop-hdfs</artifactId>
  268. </exclusion>
  269. <exclusion>
  270. <groupId>org.apache.hadoop</groupId>
  271. <artifactId>hadoop-hdfs-client</artifactId>
  272. </exclusion>
  273. <exclusion>
  274. <groupId>org.apache.hadoop</groupId>
  275. <artifactId>hadoop-client</artifactId>
  276. </exclusion>
  277. <exclusion>
  278. <groupId>org.apache.hadoop</groupId>
  279. <artifactId>hadoop-mapreduce-client-core</artifactId>
  280. </exclusion>
  281. <exclusion>
  282. <groupId>org.apache.hadoop</groupId>
  283. <artifactId>hadoop-distcp</artifactId>
  284. </exclusion>
  285. </exclusions>
  286. </dependency>
  287. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  288. dependency -->
  289. <dependency>
  290. <groupId>org.apache.hadoop</groupId>
  291. <artifactId>hadoop-common</artifactId>
  292. <version>${hbase-compatible-hadoop.version}</version>
  293. <type>test-jar</type>
  294. <scope>test</scope>
  295. <exclusions>
  296. <exclusion>
  297. <groupId>org.apache.hadoop</groupId>
  298. <artifactId>hadoop-auth</artifactId>
  299. </exclusion>
  300. <exclusion>
  301. <groupId>com.sun.jersey</groupId>
  302. <artifactId>jersey-json</artifactId>
  303. </exclusion>
  304. <exclusion>
  305. <groupId>commons-logging</groupId>
  306. <artifactId>commons-logging</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. <exclusion>
  323. <groupId>commons-logging</groupId>
  324. <artifactId>commons-logging</artifactId>
  325. </exclusion>
  326. </exclusions>
  327. </dependency>
  328. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  329. dependency -->
  330. <dependency>
  331. <groupId>org.apache.hadoop</groupId>
  332. <artifactId>hadoop-hdfs</artifactId>
  333. <version>${hbase-compatible-hadoop.version}</version>
  334. <type>test-jar</type>
  335. <scope>test</scope>
  336. <exclusions>
  337. <exclusion>
  338. <groupId>org.apache.hadoop</groupId>
  339. <artifactId>hadoop-hdfs-client</artifactId>
  340. </exclusion>
  341. <exclusion>
  342. <groupId>commons-logging</groupId>
  343. <artifactId>commons-logging</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.assertj</groupId>
  355. <artifactId>assertj-core</artifactId>
  356. <scope>test</scope>
  357. </dependency>
  358. <dependency>
  359. <groupId>org.apache.hbase</groupId>
  360. <artifactId>hbase-testing-util</artifactId>
  361. <scope>test</scope>
  362. <optional>true</optional>
  363. <exclusions>
  364. <exclusion>
  365. <groupId>org.apache.hadoop</groupId>
  366. <artifactId>hadoop-common</artifactId>
  367. </exclusion>
  368. <exclusion>
  369. <groupId>org.apache.hadoop</groupId>
  370. <artifactId>hadoop-auth</artifactId>
  371. </exclusion>
  372. <exclusion>
  373. <groupId>org.apache.hadoop</groupId>
  374. <artifactId>hadoop-client</artifactId>
  375. </exclusion>
  376. <exclusion>
  377. <groupId>org.apache.hadoop</groupId>
  378. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  379. </exclusion>
  380. <exclusion>
  381. <groupId>org.apache.hadoop</groupId>
  382. <artifactId>hadoop-mapreduce-client-core</artifactId>
  383. </exclusion>
  384. </exclusions>
  385. </dependency>
  386. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  387. dependency -->
  388. <!-- Jetty 9 is needed by the ATS code -->
  389. <dependency>
  390. <groupId>org.eclipse.jetty</groupId>
  391. <artifactId>jetty-servlet</artifactId>
  392. <scope>test</scope>
  393. </dependency>
  394. <dependency>
  395. <groupId>org.eclipse.jetty</groupId>
  396. <artifactId>jetty-webapp</artifactId>
  397. <scope>test</scope>
  398. </dependency>
  399. <dependency>
  400. <groupId>org.apache.commons</groupId>
  401. <artifactId>commons-lang3</artifactId>
  402. <scope>test</scope>
  403. </dependency>
  404. <dependency>
  405. <groupId>org.apache.hadoop</groupId>
  406. <artifactId>hadoop-yarn-server-timelineservice-hbase-server-2</artifactId>
  407. <scope>test</scope>
  408. <exclusions>
  409. <exclusion>
  410. <groupId>org.apache.hadoop</groupId>
  411. <artifactId>hadoop-common</artifactId>
  412. </exclusion>
  413. </exclusions>
  414. </dependency>
  415. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  416. dependency -->
  417. <!-- This is needed by HBaseTestingUtility -->
  418. <dependency>
  419. <groupId>org.mockito</groupId>
  420. <artifactId>mockito-core</artifactId>
  421. <scope>test</scope>
  422. </dependency>
  423. </dependencies>
  424. <build>
  425. <plugins>
  426. <plugin>
  427. <groupId>com.github.spotbugs</groupId>
  428. <artifactId>spotbugs-maven-plugin</artifactId>
  429. <configuration>
  430. <includeTests>true</includeTests>
  431. </configuration>
  432. </plugin>
  433. <plugin>
  434. <artifactId>maven-jar-plugin</artifactId>
  435. <executions>
  436. <execution>
  437. <goals>
  438. <goal>test-jar</goal>
  439. </goals>
  440. <phase>test-compile</phase>
  441. </execution>
  442. </executions>
  443. </plugin>
  444. <plugin>
  445. <groupId>org.apache.maven.plugins</groupId>
  446. <artifactId>maven-enforcer-plugin</artifactId>
  447. <executions>
  448. <execution>
  449. <id>depcheck</id>
  450. <configuration>
  451. <!-- disable dependency convergence check -->
  452. <skip>true</skip>
  453. </configuration>
  454. <goals>
  455. <goal>enforce</goal>
  456. </goals>
  457. <phase/>
  458. </execution>
  459. </executions>
  460. </plugin>
  461. <!-- The fork value is deliberately set to 0 to avoid VM crash while running tests
  462. on Jenkins, removing this leads to tests crashing silently due to VM crash -->
  463. <plugin>
  464. <artifactId>maven-surefire-plugin</artifactId>
  465. <configuration>
  466. <forkCount>0</forkCount>
  467. </configuration>
  468. </plugin>
  469. </plugins>
  470. </build>
  471. </project>