pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. 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. 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-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-auth</artifactId>
  26. <version>3.0.0-SNAPSHOT</version>
  27. <packaging>jar</packaging>
  28. <name>Apache Hadoop Auth</name>
  29. <description>Apache Hadoop Auth - Java HTTP SPNEGO</description>
  30. <properties>
  31. <maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
  32. <kerberos.realm>LOCALHOST</kerberos.realm>
  33. </properties>
  34. <dependencies>
  35. <dependency>
  36. <!-- Used, even though 'mvn dependency:analyze' doesn't find it -->
  37. <groupId>org.apache.hadoop</groupId>
  38. <artifactId>hadoop-annotations</artifactId>
  39. <scope>provided</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>junit</groupId>
  43. <artifactId>junit</artifactId>
  44. <scope>test</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.mockito</groupId>
  48. <artifactId>mockito-all</artifactId>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.mortbay.jetty</groupId>
  53. <artifactId>jetty</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>javax.servlet</groupId>
  58. <artifactId>servlet-api</artifactId>
  59. <scope>provided</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.slf4j</groupId>
  63. <artifactId>slf4j-api</artifactId>
  64. <scope>compile</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>commons-codec</groupId>
  68. <artifactId>commons-codec</artifactId>
  69. <scope>compile</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>log4j</groupId>
  73. <artifactId>log4j</artifactId>
  74. <scope>runtime</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.slf4j</groupId>
  78. <artifactId>slf4j-log4j12</artifactId>
  79. <scope>runtime</scope>
  80. </dependency>
  81. </dependencies>
  82. <build>
  83. <testResources>
  84. <testResource>
  85. <directory>${basedir}/src/test/resources</directory>
  86. <filtering>true</filtering>
  87. <includes>
  88. <include>krb5.conf</include>
  89. </includes>
  90. </testResource>
  91. </testResources>
  92. <plugins>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-surefire-plugin</artifactId>
  96. <configuration>
  97. <forkMode>always</forkMode>
  98. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  99. <systemPropertyVariables>
  100. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  101. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  102. </systemPropertyVariables>
  103. <excludes>
  104. <exclude>**/${test.exclude}.java</exclude>
  105. <exclude>${test.exclude.pattern}</exclude>
  106. <exclude>**/TestKerberosAuth*.java</exclude>
  107. <exclude>**/Test*$*.java</exclude>
  108. </excludes>
  109. </configuration>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-source-plugin</artifactId>
  114. <executions>
  115. <execution>
  116. <phase>prepare-package</phase>
  117. <goals>
  118. <goal>jar</goal>
  119. </goals>
  120. </execution>
  121. </executions>
  122. <configuration>
  123. <attach>true</attach>
  124. </configuration>
  125. </plugin>
  126. </plugins>
  127. </build>
  128. <profiles>
  129. <profile>
  130. <id>testKerberos</id>
  131. <activation>
  132. <activeByDefault>false</activeByDefault>
  133. </activation>
  134. <build>
  135. <plugins>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-surefire-plugin</artifactId>
  139. <configuration>
  140. <forkMode>always</forkMode>
  141. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  142. <systemPropertyVariables>
  143. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  144. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  145. </systemPropertyVariables>
  146. <excludes>
  147. <exclude>**/${test.exclude}.java</exclude>
  148. <exclude>${test.exclude.pattern}</exclude>
  149. <exclude>**/Test*$*.java</exclude>
  150. </excludes>
  151. </configuration>
  152. </plugin>
  153. </plugins>
  154. </build>
  155. </profile>
  156. <profile>
  157. <id>docs</id>
  158. <activation>
  159. <activeByDefault>false</activeByDefault>
  160. </activation>
  161. <build>
  162. <plugins>
  163. <plugin>
  164. <groupId>org.apache.maven.plugins</groupId>
  165. <artifactId>maven-site-plugin</artifactId>
  166. <executions>
  167. <execution>
  168. <phase>package</phase>
  169. <goals>
  170. <goal>site</goal>
  171. </goals>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-project-info-reports-plugin</artifactId>
  178. <executions>
  179. <execution>
  180. <configuration>
  181. <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
  182. </configuration>
  183. <phase>package</phase>
  184. <goals>
  185. <goal>dependencies</goal>
  186. </goals>
  187. </execution>
  188. </executions>
  189. </plugin>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-javadoc-plugin</artifactId>
  193. <executions>
  194. <execution>
  195. <phase>package</phase>
  196. <goals>
  197. <goal>javadoc</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>
  203. </build>
  204. </profile>
  205. </profiles>
  206. </project>