pom.xml 15 KB

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