pom.xml 12 KB

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