pom.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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. --><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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  13. <modelVersion>4.0.0</modelVersion>
  14. <parent>
  15. <groupId>org.apache.hadoop</groupId>
  16. <artifactId>hadoop-project</artifactId>
  17. <version>3.0.0-beta1-SNAPSHOT</version>
  18. <relativePath>../../hadoop-project</relativePath>
  19. </parent>
  20. <artifactId>hadoop-yarn</artifactId>
  21. <version>3.0.0-beta1-SNAPSHOT</version>
  22. <packaging>pom</packaging>
  23. <name>Apache Hadoop YARN</name>
  24. <properties>
  25. <test.logs>true</test.logs>
  26. <test.timeout>600000</test.timeout>
  27. <yarn.basedir>${basedir}</yarn.basedir>
  28. <!-- Used by jdiff -->
  29. <!-- Antrun cannot resolve yarn.basedir, so we need to setup something else -->
  30. <dev-support.relative.dir>dev-support</dev-support.relative.dir>
  31. <hadoop.common.build.dir>${basedir}/../../../hadoop-common-project/hadoop-common/target</hadoop.common.build.dir>
  32. </properties>
  33. <!-- Do not add dependencies here, add them to the POM of the leaf module -->
  34. <build>
  35. <plugins>
  36. <plugin>
  37. <groupId>org.codehaus.mojo</groupId>
  38. <artifactId>findbugs-maven-plugin</artifactId>
  39. <configuration>
  40. <findbugsXmlOutput>true</findbugsXmlOutput>
  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</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. <build>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-javadoc-plugin</artifactId>
  114. <executions>
  115. <execution>
  116. <goals>
  117. <goal>javadoc</goal>
  118. </goals>
  119. <phase>prepare-package</phase>
  120. </execution>
  121. </executions>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-dependency-plugin</artifactId>
  126. <executions>
  127. <execution>
  128. <id>site</id>
  129. <phase>prepare-package</phase>
  130. <goals>
  131. <goal>copy</goal>
  132. </goals>
  133. <configuration>
  134. <artifactItems>
  135. <artifactItem>
  136. <groupId>jdiff</groupId>
  137. <artifactId>jdiff</artifactId>
  138. <version>${jdiff.version}</version>
  139. <overWrite>false</overWrite>
  140. <outputDirectory>${project.build.directory}</outputDirectory>
  141. <destFileName>jdiff.jar</destFileName>
  142. </artifactItem>
  143. <artifactItem>
  144. <groupId>org.apache.hadoop</groupId>
  145. <artifactId>hadoop-annotations</artifactId>
  146. <version>${project.version}</version>
  147. <overWrite>false</overWrite>
  148. <outputDirectory>${project.build.directory}</outputDirectory>
  149. <destFileName>hadoop-annotations.jar</destFileName>
  150. </artifactItem>
  151. <artifactItem>
  152. <groupId>xerces</groupId>
  153. <artifactId>xercesImpl</artifactId>
  154. <version>${xerces.version.jdiff}</version>
  155. <overWrite>false</overWrite>
  156. <outputDirectory>${project.build.directory}</outputDirectory>
  157. <destFileName>xerces.jar</destFileName>
  158. </artifactItem>
  159. </artifactItems>
  160. </configuration>
  161. </execution>
  162. </executions>
  163. </plugin>
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-antrun-plugin</artifactId>
  167. <executions>
  168. <execution>
  169. <id>site</id>
  170. <phase>prepare-package</phase>
  171. <goals>
  172. <goal>run</goal>
  173. </goals>
  174. <configuration>
  175. <target if="should.run.jdiff">
  176. <!-- Jdiff -->
  177. <mkdir dir="${project.build.directory}/site/jdiff/xml"/>
  178. <javadoc maxmemory="${jdiff.javadoc.maxmemory}" verbose="yes">
  179. <doclet name="org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet"
  180. path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar">
  181. <param name="-apidir" value="${project.build.directory}/site/jdiff/xml"/>
  182. <param name="-apiname" value="${project.name} ${project.version}"/>
  183. <param name="${jdiff.stability}"/>
  184. </doclet>
  185. <packageset dir="${basedir}/src/main/java"/>
  186. <classpath>
  187. <path refid="maven.compile.classpath"/>
  188. </classpath>
  189. </javadoc>
  190. <javadoc sourcepath="${basedir}/src/main/java"
  191. destdir="${project.build.directory}/site/jdiff/xml"
  192. sourceFiles="${dev-support.relative.dir}/jdiff/Null.java"
  193. maxmemory="${jdiff.javadoc.maxmemory}">
  194. <doclet name="org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet"
  195. path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar:${project.build.directory}/xerces.jar">
  196. <param name="-oldapi" value="${project.name} ${jdiff.stable.api}"/>
  197. <param name="-newapi" value="${project.name} ${project.version}"/>
  198. <param name="-oldapidir" value="${basedir}/${dev-support.relative.dir}/jdiff"/>
  199. <param name="-newapidir" value="${project.build.directory}/site/jdiff/xml"/>
  200. <param name="-javadocold"
  201. value="http://hadoop.apache.org/docs/r${jdiff.stable.api}/api/"/>
  202. <param name="-javadocnew" value="${project.build.directory}/site/apidocs/"/>
  203. <param name="-stats"/>
  204. <param name="${jdiff.stability}"/>
  205. <!--param name="${jdiff.compatibility}"/-->
  206. </doclet>
  207. <classpath>
  208. <path refid="maven.compile.classpath"/>
  209. </classpath>
  210. </javadoc>
  211. </target>
  212. </configuration>
  213. </execution>
  214. </executions>
  215. </plugin>
  216. </plugins>
  217. </build>
  218. </profile>
  219. </profiles>
  220. <modules>
  221. <module>hadoop-yarn-api</module>
  222. <module>hadoop-yarn-common</module>
  223. <module>hadoop-yarn-server</module>
  224. <module>hadoop-yarn-applications</module>
  225. <module>hadoop-yarn-site</module>
  226. <module>hadoop-yarn-client</module>
  227. <module>hadoop-yarn-registry</module>
  228. <module>hadoop-yarn-ui</module>
  229. </modules>
  230. </project>