pom.xml 9.0 KB

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