pom.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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.0.0-alpha3-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-kms</artifactId>
  25. <version>3.0.0-alpha3-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>commons-httpclient</groupId>
  88. <artifactId>commons-httpclient</artifactId>
  89. </exclusion>
  90. <exclusion>
  91. <groupId>javax.servlet</groupId>
  92. <artifactId>javax.servlet-api</artifactId>
  93. </exclusion>
  94. <exclusion>
  95. <groupId>javax.servlet</groupId>
  96. <artifactId>jsp-api</artifactId>
  97. </exclusion>
  98. <exclusion>
  99. <groupId>javax.servlet.jsp</groupId>
  100. <artifactId>jsp-api</artifactId>
  101. </exclusion>
  102. <exclusion>
  103. <groupId>org.eclipse.jetty</groupId>
  104. <artifactId>jetty-server</artifactId>
  105. </exclusion>
  106. <exclusion>
  107. <groupId>org.eclipse.jetty</groupId>
  108. <artifactId>jetty-util</artifactId>
  109. </exclusion>
  110. <exclusion>
  111. <groupId>org.eclipse.jetty</groupId>
  112. <artifactId>jsp-api-2.1</artifactId>
  113. </exclusion>
  114. <exclusion>
  115. <groupId>org.eclipse.jetty</groupId>
  116. <artifactId>servlet-api-2.5</artifactId>
  117. </exclusion>
  118. <exclusion>
  119. <groupId>net.java.dev.jets3t</groupId>
  120. <artifactId>jets3t</artifactId>
  121. </exclusion>
  122. <exclusion>
  123. <groupId>org.eclipse.jdt</groupId>
  124. <artifactId>core</artifactId>
  125. </exclusion>
  126. <exclusion>
  127. <groupId>commons-el</groupId>
  128. <artifactId>commons-el</artifactId>
  129. </exclusion>
  130. </exclusions>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.apache.hadoop</groupId>
  134. <artifactId>hadoop-common</artifactId>
  135. <scope>test</scope>
  136. <type>test-jar</type>
  137. </dependency>
  138. <dependency>
  139. <groupId>log4j</groupId>
  140. <artifactId>log4j</artifactId>
  141. <scope>compile</scope>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.slf4j</groupId>
  145. <artifactId>slf4j-api</artifactId>
  146. <scope>compile</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.slf4j</groupId>
  150. <artifactId>slf4j-log4j12</artifactId>
  151. <scope>runtime</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.slf4j</groupId>
  155. <artifactId>jul-to-slf4j</artifactId>
  156. <scope>compile</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.eclipse.jetty</groupId>
  160. <artifactId>jetty-util</artifactId>
  161. <scope>compile</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.codahale.metrics</groupId>
  165. <artifactId>metrics-core</artifactId>
  166. <scope>compile</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.apache.curator</groupId>
  170. <artifactId>curator-test</artifactId>
  171. <scope>test</scope>
  172. </dependency>
  173. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  174. <dependency>
  175. <groupId>org.bouncycastle</groupId>
  176. <artifactId>bcprov-jdk16</artifactId>
  177. <scope>test</scope>
  178. </dependency>
  179. <dependency>
  180. <groupId>com.fasterxml.jackson.core</groupId>
  181. <artifactId>jackson-databind</artifactId>
  182. </dependency>
  183. </dependencies>
  184. <build>
  185. <plugins>
  186. <plugin>
  187. <groupId>org.apache.maven.plugins</groupId>
  188. <artifactId>maven-surefire-plugin</artifactId>
  189. <configuration>
  190. <forkMode>always</forkMode>
  191. <threadCount>1</threadCount>
  192. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  193. <properties>
  194. <property>
  195. <name>listener</name>
  196. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  197. </property>
  198. </properties>
  199. <excludes>
  200. <exclude>**/${test.exclude}.java</exclude>
  201. <exclude>${test.exclude.pattern}</exclude>
  202. </excludes>
  203. </configuration>
  204. </plugin>
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-antrun-plugin</artifactId>
  208. <executions>
  209. <execution>
  210. <id>site</id>
  211. <phase>site</phase>
  212. <goals>
  213. <goal>run</goal>
  214. </goals>
  215. <configuration>
  216. <target>
  217. <xslt in="${basedir}/src/main/resources/kms-default.xml"
  218. out="${project.build.directory}/site/kms-default.html"
  219. style="${basedir}/src/site/configuration.xsl"/>
  220. </target>
  221. </configuration>
  222. </execution>
  223. </executions>
  224. </plugin>
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-jar-plugin</artifactId>
  228. <executions>
  229. <execution>
  230. <id>prepare-test-jar</id>
  231. <phase>prepare-package</phase>
  232. <goals>
  233. <goal>test-jar</goal>
  234. </goals>
  235. </execution>
  236. </executions>
  237. </plugin>
  238. <plugin>
  239. <groupId>org.codehaus.mojo</groupId>
  240. <artifactId>findbugs-maven-plugin</artifactId>
  241. <configuration>
  242. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml
  243. </excludeFilterFile>
  244. </configuration>
  245. </plugin>
  246. </plugins>
  247. </build>
  248. <profiles>
  249. <profile>
  250. <id>docs</id>
  251. <activation>
  252. <activeByDefault>false</activeByDefault>
  253. </activation>
  254. <build>
  255. <plugins>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-site-plugin</artifactId>
  259. <executions>
  260. <execution>
  261. <id>docs</id>
  262. <phase>prepare-package</phase>
  263. <goals>
  264. <goal>site</goal>
  265. </goals>
  266. </execution>
  267. </executions>
  268. </plugin>
  269. </plugins>
  270. </build>
  271. </profile>
  272. <profile>
  273. <id>dist</id>
  274. <activation>
  275. <activeByDefault>false</activeByDefault>
  276. </activation>
  277. <build>
  278. <plugins>
  279. <plugin>
  280. <groupId>org.apache.maven.plugins</groupId>
  281. <artifactId>maven-assembly-plugin</artifactId>
  282. <dependencies>
  283. <dependency>
  284. <groupId>org.apache.hadoop</groupId>
  285. <artifactId>hadoop-assemblies</artifactId>
  286. <version>${project.version}</version>
  287. </dependency>
  288. </dependencies>
  289. <executions>
  290. <execution>
  291. <id>dist</id>
  292. <phase>package</phase>
  293. <goals>
  294. <goal>single</goal>
  295. </goals>
  296. <configuration>
  297. <finalName>${project.artifactId}-${project.version}
  298. </finalName>
  299. <appendAssemblyId>false</appendAssemblyId>
  300. <attach>false</attach>
  301. <descriptorRefs>
  302. <descriptorRef>hadoop-kms-dist</descriptorRef>
  303. </descriptorRefs>
  304. </configuration>
  305. </execution>
  306. </executions>
  307. </plugin>
  308. </plugins>
  309. </build>
  310. </profile>
  311. </profiles>
  312. </project>