pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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.5.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-distcp</artifactId>
  25. <version>3.5.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. <systemPropertyVariables>
  141. <test.build.data>${basedir}/target/test/data</test.build.data>
  142. <hadoop.log.dir>target/test/logs</hadoop.log.dir>
  143. <org.apache.commons.logging.Log>org.apache.commons.logging.impl.SimpleLog</org.apache.commons.logging.Log>
  144. <org.apache.commons.logging.simplelog.defaultlog>warn</org.apache.commons.logging.simplelog.defaultlog>
  145. </systemPropertyVariables>
  146. </configuration>
  147. </plugin>
  148. <plugin>
  149. <artifactId>maven-dependency-plugin</artifactId>
  150. <executions>
  151. <execution>
  152. <phase>package</phase>
  153. <goals>
  154. <goal>copy-dependencies</goal>
  155. </goals>
  156. <configuration>
  157. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  158. </configuration>
  159. </execution>
  160. <execution>
  161. <id>deplist</id>
  162. <phase>compile</phase>
  163. <goals>
  164. <goal>list</goal>
  165. </goals>
  166. <configuration>
  167. <!-- referenced by a built-in command -->
  168. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  169. </configuration>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-jar-plugin</artifactId>
  176. <configuration>
  177. <archive>
  178. <manifest>
  179. <mainClass>org.apache.hadoop.tools.DistCp</mainClass>
  180. </manifest>
  181. </archive>
  182. </configuration>
  183. <executions>
  184. <execution>
  185. <id>prepare-jar</id>
  186. <phase>prepare-package</phase>
  187. <goals>
  188. <goal>jar</goal>
  189. </goals>
  190. </execution>
  191. <execution>
  192. <id>prepare-test-jar</id>
  193. <phase>prepare-package</phase>
  194. <goals>
  195. <goal>test-jar</goal>
  196. </goals>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-source-plugin</artifactId>
  203. <configuration>
  204. <attach>true</attach>
  205. </configuration>
  206. <executions>
  207. <execution>
  208. <goals>
  209. <goal>jar</goal>
  210. </goals>
  211. </execution>
  212. </executions>
  213. </plugin>
  214. </plugins>
  215. </build>
  216. </project>