pom.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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. https://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <parent>
  18. <artifactId>hadoop-project</artifactId>
  19. <groupId>org.apache.hadoop</groupId>
  20. <version>3.4.0-SNAPSHOT</version>
  21. <relativePath>../../hadoop-project</relativePath>
  22. </parent>
  23. <modelVersion>4.0.0</modelVersion>
  24. <artifactId>hadoop-registry</artifactId>
  25. <version>3.4.0-SNAPSHOT</version>
  26. <name>Apache Hadoop Registry</name>
  27. <dependencies>
  28. <dependency>
  29. <groupId>org.slf4j</groupId>
  30. <artifactId>slf4j-api</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.apache.hadoop</groupId>
  34. <artifactId>hadoop-auth</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.apache.hadoop</groupId>
  38. <artifactId>hadoop-annotations</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.hadoop</groupId>
  42. <artifactId>hadoop-common</artifactId>
  43. </dependency>
  44. <!-- needed for TimedOutTestsListener -->
  45. <dependency>
  46. <groupId>org.apache.hadoop</groupId>
  47. <artifactId>hadoop-common</artifactId>
  48. <type>test-jar</type>
  49. <scope>test</scope>
  50. </dependency>
  51. <!-- Mini KDC is used for testing -->
  52. <dependency>
  53. <groupId>org.apache.hadoop</groupId>
  54. <artifactId>hadoop-minikdc</artifactId>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>junit</groupId>
  59. <artifactId>junit</artifactId>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.zookeeper</groupId>
  64. <artifactId>zookeeper</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.curator</groupId>
  68. <artifactId>curator-client</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.curator</groupId>
  72. <artifactId>curator-framework</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.curator</groupId>
  76. <artifactId>curator-recipes</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>commons-cli</groupId>
  80. <artifactId>commons-cli</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>commons-daemon</groupId>
  84. <artifactId>commons-daemon</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>commons-io</groupId>
  88. <artifactId>commons-io</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>commons-net</groupId>
  92. <artifactId>commons-net</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.fasterxml.jackson.core</groupId>
  96. <artifactId>jackson-annotations</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.fasterxml.jackson.core</groupId>
  100. <artifactId>jackson-core</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.fasterxml.jackson.core</groupId>
  104. <artifactId>jackson-databind</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.hadoop.thirdparty</groupId>
  108. <artifactId>hadoop-shaded-guava</artifactId>
  109. </dependency>
  110. <dependency>
  111. <groupId>dnsjava</groupId>
  112. <artifactId>dnsjava</artifactId>
  113. </dependency>
  114. </dependencies>
  115. <build>
  116. <!--
  117. Include all files in src/main/resources. By default, do not apply property
  118. substitution (filtering=false), but do apply property substitution to
  119. yarn-version-info.properties (filtering=true). This will substitute the
  120. version information correctly, but prevent Maven from altering other files
  121. like yarn-default.xml.
  122. -->
  123. <resources>
  124. <resource>
  125. <directory>${basedir}/src/main/resources</directory>
  126. <excludes>
  127. <exclude>yarn-version-info.properties</exclude>
  128. </excludes>
  129. <filtering>false</filtering>
  130. </resource>
  131. <resource>
  132. <directory>${basedir}/src/main/resources</directory>
  133. <includes>
  134. <include>yarn-version-info.properties</include>
  135. </includes>
  136. <filtering>true</filtering>
  137. </resource>
  138. </resources>
  139. <plugins>
  140. <plugin>
  141. <groupId>org.codehaus.mojo</groupId>
  142. <artifactId>findbugs-maven-plugin</artifactId>
  143. <configuration>
  144. <findbugsXmlOutput>true</findbugsXmlOutput>
  145. <xmlOutput>true</xmlOutput>
  146. <excludeFilterFile>${project.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  147. <effort>Max</effort>
  148. </configuration>
  149. </plugin>
  150. <plugin>
  151. <groupId>org.apache.rat</groupId>
  152. <artifactId>apache-rat-plugin</artifactId>
  153. <configuration>
  154. <excludes>
  155. <exclude>src/main/resources/.keep</exclude>
  156. </excludes>
  157. </configuration>
  158. </plugin>
  159. <plugin>
  160. <groupId>org.apache.hadoop</groupId>
  161. <artifactId>hadoop-maven-plugins</artifactId>
  162. <executions>
  163. <execution>
  164. <id>version-info</id>
  165. <phase>generate-resources</phase>
  166. <goals>
  167. <goal>version-info</goal>
  168. </goals>
  169. <configuration>
  170. <source>
  171. <directory>${basedir}/src/main</directory>
  172. <includes>
  173. <include>java/**/*.java</include>
  174. <!--
  175. <include>proto/**/*.proto</include>
  176. -->
  177. </includes>
  178. </source>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. <plugin>
  184. <artifactId>maven-jar-plugin</artifactId>
  185. <executions>
  186. <execution>
  187. <goals>
  188. <goal>test-jar</goal>
  189. </goals>
  190. <phase>test-compile</phase>
  191. </execution>
  192. </executions>
  193. </plugin>
  194. <plugin>
  195. <groupId>org.apache.maven.plugins</groupId>
  196. <artifactId>maven-surefire-plugin</artifactId>
  197. <configuration>
  198. <testFailureIgnore>${ignoreTestFailure}</testFailureIgnore>
  199. <reuseForks>false</reuseForks>
  200. <forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
  201. <argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError</argLine>
  202. <environmentVariables>
  203. <!-- HADOOP_HOME required for tests on Windows to find winutils -->
  204. <HADOOP_HOME>${hadoop.common.build.dir}</HADOOP_HOME>
  205. <!-- configurable option to turn JAAS debugging on during test runs -->
  206. <HADOOP_JAAS_DEBUG>true</HADOOP_JAAS_DEBUG>
  207. <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>
  208. <MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
  209. </environmentVariables>
  210. <systemPropertyVariables>
  211. <hadoop.log.dir>${project.build.directory}/log</hadoop.log.dir>
  212. <hadoop.tmp.dir>${project.build.directory}/tmp</hadoop.tmp.dir>
  213. <!-- TODO: all references in testcases should be updated to this default -->
  214. <test.build.dir>${test.build.dir}</test.build.dir>
  215. <test.build.data>${test.build.data}</test.build.data>
  216. <test.build.webapps>${test.build.webapps}</test.build.webapps>
  217. <test.cache.data>${test.cache.data}</test.cache.data>
  218. <test.build.classes>${test.build.classes}</test.build.classes>
  219. <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
  220. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  221. <java.security.egd>${java.security.egd}</java.security.egd>
  222. <require.test.libhadoop>${require.test.libhadoop}</require.test.libhadoop>
  223. </systemPropertyVariables>
  224. <includes>
  225. <include>**/Test*.java</include>
  226. </includes>
  227. <excludes>
  228. <exclude>**/${test.exclude}.java</exclude>
  229. <exclude>${test.exclude.pattern}</exclude>
  230. <exclude>**/Test*$*.java</exclude>
  231. </excludes>
  232. </configuration>
  233. </plugin>
  234. </plugins>
  235. </build>
  236. <profiles>
  237. <profile>
  238. <id>dist</id>
  239. <activation>
  240. <activeByDefault>false</activeByDefault>
  241. </activation>
  242. <build>
  243. <plugins>
  244. <plugin>
  245. <groupId>org.apache.maven.plugins</groupId>
  246. <artifactId>maven-assembly-plugin</artifactId>
  247. <dependencies>
  248. <dependency>
  249. <groupId>org.apache.hadoop</groupId>
  250. <artifactId>hadoop-assemblies</artifactId>
  251. <version>${project.version}</version>
  252. </dependency>
  253. </dependencies>
  254. <executions>
  255. <execution>
  256. <id>dist</id>
  257. <phase>package</phase>
  258. <goals>
  259. <goal>single</goal>
  260. </goals>
  261. <configuration>
  262. <finalName>${project.artifactId}-${project.version}
  263. </finalName>
  264. <appendAssemblyId>false</appendAssemblyId>
  265. <attach>false</attach>
  266. <descriptors>
  267. <descriptor>../../hadoop-assemblies/src/main/resources/assemblies/hadoop-registry-dist.xml</descriptor>
  268. </descriptors>
  269. </configuration>
  270. </execution>
  271. </executions>
  272. </plugin>
  273. </plugins>
  274. </build>
  275. </profile>
  276. </profiles>
  277. </project>