pom.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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</artifactId>
  21. <version>3.4.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-distcp</artifactId>
  25. <version>3.4.0-SNAPSHOT</version>
  26. <description>Apache Hadoop Distributed Copy</description>
  27. <name>Apache Hadoop Distributed Copy</name>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <file.encoding>UTF-8</file.encoding>
  31. <downloadSources>true</downloadSources>
  32. </properties>
  33. <dependencies>
  34. <dependency>
  35. <groupId>junit</groupId>
  36. <artifactId>junit</artifactId>
  37. <scope>test</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.hadoop</groupId>
  41. <artifactId>hadoop-common</artifactId>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.hadoop</groupId>
  46. <artifactId>hadoop-annotations</artifactId>
  47. <scope>provided</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.hadoop</groupId>
  51. <artifactId>hadoop-mapreduce-client-app</artifactId>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.hadoop</groupId>
  56. <artifactId>hadoop-mapreduce-client-hs</artifactId>
  57. <scope>test</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.hadoop</groupId>
  61. <artifactId>hadoop-mapreduce-client-core</artifactId>
  62. <scope>provided</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.hadoop</groupId>
  66. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  67. <scope>provided</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.hadoop</groupId>
  71. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  72. <scope>test</scope>
  73. <type>test-jar</type>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.hadoop</groupId>
  77. <artifactId>hadoop-hdfs-client</artifactId>
  78. <scope>provided</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.hadoop</groupId>
  82. <artifactId>hadoop-hdfs</artifactId>
  83. <scope>test</scope>
  84. <exclusions>
  85. <exclusion>
  86. <groupId>org.ow2.asm</groupId>
  87. <artifactId>asm-commons</artifactId>
  88. </exclusion>
  89. </exclusions>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.hadoop</groupId>
  93. <artifactId>hadoop-hdfs</artifactId>
  94. <scope>test</scope>
  95. <type>test-jar</type>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.hadoop</groupId>
  99. <artifactId>hadoop-common</artifactId>
  100. <scope>test</scope>
  101. <type>test-jar</type>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.mockito</groupId>
  105. <artifactId>mockito-core</artifactId>
  106. <scope>test</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.assertj</groupId>
  110. <artifactId>assertj-core</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. </dependencies>
  114. <build>
  115. <resources>
  116. <resource>
  117. <directory>src/main/resources</directory>
  118. <filtering>true</filtering>
  119. </resource>
  120. </resources>
  121. <testResources>
  122. <testResource>
  123. <directory>src/test/resources</directory>
  124. <filtering>true</filtering>
  125. </testResource>
  126. </testResources>
  127. <plugins>
  128. <plugin>
  129. <groupId>org.apache.maven.plugins</groupId>
  130. <artifactId>maven-surefire-plugin</artifactId>
  131. <configuration>
  132. <forkCount>1</forkCount>
  133. <reuseForks>false</reuseForks>
  134. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  135. <argLine>-Xmx1024m</argLine>
  136. <includes>
  137. <include>**/Test*.java</include>
  138. </includes>
  139. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  140. <systemProperties>
  141. <property>
  142. <name>test.build.data</name>
  143. <value>${basedir}/target/test/data</value>
  144. </property>
  145. <property>
  146. <name>hadoop.log.dir</name>
  147. <value>target/test/logs</value>
  148. </property>
  149. <property>
  150. <name>org.apache.commons.logging.Log</name>
  151. <value>org.apache.commons.logging.impl.SimpleLog</value>
  152. </property>
  153. <property>
  154. <name>org.apache.commons.logging.simplelog.defaultlog</name>
  155. <value>warn</value>
  156. </property>
  157. </systemProperties>
  158. </configuration>
  159. </plugin>
  160. <plugin>
  161. <artifactId>maven-dependency-plugin</artifactId>
  162. <executions>
  163. <execution>
  164. <phase>package</phase>
  165. <goals>
  166. <goal>copy-dependencies</goal>
  167. </goals>
  168. <configuration>
  169. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  170. </configuration>
  171. </execution>
  172. <execution>
  173. <id>deplist</id>
  174. <phase>compile</phase>
  175. <goals>
  176. <goal>list</goal>
  177. </goals>
  178. <configuration>
  179. <!-- referenced by a built-in command -->
  180. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. <plugin>
  186. <groupId>org.apache.maven.plugins</groupId>
  187. <artifactId>maven-jar-plugin</artifactId>
  188. <configuration>
  189. <archive>
  190. <manifest>
  191. <mainClass>org.apache.hadoop.tools.DistCp</mainClass>
  192. </manifest>
  193. </archive>
  194. </configuration>
  195. <executions>
  196. <execution>
  197. <id>prepare-jar</id>
  198. <phase>prepare-package</phase>
  199. <goals>
  200. <goal>jar</goal>
  201. </goals>
  202. </execution>
  203. <execution>
  204. <id>prepare-test-jar</id>
  205. <phase>prepare-package</phase>
  206. <goals>
  207. <goal>test-jar</goal>
  208. </goals>
  209. </execution>
  210. </executions>
  211. </plugin>
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-source-plugin</artifactId>
  215. <configuration>
  216. <attach>true</attach>
  217. </configuration>
  218. <executions>
  219. <execution>
  220. <goals>
  221. <goal>jar</goal>
  222. </goals>
  223. </execution>
  224. </executions>
  225. </plugin>
  226. </plugins>
  227. </build>
  228. </project>