pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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-streaming</artifactId>
  26. <version>3.0.0-SNAPSHOT</version>
  27. <description>Apache Hadoop MapReduce Streaming</description>
  28. <name>Apache Hadoop MapReduce Streaming</name>
  29. <packaging>jar</packaging>
  30. <properties>
  31. <hadoop.log.dir>${project.build.directory}/log</hadoop.log.dir>
  32. <test.exclude.pattern>%regex[.*(TestStreamingStatus).*]</test.exclude.pattern>
  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.mockito</groupId>
  42. <artifactId>mockito-all</artifactId>
  43. <scope>test</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-common</artifactId>
  79. <scope>provided</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.hadoop</groupId>
  83. <artifactId>hadoop-hdfs-client</artifactId>
  84. <scope>provided</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.hadoop</groupId>
  88. <artifactId>hadoop-common</artifactId>
  89. <scope>test</scope>
  90. <type>test-jar</type>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.hadoop</groupId>
  94. <artifactId>hadoop-hdfs</artifactId>
  95. <scope>test</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.hadoop</groupId>
  99. <artifactId>hadoop-hdfs</artifactId>
  100. <scope>test</scope>
  101. <type>test-jar</type>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.apache.hadoop</groupId>
  105. <artifactId>hadoop-yarn-server-tests</artifactId>
  106. <type>test-jar</type>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>cglib</groupId>
  111. <artifactId>cglib</artifactId>
  112. <scope>test</scope>
  113. </dependency>
  114. </dependencies>
  115. <build>
  116. <plugins>
  117. <plugin>
  118. <groupId>org.codehaus.mojo</groupId>
  119. <artifactId>findbugs-maven-plugin</artifactId>
  120. <configuration>
  121. <findbugsXmlOutput>true</findbugsXmlOutput>
  122. <xmlOutput>true</xmlOutput>
  123. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  124. <effort>Max</effort>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-antrun-plugin</artifactId>
  130. <executions>
  131. <execution>
  132. <id>create-log-dir</id>
  133. <phase>process-test-resources</phase>
  134. <goals>
  135. <goal>run</goal>
  136. </goals>
  137. <configuration>
  138. <target>
  139. <delete dir="${test.build.data}"/>
  140. <mkdir dir="${test.build.data}"/>
  141. <mkdir dir="${hadoop.log.dir}"/>
  142. </target>
  143. </configuration>
  144. </execution>
  145. <execution>
  146. <id>copy-test-bin</id>
  147. <phase>process-test-resources</phase>
  148. <goals>
  149. <goal>run</goal>
  150. </goals>
  151. <configuration>
  152. <target>
  153. <copy todir="target/bin">
  154. <fileset dir="src/test/bin" />
  155. </copy>
  156. </target>
  157. </configuration>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-jar-plugin</artifactId>
  164. <configuration>
  165. <archive>
  166. <manifest>
  167. <mainClass>org.apache.hadoop.streaming.HadoopStreaming</mainClass>
  168. </manifest>
  169. </archive>
  170. </configuration>
  171. </plugin>
  172. </plugins>
  173. <testResources>
  174. <testResource>
  175. <directory>${basedir}/../../hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/conf</directory>
  176. <includes>
  177. <include>capacity-scheduler.xml</include>
  178. </includes>
  179. <filtering>false</filtering>
  180. </testResource>
  181. </testResources>
  182. </build>
  183. </project>