pom.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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. http://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.2.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-kms</artifactId>
  25. <version>3.2.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-all</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>com.google.guava</groupId>
  52. <artifactId>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-jdk16</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. <forkMode>always</forkMode>
  183. <threadCount>1</threadCount>
  184. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  185. <properties>
  186. <property>
  187. <name>listener</name>
  188. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  189. </property>
  190. </properties>
  191. <excludes>
  192. <exclude>**/${test.exclude}.java</exclude>
  193. <exclude>${test.exclude.pattern}</exclude>
  194. </excludes>
  195. </configuration>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-antrun-plugin</artifactId>
  200. <executions>
  201. <execution>
  202. <id>site</id>
  203. <phase>site</phase>
  204. <goals>
  205. <goal>run</goal>
  206. </goals>
  207. <configuration>
  208. <target>
  209. <xslt in="${basedir}/src/main/resources/kms-default.xml"
  210. out="${project.build.directory}/site/kms-default.html"
  211. style="${basedir}/src/site/configuration.xsl"/>
  212. </target>
  213. </configuration>
  214. </execution>
  215. </executions>
  216. </plugin>
  217. <plugin>
  218. <groupId>org.apache.maven.plugins</groupId>
  219. <artifactId>maven-jar-plugin</artifactId>
  220. <executions>
  221. <execution>
  222. <id>prepare-test-jar</id>
  223. <phase>prepare-package</phase>
  224. <goals>
  225. <goal>test-jar</goal>
  226. </goals>
  227. </execution>
  228. </executions>
  229. </plugin>
  230. <plugin>
  231. <groupId>org.codehaus.mojo</groupId>
  232. <artifactId>findbugs-maven-plugin</artifactId>
  233. <configuration>
  234. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml
  235. </excludeFilterFile>
  236. </configuration>
  237. </plugin>
  238. </plugins>
  239. </build>
  240. <profiles>
  241. <profile>
  242. <id>dist</id>
  243. <activation>
  244. <activeByDefault>false</activeByDefault>
  245. </activation>
  246. <build>
  247. <plugins>
  248. <plugin>
  249. <groupId>org.apache.maven.plugins</groupId>
  250. <artifactId>maven-assembly-plugin</artifactId>
  251. <dependencies>
  252. <dependency>
  253. <groupId>org.apache.hadoop</groupId>
  254. <artifactId>hadoop-assemblies</artifactId>
  255. <version>${project.version}</version>
  256. </dependency>
  257. </dependencies>
  258. <executions>
  259. <execution>
  260. <id>dist</id>
  261. <phase>package</phase>
  262. <goals>
  263. <goal>single</goal>
  264. </goals>
  265. <configuration>
  266. <finalName>${project.artifactId}-${project.version}
  267. </finalName>
  268. <appendAssemblyId>false</appendAssemblyId>
  269. <attach>false</attach>
  270. <descriptorRefs>
  271. <descriptorRef>hadoop-kms-dist</descriptorRef>
  272. </descriptorRefs>
  273. </configuration>
  274. </execution>
  275. </executions>
  276. </plugin>
  277. </plugins>
  278. </build>
  279. </profile>
  280. </profiles>
  281. </project>