pom.xml 6.8 KB

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