pom.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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.5.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-federation-balance</artifactId>
  25. <version>3.5.0-SNAPSHOT</version>
  26. <description>Apache Hadoop Federation Balance</description>
  27. <name>Apache Hadoop Federation Balance</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>provided</scope>
  84. <exclusions>
  85. <exclusion>
  86. <groupId>org.ow2.asm</groupId>
  87. <artifactId>asm-commons</artifactId>
  88. </exclusion>
  89. </exclusions>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.hadoop</groupId>
  93. <artifactId>hadoop-hdfs</artifactId>
  94. <scope>test</scope>
  95. <type>test-jar</type>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.hadoop</groupId>
  99. <artifactId>hadoop-distcp</artifactId>
  100. <scope>provided</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.apache.hadoop</groupId>
  104. <artifactId>hadoop-common</artifactId>
  105. <scope>test</scope>
  106. <type>test-jar</type>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.mockito</groupId>
  110. <artifactId>mockito-core</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.assertj</groupId>
  115. <artifactId>assertj-core</artifactId>
  116. <scope>test</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.apache.hadoop</groupId>
  120. <artifactId>hadoop-minicluster</artifactId>
  121. <scope>provided</scope>
  122. </dependency>
  123. </dependencies>
  124. <build>
  125. <resources>
  126. <resource>
  127. <directory>src/main/resources</directory>
  128. <filtering>true</filtering>
  129. </resource>
  130. </resources>
  131. <testResources>
  132. <testResource>
  133. <directory>src/test/resources</directory>
  134. <filtering>true</filtering>
  135. </testResource>
  136. </testResources>
  137. <plugins>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-surefire-plugin</artifactId>
  141. <configuration>
  142. <forkCount>1</forkCount>
  143. <reuseForks>false</reuseForks>
  144. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  145. <argLine>-Xmx1024m</argLine>
  146. <includes>
  147. <include>**/Test*.java</include>
  148. </includes>
  149. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  150. <systemPropertyVariables>
  151. <test.build.data>${basedir}/target/test/data</test.build.data>
  152. <hadoop.log.dir>target/test/logs</hadoop.log.dir>
  153. <org.apache.commons.logging.Log>org.apache.commons.logging.impl.SimpleLog</org.apache.commons.logging.Log>
  154. <org.apache.commons.logging.simplelog.defaultlog>warn</org.apache.commons.logging.simplelog.defaultlog>
  155. </systemPropertyVariables>
  156. </configuration>
  157. </plugin>
  158. <plugin>
  159. <artifactId>maven-dependency-plugin</artifactId>
  160. <executions>
  161. <execution>
  162. <phase>package</phase>
  163. <goals>
  164. <goal>copy-dependencies</goal>
  165. </goals>
  166. <configuration>
  167. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  168. </configuration>
  169. </execution>
  170. <execution>
  171. <id>deplist</id>
  172. <phase>compile</phase>
  173. <goals>
  174. <goal>list</goal>
  175. </goals>
  176. <configuration>
  177. <!-- referenced by a built-in command -->
  178. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-jar-plugin</artifactId>
  186. <configuration>
  187. <archive>
  188. <manifest>
  189. <mainClass>org.apache.hadoop.tools.fedbalance.FedBalance</mainClass>
  190. </manifest>
  191. </archive>
  192. </configuration>
  193. <executions>
  194. <execution>
  195. <id>prepare-jar</id>
  196. <phase>prepare-package</phase>
  197. <goals>
  198. <goal>jar</goal>
  199. </goals>
  200. </execution>
  201. <execution>
  202. <id>prepare-test-jar</id>
  203. <phase>prepare-package</phase>
  204. <goals>
  205. <goal>test-jar</goal>
  206. </goals>
  207. </execution>
  208. </executions>
  209. </plugin>
  210. <plugin>
  211. <groupId>org.apache.maven.plugins</groupId>
  212. <artifactId>maven-source-plugin</artifactId>
  213. <configuration>
  214. <attach>true</attach>
  215. </configuration>
  216. <executions>
  217. <execution>
  218. <goals>
  219. <goal>jar</goal>
  220. </goals>
  221. </execution>
  222. </executions>
  223. </plugin>
  224. </plugins>
  225. </build>
  226. </project>