pom.xml 6.2 KB

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