pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0"?>
  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. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <parent>
  18. <artifactId>hadoop-yarn</artifactId>
  19. <groupId>org.apache.hadoop</groupId>
  20. <version>3.0.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-yarn-registry</artifactId>
  24. <version>3.0.0-SNAPSHOT</version>
  25. <name>Apache Hadoop YARN Registry</name>
  26. <properties>
  27. <!-- Needed for generating FindBugs warnings using parent pom -->
  28. <yarn.basedir>${project.parent.basedir}</yarn.basedir>
  29. </properties>
  30. <dependencies>
  31. <dependency>
  32. <groupId>org.apache.hadoop</groupId>
  33. <artifactId>hadoop-yarn-api</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.apache.hadoop</groupId>
  37. <artifactId>hadoop-yarn-common</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.hadoop</groupId>
  41. <artifactId>hadoop-common</artifactId>
  42. </dependency>
  43. <!-- needed for TimedOutTestsListener -->
  44. <dependency>
  45. <groupId>org.apache.hadoop</groupId>
  46. <artifactId>hadoop-common</artifactId>
  47. <type>test-jar</type>
  48. <scope>test</scope>
  49. </dependency>
  50. <!-- Mini KDC is used for testing -->
  51. <dependency>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-minikdc</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.codehaus.jackson</groupId>
  58. <artifactId>jackson-core-asl</artifactId>
  59. <scope>compile</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.codehaus.jackson</groupId>
  63. <artifactId>jackson-mapper-asl</artifactId>
  64. <scope>compile</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>commons-httpclient</groupId>
  68. <artifactId>commons-httpclient</artifactId>
  69. <scope>test</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>junit</groupId>
  73. <artifactId>junit</artifactId>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.curator</groupId>
  78. <artifactId>curator-framework</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.curator</groupId>
  82. <artifactId>curator-test</artifactId>
  83. <scope>test</scope>
  84. </dependency>
  85. </dependencies>
  86. <build>
  87. <!--
  88. Include all files in src/main/resources. By default, do not apply property
  89. substitution (filtering=false), but do apply property substitution to
  90. yarn-version-info.properties (filtering=true). This will substitute the
  91. version information correctly, but prevent Maven from altering other files
  92. like yarn-default.xml.
  93. -->
  94. <resources>
  95. <resource>
  96. <directory>${basedir}/src/main/resources</directory>
  97. <excludes>
  98. <exclude>yarn-version-info.properties</exclude>
  99. </excludes>
  100. <filtering>false</filtering>
  101. </resource>
  102. <resource>
  103. <directory>${basedir}/src/main/resources</directory>
  104. <includes>
  105. <include>yarn-version-info.properties</include>
  106. </includes>
  107. <filtering>true</filtering>
  108. </resource>
  109. </resources>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.apache.rat</groupId>
  113. <artifactId>apache-rat-plugin</artifactId>
  114. <configuration>
  115. <excludes>
  116. <exclude>src/main/resources/.keep</exclude>
  117. </excludes>
  118. </configuration>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.hadoop</groupId>
  122. <artifactId>hadoop-maven-plugins</artifactId>
  123. <executions>
  124. <execution>
  125. <id>version-info</id>
  126. <phase>generate-resources</phase>
  127. <goals>
  128. <goal>version-info</goal>
  129. </goals>
  130. <configuration>
  131. <source>
  132. <directory>${basedir}/src/main</directory>
  133. <includes>
  134. <include>java/**/*.java</include>
  135. <!--
  136. <include>proto/**/*.proto</include>
  137. -->
  138. </includes>
  139. </source>
  140. </configuration>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. <plugin>
  145. <artifactId>maven-jar-plugin</artifactId>
  146. <executions>
  147. <execution>
  148. <goals>
  149. <goal>test-jar</goal>
  150. </goals>
  151. <phase>test-compile</phase>
  152. </execution>
  153. </executions>
  154. </plugin>
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-surefire-plugin</artifactId>
  158. <configuration>
  159. <reuseForks>false</reuseForks>
  160. <forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
  161. <argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError</argLine>
  162. <environmentVariables>
  163. <!-- HADOOP_HOME required for tests on Windows to find winutils -->
  164. <HADOOP_HOME>${hadoop.common.build.dir}</HADOOP_HOME>
  165. <!-- configurable option to turn JAAS debugging on during test runs -->
  166. <HADOOP_JAAS_DEBUG>true</HADOOP_JAAS_DEBUG>
  167. <LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${project.build.directory}/native/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib</LD_LIBRARY_PATH>
  168. <MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
  169. </environmentVariables>
  170. <systemPropertyVariables>
  171. <hadoop.log.dir>${project.build.directory}/log</hadoop.log.dir>
  172. <hadoop.tmp.dir>${project.build.directory}/tmp</hadoop.tmp.dir>
  173. <!-- TODO: all references in testcases should be updated to this default -->
  174. <test.build.dir>${test.build.dir}</test.build.dir>
  175. <test.build.data>${test.build.data}</test.build.data>
  176. <test.build.webapps>${test.build.webapps}</test.build.webapps>
  177. <test.cache.data>${test.cache.data}</test.cache.data>
  178. <test.build.classes>${test.build.classes}</test.build.classes>
  179. <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
  180. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  181. <java.security.egd>${java.security.egd}</java.security.egd>
  182. <require.test.libhadoop>${require.test.libhadoop}</require.test.libhadoop>
  183. </systemPropertyVariables>
  184. <includes>
  185. <include>**/Test*.java</include>
  186. </includes>
  187. <excludes>
  188. <exclude>**/${test.exclude}.java</exclude>
  189. <exclude>${test.exclude.pattern}</exclude>
  190. <exclude>**/Test*$*.java</exclude>
  191. </excludes>
  192. </configuration>
  193. </plugin>
  194. </plugins>
  195. </build>
  196. </project>