pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  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.3.0-SNAPSHOT</version>
  24. </parent>
  25. <modelVersion>4.0.0</modelVersion>
  26. <artifactId>hadoop-yarn-server-timelineservice-hbase-tests</artifactId>
  27. <version>3.3.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. </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.assertj</groupId>
  305. <artifactId>assertj-core</artifactId>
  306. <scope>test</scope>
  307. </dependency>
  308. <dependency>
  309. <groupId>org.apache.hbase</groupId>
  310. <artifactId>hbase-testing-util</artifactId>
  311. <scope>test</scope>
  312. <optional>true</optional>
  313. <exclusions>
  314. <exclusion>
  315. <groupId>org.apache.hadoop</groupId>
  316. <artifactId>hadoop-common</artifactId>
  317. </exclusion>
  318. <exclusion>
  319. <groupId>org.apache.hadoop</groupId>
  320. <artifactId>hadoop-auth</artifactId>
  321. </exclusion>
  322. <exclusion>
  323. <groupId>org.apache.hadoop</groupId>
  324. <artifactId>hadoop-client</artifactId>
  325. </exclusion>
  326. <exclusion>
  327. <groupId>org.apache.hadoop</groupId>
  328. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  329. </exclusion>
  330. <exclusion>
  331. <groupId>org.apache.hadoop</groupId>
  332. <artifactId>hadoop-mapreduce-client-core</artifactId>
  333. </exclusion>
  334. </exclusions>
  335. </dependency>
  336. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  337. dependency -->
  338. <!-- Jetty 9 is needed by the ATS code -->
  339. <dependency>
  340. <groupId>org.eclipse.jetty</groupId>
  341. <artifactId>jetty-servlet</artifactId>
  342. <scope>test</scope>
  343. </dependency>
  344. <dependency>
  345. <groupId>org.eclipse.jetty</groupId>
  346. <artifactId>jetty-webapp</artifactId>
  347. <scope>test</scope>
  348. </dependency>
  349. <dependency>
  350. <groupId>org.apache.commons</groupId>
  351. <artifactId>commons-lang3</artifactId>
  352. <scope>test</scope>
  353. </dependency>
  354. </dependencies>
  355. <build>
  356. <plugins>
  357. <plugin>
  358. <groupId>org.codehaus.mojo</groupId>
  359. <artifactId>findbugs-maven-plugin</artifactId>
  360. <configuration>
  361. <includeTests>true</includeTests>
  362. </configuration>
  363. </plugin>
  364. <plugin>
  365. <artifactId>maven-jar-plugin</artifactId>
  366. <executions>
  367. <execution>
  368. <goals>
  369. <goal>test-jar</goal>
  370. </goals>
  371. <phase>test-compile</phase>
  372. </execution>
  373. </executions>
  374. </plugin>
  375. <plugin>
  376. <groupId>org.apache.maven.plugins</groupId>
  377. <artifactId>maven-javadoc-plugin</artifactId>
  378. <configuration>
  379. <additionnalDependencies>
  380. <additionnalDependency>
  381. <groupId>junit</groupId>
  382. <artifactId>junit</artifactId>
  383. <version>4.11</version>
  384. </additionnalDependency>
  385. </additionnalDependencies>
  386. </configuration>
  387. </plugin>
  388. <plugin>
  389. <groupId>org.apache.maven.plugins</groupId>
  390. <artifactId>maven-enforcer-plugin</artifactId>
  391. <executions>
  392. <execution>
  393. <id>depcheck</id>
  394. <configuration>
  395. <!-- disable dependency convergence check -->
  396. <skip>true</skip>
  397. </configuration>
  398. <goals>
  399. <goal>enforce</goal>
  400. </goals>
  401. <phase/>
  402. </execution>
  403. </executions>
  404. </plugin>
  405. </plugins>
  406. </build>
  407. <profiles>
  408. <profile>
  409. <id>hbase1</id>
  410. <activation>
  411. <property>
  412. <name>!hbase.profile</name>
  413. </property>
  414. </activation>
  415. <dependencies>
  416. <dependency>
  417. <groupId>org.apache.hadoop</groupId>
  418. <artifactId>hadoop-yarn-server-timelineservice-hbase-server-1</artifactId>
  419. <scope>test</scope>
  420. <exclusions>
  421. <exclusion>
  422. <groupId>org.apache.hadoop</groupId>
  423. <artifactId>hadoop-common</artifactId>
  424. </exclusion>
  425. </exclusions>
  426. </dependency>
  427. </dependencies>
  428. </profile>
  429. <profile>
  430. <id>hbase2</id>
  431. <activation>
  432. <property>
  433. <name>hbase.profile</name>
  434. <value>2.0</value>
  435. </property>
  436. </activation>
  437. <dependencies>
  438. <dependency>
  439. <groupId>org.apache.hadoop</groupId>
  440. <artifactId>hadoop-yarn-server-timelineservice-hbase-server-2</artifactId>
  441. <scope>test</scope>
  442. <exclusions>
  443. <exclusion>
  444. <groupId>org.apache.hadoop</groupId>
  445. <artifactId>hadoop-common</artifactId>
  446. </exclusion>
  447. </exclusions>
  448. </dependency>
  449. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  450. dependency -->
  451. <dependency>
  452. <groupId>org.apache.hadoop</groupId>
  453. <artifactId>hadoop-hdfs-client</artifactId>
  454. <version>${hbase-compatible-hadoop.version}</version>
  455. <scope>test</scope>
  456. </dependency>
  457. <!-- 'mvn dependency:analyze' fails to detect use of this direct
  458. dependency -->
  459. <!-- This is needed by HBaseTestingUtility -->
  460. <dependency>
  461. <groupId>org.mockito</groupId>
  462. <artifactId>mockito-core</artifactId>
  463. <scope>test</scope>
  464. </dependency>
  465. </dependencies>
  466. </profile>
  467. </profiles>
  468. </project>