pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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.5.0-SNAPSHOT</version>
  21. <relativePath>../../hadoop-project</relativePath>
  22. </parent>
  23. <modelVersion>4.0.0</modelVersion>
  24. <artifactId>hadoop-registry</artifactId>
  25. <version>3.5.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. <dependency>
  115. <groupId>io.dropwizard.metrics</groupId>
  116. <artifactId>metrics-core</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.xerial.snappy</groupId>
  120. <artifactId>snappy-java</artifactId>
  121. <scope>provided</scope>
  122. </dependency>
  123. </dependencies>
  124. <build>
  125. <!--
  126. Include all files in src/main/resources. By default, do not apply property
  127. substitution (filtering=false), but do apply property substitution to
  128. yarn-version-info.properties (filtering=true). This will substitute the
  129. version information correctly, but prevent Maven from altering other files
  130. like yarn-default.xml.
  131. -->
  132. <resources>
  133. <resource>
  134. <directory>${basedir}/src/main/resources</directory>
  135. <excludes>
  136. <exclude>yarn-version-info.properties</exclude>
  137. </excludes>
  138. <filtering>false</filtering>
  139. </resource>
  140. <resource>
  141. <directory>${basedir}/src/main/resources</directory>
  142. <includes>
  143. <include>yarn-version-info.properties</include>
  144. </includes>
  145. <filtering>true</filtering>
  146. </resource>
  147. </resources>
  148. <plugins>
  149. <plugin>
  150. <groupId>com.github.spotbugs</groupId>
  151. <artifactId>spotbugs-maven-plugin</artifactId>
  152. <configuration>
  153. <xmlOutput>true</xmlOutput>
  154. <excludeFilterFile>${project.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  155. <effort>Max</effort>
  156. </configuration>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.apache.rat</groupId>
  160. <artifactId>apache-rat-plugin</artifactId>
  161. <configuration>
  162. <excludes>
  163. <exclude>src/main/resources/.keep</exclude>
  164. </excludes>
  165. </configuration>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.apache.hadoop</groupId>
  169. <artifactId>hadoop-maven-plugins</artifactId>
  170. <executions>
  171. <execution>
  172. <id>version-info</id>
  173. <phase>generate-resources</phase>
  174. <goals>
  175. <goal>version-info</goal>
  176. </goals>
  177. <configuration>
  178. <source>
  179. <directory>${basedir}/src/main</directory>
  180. <includes>
  181. <include>java/**/*.java</include>
  182. <!--
  183. <include>proto/**/*.proto</include>
  184. -->
  185. </includes>
  186. </source>
  187. </configuration>
  188. </execution>
  189. </executions>
  190. </plugin>
  191. <plugin>
  192. <artifactId>maven-jar-plugin</artifactId>
  193. <executions>
  194. <execution>
  195. <goals>
  196. <goal>test-jar</goal>
  197. </goals>
  198. <phase>test-compile</phase>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. <plugin>
  203. <groupId>org.apache.maven.plugins</groupId>
  204. <artifactId>maven-surefire-plugin</artifactId>
  205. <configuration>
  206. <reuseForks>false</reuseForks>
  207. <forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
  208. <argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError</argLine>
  209. <environmentVariables>
  210. <!-- HADOOP_HOME required for tests on Windows to find winutils -->
  211. <HADOOP_HOME>${hadoop.common.build.dir}</HADOOP_HOME>
  212. <!-- configurable option to turn JAAS debugging on during test runs -->
  213. <HADOOP_JAAS_DEBUG>true</HADOOP_JAAS_DEBUG>
  214. <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>
  215. <MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
  216. </environmentVariables>
  217. <systemPropertyVariables>
  218. <hadoop.log.dir>${project.build.directory}/log</hadoop.log.dir>
  219. <hadoop.tmp.dir>${project.build.directory}/tmp</hadoop.tmp.dir>
  220. <!-- TODO: all references in testcases should be updated to this default -->
  221. <test.build.dir>${test.build.dir}</test.build.dir>
  222. <test.build.data>${test.build.data}</test.build.data>
  223. <test.build.webapps>${test.build.webapps}</test.build.webapps>
  224. <test.cache.data>${test.cache.data}</test.cache.data>
  225. <test.build.classes>${test.build.classes}</test.build.classes>
  226. <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
  227. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  228. <java.security.egd>${java.security.egd}</java.security.egd>
  229. <require.test.libhadoop>${require.test.libhadoop}</require.test.libhadoop>
  230. </systemPropertyVariables>
  231. <includes>
  232. <include>**/Test*.java</include>
  233. </includes>
  234. <excludes>
  235. <exclude>**/${test.exclude}.java</exclude>
  236. <exclude>${test.exclude.pattern}</exclude>
  237. <exclude>**/Test*$*.java</exclude>
  238. </excludes>
  239. </configuration>
  240. </plugin>
  241. </plugins>
  242. </build>
  243. <profiles>
  244. <profile>
  245. <id>dist</id>
  246. <activation>
  247. <activeByDefault>false</activeByDefault>
  248. </activation>
  249. <build>
  250. <plugins>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-assembly-plugin</artifactId>
  254. <dependencies>
  255. <dependency>
  256. <groupId>org.apache.hadoop</groupId>
  257. <artifactId>hadoop-assemblies</artifactId>
  258. <version>${project.version}</version>
  259. </dependency>
  260. </dependencies>
  261. <executions>
  262. <execution>
  263. <id>dist</id>
  264. <phase>package</phase>
  265. <goals>
  266. <goal>single</goal>
  267. </goals>
  268. <configuration>
  269. <finalName>${project.artifactId}-${project.version}
  270. </finalName>
  271. <appendAssemblyId>false</appendAssemblyId>
  272. <attach>false</attach>
  273. <descriptors>
  274. <descriptor>../../hadoop-assemblies/src/main/resources/assemblies/hadoop-registry-dist.xml</descriptor>
  275. </descriptors>
  276. </configuration>
  277. </execution>
  278. </executions>
  279. </plugin>
  280. </plugins>
  281. </build>
  282. </profile>
  283. </profiles>
  284. </project>