pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. </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. <testFailureIgnore>${ignoreTestFailure}</testFailureIgnore>
  127. <forkCount>1</forkCount>
  128. <reuseForks>false</reuseForks>
  129. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  130. <argLine>-Xmx1024m</argLine>
  131. <includes>
  132. <include>**/Test*.java</include>
  133. </includes>
  134. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  135. <systemProperties>
  136. <property>
  137. <name>test.build.data</name>
  138. <value>${basedir}/target/test/data</value>
  139. </property>
  140. <property>
  141. <name>hadoop.log.dir</name>
  142. <value>target/test/logs</value>
  143. </property>
  144. <property>
  145. <name>org.apache.commons.logging.Log</name>
  146. <value>org.apache.commons.logging.impl.SimpleLog</value>
  147. </property>
  148. <property>
  149. <name>org.apache.commons.logging.simplelog.defaultlog</name>
  150. <value>warn</value>
  151. </property>
  152. </systemProperties>
  153. </configuration>
  154. </plugin>
  155. <plugin>
  156. <artifactId>maven-dependency-plugin</artifactId>
  157. <executions>
  158. <execution>
  159. <phase>package</phase>
  160. <goals>
  161. <goal>copy-dependencies</goal>
  162. </goals>
  163. <configuration>
  164. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  165. </configuration>
  166. </execution>
  167. <execution>
  168. <id>deplist</id>
  169. <phase>compile</phase>
  170. <goals>
  171. <goal>list</goal>
  172. </goals>
  173. <configuration>
  174. <!-- referenced by a built-in command -->
  175. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  176. </configuration>
  177. </execution>
  178. </executions>
  179. </plugin>
  180. <plugin>
  181. <groupId>org.apache.maven.plugins</groupId>
  182. <artifactId>maven-jar-plugin</artifactId>
  183. <configuration>
  184. <archive>
  185. <manifest>
  186. <mainClass>org.apache.hadoop.tools.DistCp</mainClass>
  187. </manifest>
  188. </archive>
  189. </configuration>
  190. <executions>
  191. <execution>
  192. <id>prepare-jar</id>
  193. <phase>prepare-package</phase>
  194. <goals>
  195. <goal>jar</goal>
  196. </goals>
  197. </execution>
  198. <execution>
  199. <id>prepare-test-jar</id>
  200. <phase>prepare-package</phase>
  201. <goals>
  202. <goal>test-jar</goal>
  203. </goals>
  204. </execution>
  205. </executions>
  206. </plugin>
  207. <plugin>
  208. <groupId>org.apache.maven.plugins</groupId>
  209. <artifactId>maven-source-plugin</artifactId>
  210. <configuration>
  211. <attach>true</attach>
  212. </configuration>
  213. <executions>
  214. <execution>
  215. <goals>
  216. <goal>jar</goal>
  217. </goals>
  218. </execution>
  219. </executions>
  220. </plugin>
  221. </plugins>
  222. </build>
  223. </project>