pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  16. https://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <parent>
  19. <groupId>org.apache.hadoop</groupId>
  20. <artifactId>hadoop-project-dist</artifactId>
  21. <version>3.5.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-hdfs-rbf</artifactId>
  25. <version>3.5.0-SNAPSHOT</version>
  26. <description>Apache Hadoop HDFS-RBF</description>
  27. <name>Apache Hadoop HDFS-RBF</name>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <hadoop.component>hdfs</hadoop.component>
  31. </properties>
  32. <dependencies>
  33. <dependency>
  34. <groupId>org.bouncycastle</groupId>
  35. <artifactId>bcprov-jdk18on</artifactId>
  36. <scope>test</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.hadoop</groupId>
  40. <artifactId>hadoop-minikdc</artifactId>
  41. <scope>test</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.hadoop</groupId>
  45. <artifactId>hadoop-common</artifactId>
  46. <scope>provided</scope>
  47. <exclusions>
  48. <exclusion>
  49. <groupId>ch.qos.reload4j</groupId>
  50. <artifactId>reload4j</artifactId>
  51. </exclusion>
  52. </exclusions>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.hadoop</groupId>
  56. <artifactId>hadoop-hdfs</artifactId>
  57. <scope>provided</scope>
  58. <exclusions>
  59. <exclusion>
  60. <groupId>org.ow2.asm</groupId>
  61. <artifactId>asm-commons</artifactId>
  62. </exclusion>
  63. </exclusions>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.hadoop</groupId>
  67. <artifactId>hadoop-hdfs-client</artifactId>
  68. <scope>provided</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.hadoop</groupId>
  72. <artifactId>hadoop-federation-balance</artifactId>
  73. <scope>provided</scope>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.slf4j</groupId>
  77. <artifactId>slf4j-reload4j</artifactId>
  78. <scope>provided</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.eclipse.jetty</groupId>
  82. <artifactId>jetty-util-ajax</artifactId>
  83. <scope>compile</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.hadoop</groupId>
  87. <artifactId>hadoop-common</artifactId>
  88. <scope>test</scope>
  89. <type>test-jar</type>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.hadoop</groupId>
  93. <artifactId>hadoop-federation-balance</artifactId>
  94. <scope>test</scope>
  95. <type>test-jar</type>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.hadoop</groupId>
  99. <artifactId>hadoop-distcp</artifactId>
  100. <scope>test</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.apache.zookeeper</groupId>
  104. <artifactId>zookeeper</artifactId>
  105. <scope>test</scope>
  106. <type>test-jar</type>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.fasterxml.jackson.core</groupId>
  110. <artifactId>jackson-annotations</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.fasterxml.jackson.core</groupId>
  114. <artifactId>jackson-databind</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.zaxxer</groupId>
  118. <artifactId>HikariCP</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>junit</groupId>
  122. <artifactId>junit</artifactId>
  123. <scope>test</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.hadoop</groupId>
  127. <artifactId>hadoop-hdfs</artifactId>
  128. <scope>test</scope>
  129. <type>test-jar</type>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.hadoop</groupId>
  133. <artifactId>hadoop-mapreduce-client-app</artifactId>
  134. <scope>test</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.apache.hadoop</groupId>
  138. <artifactId>hadoop-mapreduce-client-hs</artifactId>
  139. <scope>test</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.hadoop</groupId>
  143. <artifactId>hadoop-mapreduce-client-core</artifactId>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.hadoop</groupId>
  148. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.curator</groupId>
  153. <artifactId>curator-test</artifactId>
  154. <scope>test</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.derby</groupId>
  158. <artifactId>derby</artifactId>
  159. <scope>test</scope>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.mockito</groupId>
  163. <artifactId>mockito-inline</artifactId>
  164. <scope>test</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.assertj</groupId>
  168. <artifactId>assertj-core</artifactId>
  169. <scope>test</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.junit.jupiter</groupId>
  173. <artifactId>junit-jupiter-api</artifactId>
  174. <scope>test</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.junit.jupiter</groupId>
  178. <artifactId>junit-jupiter-params</artifactId>
  179. <scope>test</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.junit.jupiter</groupId>
  183. <artifactId>junit-jupiter-engine</artifactId>
  184. <scope>test</scope>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.junit.vintage</groupId>
  188. <artifactId>junit-vintage-engine</artifactId>
  189. <scope>test</scope>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.junit.platform</groupId>
  193. <artifactId>junit-platform-launcher</artifactId>
  194. <scope>test</scope>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.codehaus.jettison</groupId>
  198. <artifactId>jettison</artifactId>
  199. <scope>compile</scope>
  200. </dependency>
  201. </dependencies>
  202. <build>
  203. <plugins>
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-surefire-plugin</artifactId>
  207. <configuration>
  208. <systemPropertyVariables>
  209. <derby.stream.error.file>${project.build.directory}/derby.log</derby.stream.error.file>
  210. </systemPropertyVariables>
  211. </configuration>
  212. </plugin>
  213. <plugin>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-antrun-plugin</artifactId>
  216. <configuration>
  217. <skipTests>false</skipTests>
  218. </configuration>
  219. <executions>
  220. <execution>
  221. <id>create-web-xmls</id>
  222. <phase>compile</phase>
  223. <goals>
  224. <goal>run</goal>
  225. </goals>
  226. <configuration>
  227. <target>
  228. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  229. tofile="${project.build.directory}/webapps/router/WEB-INF/web.xml"
  230. filtering="true"/>
  231. <copy toDir="${project.build.directory}/webapps">
  232. <fileset dir="${basedir}/src/main/webapps">
  233. <exclude name="**/proto-web.xml"/>
  234. </fileset>
  235. </copy>
  236. <replace dir="${project.build.directory}/webapps" value="${release-year}">
  237. <include name="**/*.html"/>
  238. <replacetoken>{release-year-token}</replacetoken>
  239. </replace>
  240. </target>
  241. </configuration>
  242. </execution>
  243. <execution>
  244. <id>create-log-dir</id>
  245. <phase>process-test-resources</phase>
  246. <goals>
  247. <goal>run</goal>
  248. </goals>
  249. <configuration>
  250. <target>
  251. <copy todir="${project.build.directory}/test-classes/webapps">
  252. <fileset dir="${project.build.directory}/webapps">
  253. <exclude name="proto-*-web.xml"/>
  254. <exclude name="**/proto-web.xml"/>
  255. </fileset>
  256. </copy>
  257. </target>
  258. </configuration>
  259. </execution>
  260. <execution>
  261. <phase>pre-site</phase>
  262. <goals>
  263. <goal>run</goal>
  264. </goals>
  265. <configuration>
  266. <target>
  267. <copy file="src/main/resources/hdfs-rbf-default.xml" todir="src/site/resources"/>
  268. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  269. </target>
  270. </configuration>
  271. </execution>
  272. </executions>
  273. </plugin>
  274. <plugin>
  275. <groupId>org.xolstice.maven.plugins</groupId>
  276. <artifactId>protobuf-maven-plugin</artifactId>
  277. <executions>
  278. <execution>
  279. <id>src-compile-protoc</id>
  280. <configuration>
  281. <skip>false</skip>
  282. <additionalProtoPathElements>
  283. <additionalProtoPathElement>
  284. ${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto
  285. </additionalProtoPathElement>
  286. <additionalProtoPathElement>
  287. ${basedir}/../hadoop-hdfs-client/src/main/proto
  288. </additionalProtoPathElement>
  289. </additionalProtoPathElements>
  290. </configuration>
  291. </execution>
  292. </executions>
  293. </plugin>
  294. <plugin>
  295. <groupId>com.google.code.maven-replacer-plugin</groupId>
  296. <artifactId>replacer</artifactId>
  297. <executions>
  298. <execution>
  299. <id>replace-generated-sources</id>
  300. <configuration>
  301. <skip>false</skip>
  302. </configuration>
  303. </execution>
  304. <execution>
  305. <id>replace-sources</id>
  306. <configuration>
  307. <skip>false</skip>
  308. </configuration>
  309. </execution>
  310. <execution>
  311. <id>replace-test-sources</id>
  312. <configuration>
  313. <skip>false</skip>
  314. </configuration>
  315. </execution>
  316. </executions>
  317. </plugin>
  318. <plugin>
  319. <groupId>org.apache.maven.plugins</groupId>
  320. <artifactId>maven-javadoc-plugin</artifactId>
  321. <configuration>
  322. <excludePackageNames>
  323. org.apache.hadoop.hdfs.federation.protocol.proto:org.apache.hadoop.hdfs.protocol.proto
  324. </excludePackageNames>
  325. </configuration>
  326. </plugin>
  327. <plugin>
  328. <groupId>org.apache.rat</groupId>
  329. <artifactId>apache-rat-plugin</artifactId>
  330. <configuration>
  331. <excludes>
  332. <exclude>.gitattributes</exclude>
  333. <exclude>.idea/**</exclude>
  334. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  335. <exclude>src/main/webapps/router/robots.txt</exclude>
  336. <exclude>src/site/resources/images/*</exclude>
  337. </excludes>
  338. </configuration>
  339. </plugin>
  340. <plugin>
  341. <artifactId>maven-clean-plugin</artifactId>
  342. <configuration>
  343. <filesets>
  344. <fileset>
  345. <directory>src/site/resources</directory>
  346. <includes>
  347. <include>hdfs-rbf-default.xml</include>
  348. </includes>
  349. <followSymlinks>false</followSymlinks>
  350. </fileset>
  351. </filesets>
  352. </configuration>
  353. </plugin>
  354. </plugins>
  355. </build>
  356. <profiles>
  357. <profile>
  358. <id>parallel-tests</id>
  359. <build>
  360. <plugins>
  361. <plugin>
  362. <groupId>org.apache.hadoop</groupId>
  363. <artifactId>hadoop-maven-plugins</artifactId>
  364. <executions>
  365. <execution>
  366. <id>parallel-tests-createdir</id>
  367. <goals>
  368. <goal>parallel-tests-createdir</goal>
  369. </goals>
  370. </execution>
  371. </executions>
  372. </plugin>
  373. <plugin>
  374. <groupId>org.apache.maven.plugins</groupId>
  375. <artifactId>maven-surefire-plugin</artifactId>
  376. <configuration>
  377. <forkCount>${testsThreadCount}</forkCount>
  378. <reuseForks>false</reuseForks>
  379. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  380. <systemPropertyVariables>
  381. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  382. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  383. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  384. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  385. <!-- This is intentionally the same directory for all JUnit -->
  386. <!-- forks, for use in the very rare situation that -->
  387. <!-- concurrent tests need to coordinate, such as using lock -->
  388. <!-- files. -->
  389. <test.build.shared.data>${test.build.data}</test.build.shared.data>
  390. <!-- Due to a Maven quirk, setting this to just -->
  391. <!-- surefire.forkNumber won't do the parameter substitution. -->
  392. <!-- Putting a prefix in front of it like "fork-" makes it -->
  393. <!-- work. -->
  394. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  395. </systemPropertyVariables>
  396. </configuration>
  397. </plugin>
  398. </plugins>
  399. </build>
  400. </profile>
  401. </profiles>
  402. </project>