pom.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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-archive-logs</artifactId>
  25. <version>3.5.0-SNAPSHOT</version>
  26. <description>Apache Hadoop Archive Logs</description>
  27. <name>Apache Hadoop Archive Logs</name>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <hadoop.log.dir>${project.build.directory}/log</hadoop.log.dir>
  31. </properties>
  32. <dependencies>
  33. <dependency>
  34. <groupId>junit</groupId>
  35. <artifactId>junit</artifactId>
  36. <scope>test</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.hadoop</groupId>
  40. <artifactId>hadoop-mapreduce-client-core</artifactId>
  41. <scope>provided</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.hadoop</groupId>
  45. <artifactId>hadoop-yarn-applications-distributedshell</artifactId>
  46. <scope>provided</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hadoop</groupId>
  50. <artifactId>hadoop-common</artifactId>
  51. <scope>provided</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.hadoop</groupId>
  55. <artifactId>hadoop-hdfs</artifactId>
  56. <scope>test</scope>
  57. <type>test-jar</type>
  58. <exclusions>
  59. <exclusion>
  60. <groupId>org.ow2.asm</groupId>
  61. <artifactId>asm-commons</artifactId>
  62. </exclusion>
  63. </exclusions>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.hadoop</groupId>
  67. <artifactId>hadoop-hdfs-client</artifactId>
  68. <scope>test</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.hadoop</groupId>
  72. <artifactId>hadoop-yarn-server-tests</artifactId>
  73. <type>test-jar</type>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.hadoop</groupId>
  78. <artifactId>hadoop-archives</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.hadoop</groupId>
  82. <artifactId>hadoop-yarn-common</artifactId>
  83. <scope>provided</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.hadoop</groupId>
  87. <artifactId>hadoop-yarn-api</artifactId>
  88. <scope>provided</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.hadoop.thirdparty</groupId>
  92. <artifactId>hadoop-shaded-guava</artifactId>
  93. <scope>provided</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>commons-io</groupId>
  97. <artifactId>commons-io</artifactId>
  98. <scope>provided</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>commons-cli</groupId>
  102. <artifactId>commons-cli</artifactId>
  103. <scope>provided</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.hadoop</groupId>
  107. <artifactId>hadoop-yarn-client</artifactId>
  108. <scope>provided</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.apache.hadoop</groupId>
  112. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  113. <scope>provided</scope>
  114. </dependency>
  115. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  116. <dependency>
  117. <groupId>org.apache.hadoop</groupId>
  118. <artifactId>hadoop-hdfs</artifactId>
  119. <scope>test</scope>
  120. </dependency>
  121. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  122. <dependency>
  123. <groupId>org.mockito</groupId>
  124. <artifactId>mockito-inline</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  128. <dependency>
  129. <groupId>org.apache.hadoop</groupId>
  130. <artifactId>hadoop-common</artifactId>
  131. <scope>test</scope>
  132. <type>test-jar</type>
  133. </dependency>
  134. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  135. <dependency>
  136. <groupId>org.apache.hadoop</groupId>
  137. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  138. <scope>test</scope>
  139. <type>test-jar</type>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.junit.jupiter</groupId>
  143. <artifactId>junit-jupiter-api</artifactId>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.junit.jupiter</groupId>
  148. <artifactId>junit-jupiter-engine</artifactId>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.junit.jupiter</groupId>
  153. <artifactId>junit-jupiter-params</artifactId>
  154. <scope>test</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.junit.platform</groupId>
  158. <artifactId>junit-platform-launcher</artifactId>
  159. <scope>test</scope>
  160. </dependency>
  161. </dependencies>
  162. <build>
  163. <plugins>
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-antrun-plugin</artifactId>
  167. <executions>
  168. <execution>
  169. <id>create-log-dir</id>
  170. <phase>process-test-resources</phase>
  171. <goals>
  172. <goal>run</goal>
  173. </goals>
  174. <configuration>
  175. <target>
  176. <delete dir="${test.build.data}"/>
  177. <mkdir dir="${test.build.data}"/>
  178. <mkdir dir="${hadoop.log.dir}"/>
  179. </target>
  180. </configuration>
  181. </execution>
  182. </executions>
  183. </plugin>
  184. <plugin>
  185. <groupId>org.apache.maven.plugins</groupId>
  186. <artifactId>maven-jar-plugin</artifactId>
  187. <configuration>
  188. <archive>
  189. <manifest>
  190. <mainClass>org.apache.hadoop.tools.HadoopArchiveLogs</mainClass>
  191. </manifest>
  192. </archive>
  193. </configuration>
  194. </plugin>
  195. <plugin>
  196. <groupId>org.apache.maven.plugins</groupId>
  197. <artifactId>maven-dependency-plugin</artifactId>
  198. <executions>
  199. <execution>
  200. <id>deplist</id>
  201. <phase>compile</phase>
  202. <goals>
  203. <goal>list</goal>
  204. </goals>
  205. <configuration>
  206. <!-- referenced by a built-in command -->
  207. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  208. </configuration>
  209. </execution>
  210. </executions>
  211. </plugin>
  212. <plugin>
  213. <groupId>com.github.spotbugs</groupId>
  214. <artifactId>spotbugs-maven-plugin</artifactId>
  215. <configuration>
  216. <xmlOutput>true</xmlOutput>
  217. <excludeFilterFile>
  218. ${basedir}/dev-support/findbugs-exclude.xml
  219. </excludeFilterFile>
  220. <effort>Max</effort>
  221. </configuration>
  222. </plugin>
  223. </plugins>
  224. </build>
  225. </project>