pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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 http://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.0.0-alpha1</version>
  19. <relativePath>../hadoop-project</relativePath>
  20. </parent>
  21. <groupId>org.apache.hadoop</groupId>
  22. <artifactId>hadoop-yarn-project</artifactId>
  23. <version>3.0.0-alpha1</version>
  24. <packaging>pom</packaging>
  25. <name>Apache Hadoop YARN Project</name>
  26. <url>http://hadoop.apache.org/yarn/</url>
  27. <properties>
  28. <test.logs>true</test.logs>
  29. <test.timeout>600000</test.timeout>
  30. <fork.mode>once</fork.mode>
  31. <hadoop.component>yarn</hadoop.component>
  32. <is.hadoop.component>true</is.hadoop.component>
  33. </properties>
  34. <modules>
  35. <module>hadoop-yarn</module>
  36. </modules>
  37. <!--
  38. Do not add 3rd party dependencies here, add them to the POM of the leaf module
  39. The dependencies in this module are for the assembly plugin, packaging purposes
  40. -->
  41. <dependencies>
  42. <dependency>
  43. <groupId>org.apache.hadoop</groupId>
  44. <artifactId>hadoop-yarn-api</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.hadoop</groupId>
  48. <artifactId>hadoop-yarn-client</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.hadoop</groupId>
  52. <artifactId>hadoop-yarn-common</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.hadoop</groupId>
  56. <artifactId>hadoop-yarn-server-common</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.hadoop</groupId>
  60. <artifactId>hadoop-yarn-server-nodemanager</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.hadoop</groupId>
  64. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.hadoop</groupId>
  68. <artifactId>hadoop-yarn-server-web-proxy</artifactId>
  69. </dependency>
  70. </dependencies>
  71. <build>
  72. <plugins>
  73. <plugin>
  74. <artifactId>maven-antrun-plugin</artifactId>
  75. <executions>
  76. <execution>
  77. <id>tar</id>
  78. <phase>package</phase>
  79. <goals>
  80. <goal>run</goal>
  81. </goals>
  82. <configuration>
  83. <!-- this is identical from hadoop-project-dist, eventually they must be unified -->
  84. <target if="tar">
  85. <!-- Using Unix script to preserve symlinks -->
  86. <echo file="${project.build.directory}/dist-maketar.sh">
  87. cd "${project.build.directory}"
  88. tar cf - ${project.artifactId}-${project.version} | gzip > ${project.artifactId}-${project.version}.tar.gz
  89. </echo>
  90. <exec executable="${shell-executable}" dir="${project.build.directory}" failonerror="true">
  91. <arg line="./dist-maketar.sh"/>
  92. </exec>
  93. </target>
  94. </configuration>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. </plugins>
  99. </build>
  100. <profiles>
  101. <profile>
  102. <id>dist</id>
  103. <activation>
  104. <activeByDefault>false</activeByDefault>
  105. </activation>
  106. <build>
  107. <plugins>
  108. <plugin>
  109. <artifactId>maven-source-plugin</artifactId>
  110. <executions>
  111. <execution>
  112. <id>attach-sources</id>
  113. <goals>
  114. <!-- avoid warning about recursion -->
  115. <goal>jar-no-fork</goal>
  116. </goals>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-assembly-plugin</artifactId>
  123. <dependencies>
  124. <dependency>
  125. <groupId>org.apache.hadoop</groupId>
  126. <artifactId>hadoop-assemblies</artifactId>
  127. <version>${project.version}</version>
  128. </dependency>
  129. </dependencies>
  130. <configuration>
  131. <tarLongFileMode>gnu</tarLongFileMode>
  132. <appendAssemblyId>false</appendAssemblyId>
  133. <attach>false</attach>
  134. <finalName>${project.artifactId}-${project.version}</finalName>
  135. <descriptorRefs>
  136. <descriptorRef>hadoop-yarn-dist</descriptorRef>
  137. </descriptorRefs>
  138. </configuration>
  139. <executions>
  140. <execution>
  141. <id>package-yarn</id>
  142. <phase>prepare-package</phase>
  143. <goals>
  144. <goal>single</goal>
  145. </goals>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. </plugins>
  150. </build>
  151. </profile>
  152. </profiles>
  153. <reporting>
  154. <plugins>
  155. <plugin>
  156. <groupId>org.codehaus.mojo</groupId>
  157. <artifactId>findbugs-maven-plugin</artifactId>
  158. <!-- until we have reporting management cf. MSITE-443 -->
  159. <version>2.3.2</version>
  160. <configuration>
  161. <findbugsXmlOutput>true</findbugsXmlOutput>
  162. <xmlOutput>true</xmlOutput>
  163. </configuration>
  164. </plugin>
  165. </plugins>
  166. </reporting>
  167. </project>