pom.xml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  14. <modelVersion>4.0.0</modelVersion>
  15. <parent>
  16. <groupId>org.apache.hadoop</groupId>
  17. <artifactId>hadoop-project</artifactId>
  18. <version>3.5.0-SNAPSHOT</version>
  19. <relativePath>../../hadoop-project</relativePath>
  20. </parent>
  21. <artifactId>hadoop-yarn</artifactId>
  22. <version>3.5.0-SNAPSHOT</version>
  23. <packaging>pom</packaging>
  24. <name>Apache Hadoop YARN</name>
  25. <properties>
  26. <test.logs>true</test.logs>
  27. <test.timeout>600000</test.timeout>
  28. <yarn.basedir>${basedir}</yarn.basedir>
  29. <!-- Used by jdiff -->
  30. <!-- Antrun cannot resolve yarn.basedir, so we need to setup something else -->
  31. <dev-support.relative.dir>dev-support</dev-support.relative.dir>
  32. <hadoop.common.build.dir>${basedir}/../../../hadoop-common-project/hadoop-common/target</hadoop.common.build.dir>
  33. </properties>
  34. <!-- Do not add dependencies here, add them to the POM of the leaf module -->
  35. <build>
  36. <plugins>
  37. <plugin>
  38. <groupId>com.github.spotbugs</groupId>
  39. <artifactId>spotbugs-maven-plugin</artifactId>
  40. <configuration>
  41. <xmlOutput>true</xmlOutput>
  42. <excludeFilterFile>${yarn.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  43. <effort>Max</effort>
  44. </configuration>
  45. </plugin>
  46. <plugin>
  47. <groupId>org.apache.rat</groupId>
  48. <artifactId>apache-rat-plugin</artifactId>
  49. <configuration>
  50. <excludes>
  51. <exclude>conf/workers</exclude>
  52. <exclude>conf/container-executor.cfg</exclude>
  53. <exclude>dev-support/jdiff/**</exclude>
  54. </excludes>
  55. </configuration>
  56. </plugin>
  57. <plugin>
  58. <groupId>org.apache.maven.plugins</groupId>
  59. <artifactId>maven-surefire-plugin</artifactId>
  60. <configuration>
  61. <properties>
  62. <property>
  63. <name>listener</name>
  64. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  65. </property>
  66. </properties>
  67. </configuration>
  68. </plugin>
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-javadoc-plugin</artifactId>
  72. <configuration>
  73. <excludePackageNames>org.apache.hadoop.yarn.proto:org.apache.hadoop.yarn.federation.proto:org.apache.hadoop.yarn.service</excludePackageNames>
  74. </configuration>
  75. </plugin>
  76. </plugins>
  77. </build>
  78. <profiles>
  79. <profile>
  80. <id>release</id>
  81. <build>
  82. <plugins>
  83. <plugin>
  84. <artifactId>maven-source-plugin</artifactId>
  85. <executions>
  86. <execution>
  87. <id>attach-sources</id>
  88. <goals>
  89. <!-- avoid warning about recursion -->
  90. <goal>jar-no-fork</goal>
  91. </goals>
  92. </execution>
  93. </executions>
  94. </plugin>
  95. </plugins>
  96. </build>
  97. </profile>
  98. <profile>
  99. <id>docs</id>
  100. <activation>
  101. <activeByDefault>false</activeByDefault>
  102. </activation>
  103. <properties>
  104. <jdiff.stable.api>2.7.2</jdiff.stable.api>
  105. <jdiff.stability>-unstable</jdiff.stability>
  106. <jdiff.compatibility></jdiff.compatibility>
  107. <jdiff.javadoc.maxmemory>512m</jdiff.javadoc.maxmemory>
  108. </properties>
  109. <dependencies>
  110. <dependency>
  111. <groupId>xerces</groupId>
  112. <artifactId>xercesImpl</artifactId>
  113. <version>${xerces.jdiff.version}</version>
  114. </dependency>
  115. </dependencies>
  116. <build>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-javadoc-plugin</artifactId>
  121. <executions>
  122. <execution>
  123. <goals>
  124. <goal>javadoc-no-fork</goal>
  125. </goals>
  126. <phase>prepare-package</phase>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-dependency-plugin</artifactId>
  133. <executions>
  134. <execution>
  135. <id>site</id>
  136. <phase>prepare-package</phase>
  137. <goals>
  138. <goal>copy</goal>
  139. </goals>
  140. <configuration>
  141. <artifactItems>
  142. <artifactItem>
  143. <groupId>jdiff</groupId>
  144. <artifactId>jdiff</artifactId>
  145. <version>${jdiff.version}</version>
  146. <overWrite>false</overWrite>
  147. <outputDirectory>${project.build.directory}</outputDirectory>
  148. <destFileName>jdiff.jar</destFileName>
  149. </artifactItem>
  150. <artifactItem>
  151. <groupId>org.apache.hadoop</groupId>
  152. <artifactId>hadoop-annotations</artifactId>
  153. <version>${project.version}</version>
  154. <overWrite>false</overWrite>
  155. <outputDirectory>${project.build.directory}</outputDirectory>
  156. <destFileName>hadoop-annotations.jar</destFileName>
  157. </artifactItem>
  158. <artifactItem>
  159. <groupId>xerces</groupId>
  160. <artifactId>xercesImpl</artifactId>
  161. <version>${xerces.version.jdiff}</version>
  162. <overWrite>false</overWrite>
  163. <outputDirectory>${project.build.directory}</outputDirectory>
  164. <destFileName>xerces.jar</destFileName>
  165. </artifactItem>
  166. </artifactItems>
  167. </configuration>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-antrun-plugin</artifactId>
  174. <executions>
  175. <execution>
  176. <id>site</id>
  177. <phase>prepare-package</phase>
  178. <goals>
  179. <goal>run</goal>
  180. </goals>
  181. <configuration>
  182. <target if="should.run.jdiff">
  183. <!-- Jdiff -->
  184. <mkdir dir="${project.build.directory}/site/jdiff/xml"/>
  185. <javadoc maxmemory="${jdiff.javadoc.maxmemory}" verbose="yes">
  186. <doclet name="org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet"
  187. path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar">
  188. <param name="-apidir" value="${project.build.directory}/site/jdiff/xml"/>
  189. <param name="-apiname" value="${project.name} ${project.version}"/>
  190. <param name="${jdiff.stability}"/>
  191. </doclet>
  192. <packageset dir="${basedir}/src/main/java"/>
  193. <classpath>
  194. <path refid="maven.compile.classpath"/>
  195. </classpath>
  196. </javadoc>
  197. <javadoc sourcepath="${basedir}/src/main/java"
  198. destdir="${project.build.directory}/site/jdiff/xml"
  199. sourceFiles="${dev-support.relative.dir}/jdiff/Null.java"
  200. maxmemory="${jdiff.javadoc.maxmemory}">
  201. <doclet name="org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet"
  202. path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar:${project.build.directory}/xerces.jar">
  203. <param name="-oldapi" value="${project.name} ${jdiff.stable.api}"/>
  204. <param name="-newapi" value="${project.name} ${project.version}"/>
  205. <param name="-oldapidir" value="${basedir}/${dev-support.relative.dir}/jdiff"/>
  206. <param name="-newapidir" value="${project.build.directory}/site/jdiff/xml"/>
  207. <param name="-javadocold"
  208. value="https://hadoop.apache.org/docs/r${jdiff.stable.api}/api/"/>
  209. <param name="-javadocnew" value="${project.build.directory}/site/apidocs/"/>
  210. <param name="-stats"/>
  211. <param name="${jdiff.stability}"/>
  212. <!--param name="${jdiff.compatibility}"/-->
  213. </doclet>
  214. <classpath>
  215. <path refid="maven.compile.classpath"/>
  216. </classpath>
  217. </javadoc>
  218. </target>
  219. </configuration>
  220. </execution>
  221. </executions>
  222. </plugin>
  223. </plugins>
  224. </build>
  225. </profile>
  226. </profiles>
  227. <modules>
  228. <module>hadoop-yarn-api</module>
  229. <module>hadoop-yarn-common</module>
  230. <module>hadoop-yarn-server</module>
  231. <module>hadoop-yarn-applications</module>
  232. <module>hadoop-yarn-site</module>
  233. <module>hadoop-yarn-client</module>
  234. <module>hadoop-yarn-registry</module>
  235. <module>hadoop-yarn-ui</module>
  236. <module>hadoop-yarn-csi</module>
  237. </modules>
  238. <!-- -->
  239. </project>