pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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.3.9-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-distcp</artifactId>
  25. <version>3.3.9-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. </dependency>
  85. <dependency>
  86. <groupId>org.apache.hadoop</groupId>
  87. <artifactId>hadoop-hdfs</artifactId>
  88. <scope>test</scope>
  89. <type>test-jar</type>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.hadoop</groupId>
  93. <artifactId>hadoop-common</artifactId>
  94. <scope>test</scope>
  95. <type>test-jar</type>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.mockito</groupId>
  99. <artifactId>mockito-core</artifactId>
  100. <scope>test</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.assertj</groupId>
  104. <artifactId>assertj-core</artifactId>
  105. <scope>test</scope>
  106. </dependency>
  107. </dependencies>
  108. <build>
  109. <resources>
  110. <resource>
  111. <directory>src/main/resources</directory>
  112. <filtering>true</filtering>
  113. </resource>
  114. </resources>
  115. <testResources>
  116. <testResource>
  117. <directory>src/test/resources</directory>
  118. <filtering>true</filtering>
  119. </testResource>
  120. </testResources>
  121. <plugins>
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-surefire-plugin</artifactId>
  125. <configuration>
  126. <forkCount>1</forkCount>
  127. <reuseForks>false</reuseForks>
  128. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  129. <argLine>-Xmx1024m</argLine>
  130. <includes>
  131. <include>**/Test*.java</include>
  132. </includes>
  133. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  134. <systemProperties>
  135. <property>
  136. <name>test.build.data</name>
  137. <value>${basedir}/target/test/data</value>
  138. </property>
  139. <property>
  140. <name>hadoop.log.dir</name>
  141. <value>target/test/logs</value>
  142. </property>
  143. <property>
  144. <name>org.apache.commons.logging.Log</name>
  145. <value>org.apache.commons.logging.impl.SimpleLog</value>
  146. </property>
  147. <property>
  148. <name>org.apache.commons.logging.simplelog.defaultlog</name>
  149. <value>warn</value>
  150. </property>
  151. </systemProperties>
  152. </configuration>
  153. </plugin>
  154. <plugin>
  155. <artifactId>maven-dependency-plugin</artifactId>
  156. <executions>
  157. <execution>
  158. <phase>package</phase>
  159. <goals>
  160. <goal>copy-dependencies</goal>
  161. </goals>
  162. <configuration>
  163. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  164. </configuration>
  165. </execution>
  166. <execution>
  167. <id>deplist</id>
  168. <phase>compile</phase>
  169. <goals>
  170. <goal>list</goal>
  171. </goals>
  172. <configuration>
  173. <!-- referenced by a built-in command -->
  174. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  175. </configuration>
  176. </execution>
  177. </executions>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-jar-plugin</artifactId>
  182. <configuration>
  183. <archive>
  184. <manifest>
  185. <mainClass>org.apache.hadoop.tools.DistCp</mainClass>
  186. </manifest>
  187. </archive>
  188. </configuration>
  189. <executions>
  190. <execution>
  191. <id>prepare-jar</id>
  192. <phase>prepare-package</phase>
  193. <goals>
  194. <goal>jar</goal>
  195. </goals>
  196. </execution>
  197. <execution>
  198. <id>prepare-test-jar</id>
  199. <phase>prepare-package</phase>
  200. <goals>
  201. <goal>test-jar</goal>
  202. </goals>
  203. </execution>
  204. </executions>
  205. </plugin>
  206. <plugin>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-source-plugin</artifactId>
  209. <configuration>
  210. <attach>true</attach>
  211. </configuration>
  212. <executions>
  213. <execution>
  214. <goals>
  215. <goal>jar</goal>
  216. </goals>
  217. </execution>
  218. </executions>
  219. </plugin>
  220. </plugins>
  221. </build>
  222. </project>