pom.xml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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.
  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. <modelVersion>4.0.0</modelVersion>
  18. <parent>
  19. <groupId>org.apache.hadoop</groupId>
  20. <artifactId>hadoop-project</artifactId>
  21. <version>3.5.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-kms</artifactId>
  25. <version>3.5.0-SNAPSHOT</version>
  26. <packaging>jar</packaging>
  27. <name>Apache Hadoop KMS</name>
  28. <description>Apache Hadoop KMS</description>
  29. <dependencies>
  30. <dependency>
  31. <groupId>org.apache.hadoop</groupId>
  32. <artifactId>hadoop-minikdc</artifactId>
  33. <scope>test</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>junit</groupId>
  37. <artifactId>junit</artifactId>
  38. <scope>test</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.mockito</groupId>
  42. <artifactId>mockito-inline</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.hadoop</groupId>
  47. <artifactId>hadoop-auth</artifactId>
  48. <scope>compile</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.hadoop.thirdparty</groupId>
  52. <artifactId>hadoop-shaded-guava</artifactId>
  53. <scope>compile</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.glassfish.jersey.core</groupId>
  57. <artifactId>jersey-common</artifactId>
  58. <scope>compile</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.glassfish.jersey.core</groupId>
  62. <artifactId>jersey-server</artifactId>
  63. <scope>compile</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.glassfish.jersey.inject</groupId>
  67. <artifactId>jersey-hk2</artifactId>
  68. <scope>compile</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>jakarta.servlet</groupId>
  72. <artifactId>jakarta.servlet-api</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.eclipse.jetty</groupId>
  76. <artifactId>jetty-server</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.eclipse.jetty</groupId>
  80. <artifactId>jetty-webapp</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.hadoop</groupId>
  84. <artifactId>hadoop-common</artifactId>
  85. <scope>compile</scope>
  86. <exclusions>
  87. <exclusion>
  88. <groupId>javax.xml.stream</groupId>
  89. <artifactId>stax-api</artifactId>
  90. </exclusion>
  91. <exclusion>
  92. <groupId>javax.servlet</groupId>
  93. <artifactId>javax.servlet-api</artifactId>
  94. </exclusion>
  95. <exclusion>
  96. <groupId>javax.servlet</groupId>
  97. <artifactId>jsp-api</artifactId>
  98. </exclusion>
  99. <exclusion>
  100. <groupId>javax.servlet.jsp</groupId>
  101. <artifactId>jsp-api</artifactId>
  102. </exclusion>
  103. <exclusion>
  104. <groupId>org.eclipse.jetty</groupId>
  105. <artifactId>jetty-server</artifactId>
  106. </exclusion>
  107. <exclusion>
  108. <groupId>org.eclipse.jetty</groupId>
  109. <artifactId>jetty-util</artifactId>
  110. </exclusion>
  111. <exclusion>
  112. <groupId>org.eclipse.jetty</groupId>
  113. <artifactId>jsp-api-2.1</artifactId>
  114. </exclusion>
  115. <exclusion>
  116. <groupId>org.eclipse.jetty</groupId>
  117. <artifactId>servlet-api-2.5</artifactId>
  118. </exclusion>
  119. <exclusion>
  120. <groupId>org.eclipse.jdt</groupId>
  121. <artifactId>core</artifactId>
  122. </exclusion>
  123. <exclusion>
  124. <groupId>commons-el</groupId>
  125. <artifactId>commons-el</artifactId>
  126. </exclusion>
  127. </exclusions>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.hadoop</groupId>
  131. <artifactId>hadoop-common</artifactId>
  132. <scope>test</scope>
  133. <type>test-jar</type>
  134. </dependency>
  135. <dependency>
  136. <groupId>ch.qos.reload4j</groupId>
  137. <artifactId>reload4j</artifactId>
  138. <scope>compile</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.slf4j</groupId>
  142. <artifactId>slf4j-api</artifactId>
  143. <scope>compile</scope>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.slf4j</groupId>
  147. <artifactId>slf4j-reload4j</artifactId>
  148. <scope>runtime</scope>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.slf4j</groupId>
  152. <artifactId>jul-to-slf4j</artifactId>
  153. <scope>compile</scope>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.eclipse.jetty</groupId>
  157. <artifactId>jetty-util</artifactId>
  158. <scope>compile</scope>
  159. </dependency>
  160. <dependency>
  161. <groupId>io.dropwizard.metrics</groupId>
  162. <artifactId>metrics-core</artifactId>
  163. <scope>compile</scope>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.apache.curator</groupId>
  167. <artifactId>curator-test</artifactId>
  168. <scope>test</scope>
  169. </dependency>
  170. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  171. <dependency>
  172. <groupId>org.bouncycastle</groupId>
  173. <artifactId>bcprov-jdk18on</artifactId>
  174. <scope>test</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.fasterxml.jackson.core</groupId>
  178. <artifactId>jackson-databind</artifactId>
  179. </dependency>
  180. </dependencies>
  181. <build>
  182. <plugins>
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-surefire-plugin</artifactId>
  186. <configuration>
  187. <forkCount>1</forkCount>
  188. <reuseForks>false</reuseForks>
  189. <threadCount>1</threadCount>
  190. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  191. <properties>
  192. <property>
  193. <name>listener</name>
  194. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  195. </property>
  196. </properties>
  197. <excludes>
  198. <exclude>**/${test.exclude}.java</exclude>
  199. <exclude>${test.exclude.pattern}</exclude>
  200. </excludes>
  201. </configuration>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-antrun-plugin</artifactId>
  206. <executions>
  207. <execution>
  208. <id>site</id>
  209. <phase>site</phase>
  210. <goals>
  211. <goal>run</goal>
  212. </goals>
  213. <configuration>
  214. <target>
  215. <xslt in="${basedir}/src/main/resources/kms-default.xml"
  216. out="${project.build.directory}/site/kms-default.html"
  217. style="${basedir}/src/site/configuration.xsl"/>
  218. </target>
  219. </configuration>
  220. </execution>
  221. </executions>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.apache.maven.plugins</groupId>
  225. <artifactId>maven-jar-plugin</artifactId>
  226. <executions>
  227. <execution>
  228. <id>prepare-test-jar</id>
  229. <phase>prepare-package</phase>
  230. <goals>
  231. <goal>test-jar</goal>
  232. </goals>
  233. </execution>
  234. </executions>
  235. </plugin>
  236. <plugin>
  237. <groupId>com.github.spotbugs</groupId>
  238. <artifactId>spotbugs-maven-plugin</artifactId>
  239. <configuration>
  240. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml
  241. </excludeFilterFile>
  242. </configuration>
  243. </plugin>
  244. </plugins>
  245. </build>
  246. <profiles>
  247. <profile>
  248. <id>dist</id>
  249. <activation>
  250. <activeByDefault>false</activeByDefault>
  251. </activation>
  252. <build>
  253. <plugins>
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-assembly-plugin</artifactId>
  257. <dependencies>
  258. <dependency>
  259. <groupId>org.apache.hadoop</groupId>
  260. <artifactId>hadoop-assemblies</artifactId>
  261. <version>${project.version}</version>
  262. </dependency>
  263. </dependencies>
  264. <executions>
  265. <execution>
  266. <id>dist</id>
  267. <phase>package</phase>
  268. <goals>
  269. <goal>single</goal>
  270. </goals>
  271. <configuration>
  272. <finalName>${project.artifactId}-${project.version}
  273. </finalName>
  274. <appendAssemblyId>false</appendAssemblyId>
  275. <attach>false</attach>
  276. <descriptorRefs>
  277. <descriptorRef>hadoop-kms-dist</descriptorRef>
  278. </descriptorRefs>
  279. </configuration>
  280. </execution>
  281. </executions>
  282. </plugin>
  283. </plugins>
  284. </build>
  285. </profile>
  286. </profiles>
  287. </project>