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