pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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-gridmix</artifactId>
  26. <version>3.0.0-SNAPSHOT</version>
  27. <description>Apache Hadoop Gridmix</description>
  28. <name>Apache Hadoop Gridmix</name>
  29. <packaging>jar</packaging>
  30. <properties>
  31. <hadoop.log.dir>${project.build.directory}/log</hadoop.log.dir>
  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-annotations</artifactId>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.hadoop</groupId>
  46. <artifactId>hadoop-mapreduce-client-hs</artifactId>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.hadoop</groupId>
  51. <artifactId>hadoop-mapreduce-client-core</artifactId>
  52. <scope>provided</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.hadoop</groupId>
  56. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  57. <scope>provided</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.hadoop</groupId>
  61. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  62. <scope>test</scope>
  63. <type>test-jar</type>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.hadoop</groupId>
  67. <artifactId>hadoop-common</artifactId>
  68. <scope>provided</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.hadoop</groupId>
  72. <artifactId>hadoop-rumen</artifactId>
  73. <scope>provided</scope>
  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-common</artifactId>
  83. <scope>test</scope>
  84. <type>test-jar</type>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.hadoop</groupId>
  88. <artifactId>hadoop-hdfs</artifactId>
  89. <scope>test</scope>
  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-yarn-server-tests</artifactId>
  100. <type>test-jar</type>
  101. <scope>test</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.mockito</groupId>
  105. <artifactId>mockito-all</artifactId>
  106. <scope>test</scope>
  107. </dependency>
  108. </dependencies>
  109. <build>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.codehaus.mojo</groupId>
  113. <artifactId>findbugs-maven-plugin</artifactId>
  114. <configuration>
  115. <findbugsXmlOutput>true</findbugsXmlOutput>
  116. <xmlOutput>true</xmlOutput>
  117. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  118. <effort>Max</effort>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-antrun-plugin</artifactId>
  124. <executions>
  125. <execution>
  126. <id>create-log-dir</id>
  127. <phase>process-test-resources</phase>
  128. <goals>
  129. <goal>run</goal>
  130. </goals>
  131. <configuration>
  132. <target>
  133. <delete dir="${test.build.data}"/>
  134. <mkdir dir="${test.build.data}"/>
  135. <mkdir dir="${hadoop.log.dir}"/>
  136. </target>
  137. </configuration>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.apache.rat</groupId>
  143. <artifactId>apache-rat-plugin</artifactId>
  144. <configuration>
  145. <excludes>
  146. <exclude>src/test/resources/data/*</exclude>
  147. </excludes>
  148. </configuration>
  149. </plugin>
  150. <plugin>
  151. <groupId>org.apache.maven.plugins</groupId>
  152. <artifactId>maven-jar-plugin</artifactId>
  153. <configuration>
  154. <archive>
  155. <manifest>
  156. <mainClass>org.apache.hadoop.mapred.gridmix.Gridmix</mainClass>
  157. </manifest>
  158. </archive>
  159. </configuration>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-dependency-plugin</artifactId>
  164. <executions>
  165. <execution>
  166. <id>deplist</id>
  167. <phase>compile</phase>
  168. <goals>
  169. <goal>list</goal>
  170. </goals>
  171. <configuration>
  172. <!-- referenced by a built-in command -->
  173. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  174. </configuration>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. </plugins>
  179. </build>
  180. </project>