pom.xml 15 KB

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