pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. http://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>0.23.7</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-distcp</artifactId>
  26. <version>0.23.7</version>
  27. <description>Apache Hadoop Distributed Copy</description>
  28. <name>Apache Hadoop Distributed Copy</name>
  29. <packaging>jar</packaging>
  30. <properties>
  31. <file.encoding>UTF-8</file.encoding>
  32. <downloadSources>true</downloadSources>
  33. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  34. </properties>
  35. <dependencies>
  36. <dependency>
  37. <groupId>org.apache.hadoop</groupId>
  38. <artifactId>hadoop-common</artifactId>
  39. <scope>provided</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.hadoop</groupId>
  43. <artifactId>hadoop-annotations</artifactId>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.hadoop</groupId>
  48. <artifactId>hadoop-mapreduce-client-app</artifactId>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-mapreduce-client-hs</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.hadoop</groupId>
  58. <artifactId>hadoop-mapreduce-client-core</artifactId>
  59. <scope>provided</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.hadoop</groupId>
  63. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  64. <scope>provided</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.hadoop</groupId>
  68. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  69. <scope>test</scope>
  70. <type>test-jar</type>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.apache.hadoop</groupId>
  74. <artifactId>hadoop-hdfs</artifactId>
  75. <scope>provided</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.apache.hadoop</groupId>
  79. <artifactId>hadoop-hdfs</artifactId>
  80. <scope>test</scope>
  81. <type>test-jar</type>
  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. </dependencies>
  90. <build>
  91. <resources>
  92. <resource>
  93. <directory>src/main/resources</directory>
  94. <filtering>true</filtering>
  95. </resource>
  96. </resources>
  97. <testResources>
  98. <testResource>
  99. <directory>src/test/resources</directory>
  100. <filtering>true</filtering>
  101. </testResource>
  102. </testResources>
  103. <plugins>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-surefire-plugin</artifactId>
  107. <configuration>
  108. <forkMode>always</forkMode>
  109. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  110. <argLine>-Xmx1024m</argLine>
  111. <includes>
  112. <include>**/Test*.java</include>
  113. </includes>
  114. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  115. <systemProperties>
  116. <property>
  117. <name>test.build.data</name>
  118. <value>${basedir}/target/test/data</value>
  119. </property>
  120. <property>
  121. <name>hadoop.log.dir</name>
  122. <value>target/test/logs</value>
  123. </property>
  124. <property>
  125. <name>org.apache.commons.logging.Log</name>
  126. <value>org.apache.commons.logging.impl.SimpleLog</value>
  127. </property>
  128. <property>
  129. <name>org.apache.commons.logging.simplelog.defaultlog</name>
  130. <value>warn</value>
  131. </property>
  132. </systemProperties>
  133. </configuration>
  134. </plugin>
  135. <plugin>
  136. <artifactId>maven-dependency-plugin</artifactId>
  137. <executions>
  138. <execution>
  139. <phase>package</phase>
  140. <goals>
  141. <goal>copy-dependencies</goal>
  142. </goals>
  143. <configuration>
  144. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  145. </configuration>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-checkstyle-plugin</artifactId>
  152. <configuration>
  153. <enableRulesSummary>true</enableRulesSummary>
  154. </configuration>
  155. </plugin>
  156. <plugin>
  157. <groupId>org.apache.maven.plugins</groupId>
  158. <artifactId>maven-jar-plugin</artifactId>
  159. <configuration>
  160. <archive>
  161. <manifest>
  162. <mainClass>org.apache.hadoop.tools.DistCp</mainClass>
  163. </manifest>
  164. </archive>
  165. </configuration>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.apache.maven.plugins</groupId>
  169. <artifactId>maven-source-plugin</artifactId>
  170. <configuration>
  171. <attach>true</attach>
  172. </configuration>
  173. <executions>
  174. <execution>
  175. <goals>
  176. <goal>jar</goal>
  177. </goals>
  178. </execution>
  179. </executions>
  180. </plugin>
  181. <!-- Disable generation of pdf using maven-pdf-plugin until v.1.2 is released.
  182. See Hadoop 8064 for details. -->
  183. <!--plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-pdf-plugin</artifactId>
  186. <executions>
  187. <execution>
  188. <id>pdf</id>
  189. <phase>package</phase>
  190. <goals>
  191. <goal>pdf</goal>
  192. </goals>
  193. </execution>
  194. </executions>
  195. </plugin-->
  196. </plugins>
  197. </build>
  198. </project>