pom.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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-inline</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-jdk18on</artifactId>
  122. <scope>test</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.bouncycastle</groupId>
  126. <artifactId>bcpkix-jdk18on</artifactId>
  127. <scope>test</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.junit.jupiter</groupId>
  131. <artifactId>junit-jupiter-api</artifactId>
  132. <scope>test</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.junit.jupiter</groupId>
  136. <artifactId>junit-jupiter-engine</artifactId>
  137. <scope>test</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.junit.jupiter</groupId>
  141. <artifactId>junit-jupiter-params</artifactId>
  142. <scope>test</scope>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.junit.platform</groupId>
  146. <artifactId>junit-platform-launcher</artifactId>
  147. <scope>test</scope>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.junit.vintage</groupId>
  151. <artifactId>junit-vintage-engine</artifactId>
  152. <scope>test</scope>
  153. </dependency>
  154. </dependencies>
  155. <build>
  156. <plugins>
  157. <plugin>
  158. <groupId>com.github.spotbugs</groupId>
  159. <artifactId>spotbugs-maven-plugin</artifactId>
  160. <configuration>
  161. <xmlOutput>true</xmlOutput>
  162. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  163. <effort>Max</effort>
  164. </configuration>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-antrun-plugin</artifactId>
  169. <executions>
  170. <execution>
  171. <id>create-log-dir</id>
  172. <phase>process-test-resources</phase>
  173. <goals>
  174. <goal>run</goal>
  175. </goals>
  176. <configuration>
  177. <target>
  178. <delete dir="${test.build.data}"/>
  179. <mkdir dir="${test.build.data}"/>
  180. <mkdir dir="${hadoop.log.dir}"/>
  181. </target>
  182. </configuration>
  183. </execution>
  184. <execution>
  185. <id>copy-test-bin</id>
  186. <phase>process-test-resources</phase>
  187. <goals>
  188. <goal>run</goal>
  189. </goals>
  190. <configuration>
  191. <target>
  192. <copy todir="target/bin">
  193. <fileset dir="src/test/bin" />
  194. </copy>
  195. </target>
  196. </configuration>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-jar-plugin</artifactId>
  203. <configuration>
  204. <archive>
  205. <manifest>
  206. <mainClass>org.apache.hadoop.streaming.HadoopStreaming</mainClass>
  207. </manifest>
  208. </archive>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-dependency-plugin</artifactId>
  214. <executions>
  215. <execution>
  216. <id>deplist</id>
  217. <phase>compile</phase>
  218. <goals>
  219. <goal>list</goal>
  220. </goals>
  221. <configuration>
  222. <!-- referenced by a built-in command -->
  223. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  224. </configuration>
  225. </execution>
  226. </executions>
  227. </plugin>
  228. </plugins>
  229. <testResources>
  230. <testResource>
  231. <directory>${basedir}/../../hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/conf</directory>
  232. <includes>
  233. <include>capacity-scheduler.xml</include>
  234. </includes>
  235. <filtering>false</filtering>
  236. </testResource>
  237. </testResources>
  238. </build>
  239. </project>