pom.xml 6.2 KB

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