pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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-streaming</artifactId>
  25. <version>3.5.0-SNAPSHOT</version>
  26. <description>Apache Hadoop MapReduce Streaming</description>
  27. <name>Apache Hadoop MapReduce Streaming</name>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <hadoop.log.dir>${project.build.directory}/log</hadoop.log.dir>
  31. <test.exclude.pattern>%regex[.*(TestStreamingStatus).*]</test.exclude.pattern>
  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.mockito</groupId>
  41. <artifactId>mockito-core</artifactId>
  42. <scope>test</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-common</artifactId>
  78. <scope>provided</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.hadoop</groupId>
  82. <artifactId>hadoop-hdfs-client</artifactId>
  83. <scope>provided</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.hadoop</groupId>
  87. <artifactId>hadoop-common</artifactId>
  88. <scope>test</scope>
  89. <type>test-jar</type>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.hadoop</groupId>
  93. <artifactId>hadoop-hdfs</artifactId>
  94. <scope>test</scope>
  95. <exclusions>
  96. <exclusion>
  97. <groupId>org.ow2.asm</groupId>
  98. <artifactId>asm-commons</artifactId>
  99. </exclusion>
  100. </exclusions>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.apache.hadoop</groupId>
  104. <artifactId>hadoop-hdfs</artifactId>
  105. <scope>test</scope>
  106. <type>test-jar</type>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.hadoop</groupId>
  110. <artifactId>hadoop-yarn-server-tests</artifactId>
  111. <type>test-jar</type>
  112. <scope>test</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>cglib</groupId>
  116. <artifactId>cglib</artifactId>
  117. <scope>test</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.bouncycastle</groupId>
  121. <artifactId>bcprov-jdk15on</artifactId>
  122. <scope>test</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.bouncycastle</groupId>
  126. <artifactId>bcpkix-jdk15on</artifactId>
  127. <scope>test</scope>
  128. </dependency>
  129. </dependencies>
  130. <build>
  131. <plugins>
  132. <plugin>
  133. <groupId>com.github.spotbugs</groupId>
  134. <artifactId>spotbugs-maven-plugin</artifactId>
  135. <configuration>
  136. <xmlOutput>true</xmlOutput>
  137. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  138. <effort>Max</effort>
  139. </configuration>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-antrun-plugin</artifactId>
  144. <executions>
  145. <execution>
  146. <id>create-log-dir</id>
  147. <phase>process-test-resources</phase>
  148. <goals>
  149. <goal>run</goal>
  150. </goals>
  151. <configuration>
  152. <target>
  153. <delete dir="${test.build.data}"/>
  154. <mkdir dir="${test.build.data}"/>
  155. <mkdir dir="${hadoop.log.dir}"/>
  156. </target>
  157. </configuration>
  158. </execution>
  159. <execution>
  160. <id>copy-test-bin</id>
  161. <phase>process-test-resources</phase>
  162. <goals>
  163. <goal>run</goal>
  164. </goals>
  165. <configuration>
  166. <target>
  167. <copy todir="target/bin">
  168. <fileset dir="src/test/bin" />
  169. </copy>
  170. </target>
  171. </configuration>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-jar-plugin</artifactId>
  178. <configuration>
  179. <archive>
  180. <manifest>
  181. <mainClass>org.apache.hadoop.streaming.HadoopStreaming</mainClass>
  182. </manifest>
  183. </archive>
  184. </configuration>
  185. </plugin>
  186. <plugin>
  187. <groupId>org.apache.maven.plugins</groupId>
  188. <artifactId>maven-dependency-plugin</artifactId>
  189. <executions>
  190. <execution>
  191. <id>deplist</id>
  192. <phase>compile</phase>
  193. <goals>
  194. <goal>list</goal>
  195. </goals>
  196. <configuration>
  197. <!-- referenced by a built-in command -->
  198. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  199. </configuration>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. </plugins>
  204. <testResources>
  205. <testResource>
  206. <directory>${basedir}/../../hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/conf</directory>
  207. <includes>
  208. <include>capacity-scheduler.xml</include>
  209. </includes>
  210. <filtering>false</filtering>
  211. </testResource>
  212. </testResources>
  213. </build>
  214. </project>