pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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-jdk15on</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>log4j</groupId>
  50. <artifactId>log4j</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-log4j12</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-core</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-params</artifactId>
  174. <scope>test</scope>
  175. </dependency>
  176. </dependencies>
  177. <build>
  178. <plugins>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-surefire-plugin</artifactId>
  182. <configuration>
  183. <systemPropertyVariables>
  184. <derby.stream.error.file>${project.build.directory}/derby.log</derby.stream.error.file>
  185. </systemPropertyVariables>
  186. </configuration>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-antrun-plugin</artifactId>
  191. <configuration>
  192. <skipTests>false</skipTests>
  193. </configuration>
  194. <executions>
  195. <execution>
  196. <id>create-web-xmls</id>
  197. <phase>compile</phase>
  198. <goals>
  199. <goal>run</goal>
  200. </goals>
  201. <configuration>
  202. <target>
  203. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  204. tofile="${project.build.directory}/webapps/router/WEB-INF/web.xml"
  205. filtering="true"/>
  206. <copy toDir="${project.build.directory}/webapps">
  207. <fileset dir="${basedir}/src/main/webapps">
  208. <exclude name="**/proto-web.xml"/>
  209. </fileset>
  210. </copy>
  211. <replace dir="${project.build.directory}/webapps" value="${release-year}">
  212. <include name="**/*.html"/>
  213. <replacetoken>{release-year-token}</replacetoken>
  214. </replace>
  215. </target>
  216. </configuration>
  217. </execution>
  218. <execution>
  219. <id>create-log-dir</id>
  220. <phase>process-test-resources</phase>
  221. <goals>
  222. <goal>run</goal>
  223. </goals>
  224. <configuration>
  225. <target>
  226. <copy todir="${project.build.directory}/test-classes/webapps">
  227. <fileset dir="${project.build.directory}/webapps">
  228. <exclude name="proto-*-web.xml"/>
  229. <exclude name="**/proto-web.xml"/>
  230. </fileset>
  231. </copy>
  232. </target>
  233. </configuration>
  234. </execution>
  235. <execution>
  236. <phase>pre-site</phase>
  237. <goals>
  238. <goal>run</goal>
  239. </goals>
  240. <configuration>
  241. <target>
  242. <copy file="src/main/resources/hdfs-rbf-default.xml" todir="src/site/resources"/>
  243. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  244. </target>
  245. </configuration>
  246. </execution>
  247. </executions>
  248. </plugin>
  249. <plugin>
  250. <groupId>org.xolstice.maven.plugins</groupId>
  251. <artifactId>protobuf-maven-plugin</artifactId>
  252. <executions>
  253. <execution>
  254. <id>src-compile-protoc</id>
  255. <configuration>
  256. <skip>false</skip>
  257. <additionalProtoPathElements>
  258. <additionalProtoPathElement>
  259. ${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto
  260. </additionalProtoPathElement>
  261. <additionalProtoPathElement>
  262. ${basedir}/../hadoop-hdfs-client/src/main/proto
  263. </additionalProtoPathElement>
  264. </additionalProtoPathElements>
  265. </configuration>
  266. </execution>
  267. </executions>
  268. </plugin>
  269. <plugin>
  270. <groupId>com.google.code.maven-replacer-plugin</groupId>
  271. <artifactId>replacer</artifactId>
  272. <executions>
  273. <execution>
  274. <id>replace-generated-sources</id>
  275. <configuration>
  276. <skip>false</skip>
  277. </configuration>
  278. </execution>
  279. <execution>
  280. <id>replace-sources</id>
  281. <configuration>
  282. <skip>false</skip>
  283. </configuration>
  284. </execution>
  285. <execution>
  286. <id>replace-test-sources</id>
  287. <configuration>
  288. <skip>false</skip>
  289. </configuration>
  290. </execution>
  291. </executions>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-javadoc-plugin</artifactId>
  296. <configuration>
  297. <excludePackageNames>
  298. org.apache.hadoop.hdfs.federation.protocol.proto:org.apache.hadoop.hdfs.protocol.proto
  299. </excludePackageNames>
  300. </configuration>
  301. </plugin>
  302. <plugin>
  303. <groupId>org.apache.rat</groupId>
  304. <artifactId>apache-rat-plugin</artifactId>
  305. <configuration>
  306. <excludes>
  307. <exclude>.gitattributes</exclude>
  308. <exclude>.idea/**</exclude>
  309. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  310. <exclude>src/main/webapps/router/robots.txt</exclude>
  311. <exclude>src/site/resources/images/*</exclude>
  312. </excludes>
  313. </configuration>
  314. </plugin>
  315. <plugin>
  316. <artifactId>maven-clean-plugin</artifactId>
  317. <configuration>
  318. <filesets>
  319. <fileset>
  320. <directory>src/site/resources</directory>
  321. <includes>
  322. <include>hdfs-rbf-default.xml</include>
  323. </includes>
  324. <followSymlinks>false</followSymlinks>
  325. </fileset>
  326. </filesets>
  327. </configuration>
  328. </plugin>
  329. </plugins>
  330. </build>
  331. <profiles>
  332. <profile>
  333. <id>parallel-tests</id>
  334. <build>
  335. <plugins>
  336. <plugin>
  337. <groupId>org.apache.hadoop</groupId>
  338. <artifactId>hadoop-maven-plugins</artifactId>
  339. <executions>
  340. <execution>
  341. <id>parallel-tests-createdir</id>
  342. <goals>
  343. <goal>parallel-tests-createdir</goal>
  344. </goals>
  345. </execution>
  346. </executions>
  347. </plugin>
  348. <plugin>
  349. <groupId>org.apache.maven.plugins</groupId>
  350. <artifactId>maven-surefire-plugin</artifactId>
  351. <configuration>
  352. <forkCount>${testsThreadCount}</forkCount>
  353. <reuseForks>false</reuseForks>
  354. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  355. <systemPropertyVariables>
  356. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  357. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  358. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  359. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  360. <!-- This is intentionally the same directory for all JUnit -->
  361. <!-- forks, for use in the very rare situation that -->
  362. <!-- concurrent tests need to coordinate, such as using lock -->
  363. <!-- files. -->
  364. <test.build.shared.data>${test.build.data}</test.build.shared.data>
  365. <!-- Due to a Maven quirk, setting this to just -->
  366. <!-- surefire.forkNumber won't do the parameter substitution. -->
  367. <!-- Putting a prefix in front of it like "fork-" makes it -->
  368. <!-- work. -->
  369. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  370. </systemPropertyVariables>
  371. </configuration>
  372. </plugin>
  373. </plugins>
  374. </build>
  375. </profile>
  376. </profiles>
  377. </project>