pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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.4.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-hdfs-rbf</artifactId>
  25. <version>3.4.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>commons-logging</groupId>
  50. <artifactId>commons-logging</artifactId>
  51. </exclusion>
  52. <exclusion>
  53. <groupId>log4j</groupId>
  54. <artifactId>log4j</artifactId>
  55. </exclusion>
  56. </exclusions>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.hadoop</groupId>
  60. <artifactId>hadoop-hdfs</artifactId>
  61. <scope>provided</scope>
  62. <exclusions>
  63. <exclusion>
  64. <groupId>org.ow2.asm</groupId>
  65. <artifactId>asm-commons</artifactId>
  66. </exclusion>
  67. </exclusions>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.hadoop</groupId>
  71. <artifactId>hadoop-hdfs-client</artifactId>
  72. <scope>provided</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.hadoop</groupId>
  76. <artifactId>hadoop-federation-balance</artifactId>
  77. <scope>provided</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.slf4j</groupId>
  81. <artifactId>slf4j-log4j12</artifactId>
  82. <scope>provided</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.eclipse.jetty</groupId>
  86. <artifactId>jetty-util-ajax</artifactId>
  87. <scope>compile</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.apache.hadoop</groupId>
  91. <artifactId>hadoop-common</artifactId>
  92. <scope>test</scope>
  93. <type>test-jar</type>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.apache.hadoop</groupId>
  97. <artifactId>hadoop-federation-balance</artifactId>
  98. <scope>test</scope>
  99. <type>test-jar</type>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.apache.hadoop</groupId>
  103. <artifactId>hadoop-distcp</artifactId>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.zookeeper</groupId>
  108. <artifactId>zookeeper</artifactId>
  109. <scope>test</scope>
  110. <type>test-jar</type>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.fasterxml.jackson.core</groupId>
  114. <artifactId>jackson-annotations</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.fasterxml.jackson.core</groupId>
  118. <artifactId>jackson-databind</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.mockito</groupId>
  158. <artifactId>mockito-core</artifactId>
  159. <scope>test</scope>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.assertj</groupId>
  163. <artifactId>assertj-core</artifactId>
  164. <scope>test</scope>
  165. </dependency>
  166. </dependencies>
  167. <build>
  168. <plugins>
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-surefire-plugin</artifactId>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-antrun-plugin</artifactId>
  176. <configuration>
  177. <skipTests>false</skipTests>
  178. </configuration>
  179. <executions>
  180. <execution>
  181. <id>create-web-xmls</id>
  182. <phase>compile</phase>
  183. <goals>
  184. <goal>run</goal>
  185. </goals>
  186. <configuration>
  187. <target>
  188. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  189. tofile="${project.build.directory}/webapps/router/WEB-INF/web.xml"
  190. filtering="true"/>
  191. <copy toDir="${project.build.directory}/webapps">
  192. <fileset dir="${basedir}/src/main/webapps">
  193. <exclude name="**/proto-web.xml"/>
  194. </fileset>
  195. </copy>
  196. <replace dir="${project.build.directory}/webapps" value="${release-year}">
  197. <include name="**/*.html"/>
  198. <replacetoken>{release-year-token}</replacetoken>
  199. </replace>
  200. </target>
  201. </configuration>
  202. </execution>
  203. <execution>
  204. <id>create-log-dir</id>
  205. <phase>process-test-resources</phase>
  206. <goals>
  207. <goal>run</goal>
  208. </goals>
  209. <configuration>
  210. <target>
  211. <copy todir="${project.build.directory}/test-classes/webapps">
  212. <fileset dir="${project.build.directory}/webapps">
  213. <exclude name="proto-*-web.xml"/>
  214. <exclude name="**/proto-web.xml"/>
  215. </fileset>
  216. </copy>
  217. </target>
  218. </configuration>
  219. </execution>
  220. <execution>
  221. <phase>pre-site</phase>
  222. <goals>
  223. <goal>run</goal>
  224. </goals>
  225. <configuration>
  226. <tasks>
  227. <copy file="src/main/resources/hdfs-rbf-default.xml" todir="src/site/resources"/>
  228. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  229. </tasks>
  230. </configuration>
  231. </execution>
  232. </executions>
  233. </plugin>
  234. <plugin>
  235. <groupId>org.xolstice.maven.plugins</groupId>
  236. <artifactId>protobuf-maven-plugin</artifactId>
  237. <executions>
  238. <execution>
  239. <id>src-compile-protoc</id>
  240. <configuration>
  241. <skip>false</skip>
  242. <additionalProtoPathElements>
  243. <additionalProtoPathElement>
  244. ${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto
  245. </additionalProtoPathElement>
  246. <additionalProtoPathElement>
  247. ${basedir}/../hadoop-hdfs-client/src/main/proto
  248. </additionalProtoPathElement>
  249. </additionalProtoPathElements>
  250. </configuration>
  251. </execution>
  252. </executions>
  253. </plugin>
  254. <plugin>
  255. <groupId>com.google.code.maven-replacer-plugin</groupId>
  256. <artifactId>replacer</artifactId>
  257. <executions>
  258. <execution>
  259. <id>replace-generated-sources</id>
  260. <configuration>
  261. <skip>false</skip>
  262. </configuration>
  263. </execution>
  264. <execution>
  265. <id>replace-sources</id>
  266. <configuration>
  267. <skip>false</skip>
  268. </configuration>
  269. </execution>
  270. <execution>
  271. <id>replace-test-sources</id>
  272. <configuration>
  273. <skip>false</skip>
  274. </configuration>
  275. </execution>
  276. </executions>
  277. </plugin>
  278. <plugin>
  279. <groupId>org.apache.maven.plugins</groupId>
  280. <artifactId>maven-javadoc-plugin</artifactId>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.apache.rat</groupId>
  284. <artifactId>apache-rat-plugin</artifactId>
  285. <configuration>
  286. <excludes>
  287. <exclude>.gitattributes</exclude>
  288. <exclude>.idea/**</exclude>
  289. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  290. <exclude>src/main/webapps/router/robots.txt</exclude>
  291. <exclude>src/site/resources/images/*</exclude>
  292. </excludes>
  293. </configuration>
  294. </plugin>
  295. <plugin>
  296. <artifactId>maven-clean-plugin</artifactId>
  297. <configuration>
  298. <filesets>
  299. <fileset>
  300. <directory>src/site/resources</directory>
  301. <includes>
  302. <include>hdfs-rbf-default.xml</include>
  303. </includes>
  304. <followSymlinks>false</followSymlinks>
  305. </fileset>
  306. </filesets>
  307. </configuration>
  308. </plugin>
  309. </plugins>
  310. </build>
  311. <profiles>
  312. <profile>
  313. <id>parallel-tests</id>
  314. <build>
  315. <plugins>
  316. <plugin>
  317. <groupId>org.apache.hadoop</groupId>
  318. <artifactId>hadoop-maven-plugins</artifactId>
  319. <executions>
  320. <execution>
  321. <id>parallel-tests-createdir</id>
  322. <goals>
  323. <goal>parallel-tests-createdir</goal>
  324. </goals>
  325. </execution>
  326. </executions>
  327. </plugin>
  328. <plugin>
  329. <groupId>org.apache.maven.plugins</groupId>
  330. <artifactId>maven-surefire-plugin</artifactId>
  331. <configuration>
  332. <forkCount>${testsThreadCount}</forkCount>
  333. <reuseForks>false</reuseForks>
  334. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  335. <systemPropertyVariables>
  336. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  337. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  338. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  339. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  340. <!-- This is intentionally the same directory for all JUnit -->
  341. <!-- forks, for use in the very rare situation that -->
  342. <!-- concurrent tests need to coordinate, such as using lock -->
  343. <!-- files. -->
  344. <test.build.shared.data>${test.build.data}</test.build.shared.data>
  345. <!-- Due to a Maven quirk, setting this to just -->
  346. <!-- surefire.forkNumber won't do the parameter substitution. -->
  347. <!-- Putting a prefix in front of it like "fork-" makes it -->
  348. <!-- work. -->
  349. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  350. </systemPropertyVariables>
  351. </configuration>
  352. </plugin>
  353. </plugins>
  354. </build>
  355. </profile>
  356. </profiles>
  357. </project>