pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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>2.8.0-SNAPSHOT</version>
  19. <relativePath>../../hadoop-project</relativePath>
  20. </parent>
  21. <groupId>org.apache.hadoop</groupId>
  22. <artifactId>hadoop-gridmix</artifactId>
  23. <version>2.8.0-SNAPSHOT</version>
  24. <description>Apache Hadoop Gridmix</description>
  25. <name>Apache Hadoop Gridmix</name>
  26. <packaging>jar</packaging>
  27. <properties>
  28. <hadoop.log.dir>${project.build.directory}/log</hadoop.log.dir>
  29. </properties>
  30. <dependencies>
  31. <dependency>
  32. <groupId>junit</groupId>
  33. <artifactId>junit</artifactId>
  34. <scope>test</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.apache.hadoop</groupId>
  38. <artifactId>hadoop-annotations</artifactId>
  39. <scope>provided</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.hadoop</groupId>
  43. <artifactId>hadoop-mapreduce-client-hs</artifactId>
  44. <scope>test</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.hadoop</groupId>
  48. <artifactId>hadoop-mapreduce-client-core</artifactId>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  54. <scope>provided</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.hadoop</groupId>
  58. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  59. <scope>test</scope>
  60. <type>test-jar</type>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.hadoop</groupId>
  64. <artifactId>hadoop-common</artifactId>
  65. <scope>provided</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.hadoop</groupId>
  69. <artifactId>hadoop-rumen</artifactId>
  70. <scope>provided</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.apache.hadoop</groupId>
  74. <artifactId>hadoop-hdfs</artifactId>
  75. <scope>provided</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.apache.hadoop</groupId>
  79. <artifactId>hadoop-common</artifactId>
  80. <scope>test</scope>
  81. <type>test-jar</type>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.hadoop</groupId>
  85. <artifactId>hadoop-hdfs</artifactId>
  86. <scope>test</scope>
  87. <type>test-jar</type>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.apache.hadoop</groupId>
  91. <artifactId>hadoop-yarn-server-tests</artifactId>
  92. <type>test-jar</type>
  93. <scope>test</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.mockito</groupId>
  97. <artifactId>mockito-all</artifactId>
  98. <scope>test</scope>
  99. </dependency>
  100. </dependencies>
  101. <build>
  102. <plugins>
  103. <plugin>
  104. <groupId>org.codehaus.mojo</groupId>
  105. <artifactId>findbugs-maven-plugin</artifactId>
  106. <configuration>
  107. <findbugsXmlOutput>true</findbugsXmlOutput>
  108. <xmlOutput>true</xmlOutput>
  109. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  110. <effort>Max</effort>
  111. </configuration>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-antrun-plugin</artifactId>
  116. <executions>
  117. <execution>
  118. <id>create-log-dir</id>
  119. <phase>process-test-resources</phase>
  120. <goals>
  121. <goal>run</goal>
  122. </goals>
  123. <configuration>
  124. <target>
  125. <delete dir="${test.build.data}"/>
  126. <mkdir dir="${test.build.data}"/>
  127. <mkdir dir="${hadoop.log.dir}"/>
  128. </target>
  129. </configuration>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.apache.rat</groupId>
  135. <artifactId>apache-rat-plugin</artifactId>
  136. <configuration>
  137. <excludes>
  138. <exclude>src/test/resources/data/*</exclude>
  139. </excludes>
  140. </configuration>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-jar-plugin</artifactId>
  145. <configuration>
  146. <archive>
  147. <manifest>
  148. <mainClass>org.apache.hadoop.mapred.gridmix.Gridmix</mainClass>
  149. </manifest>
  150. </archive>
  151. </configuration>
  152. </plugin>
  153. </plugins>
  154. </build>
  155. </project>