pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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>2.2.1</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-auth</artifactId>
  26. <version>2.2.1</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-util</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.mortbay.jetty</groupId>
  58. <artifactId>jetty</artifactId>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>javax.servlet</groupId>
  63. <artifactId>servlet-api</artifactId>
  64. <scope>provided</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.slf4j</groupId>
  68. <artifactId>slf4j-api</artifactId>
  69. <scope>compile</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>commons-codec</groupId>
  73. <artifactId>commons-codec</artifactId>
  74. <scope>compile</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>log4j</groupId>
  78. <artifactId>log4j</artifactId>
  79. <scope>runtime</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.slf4j</groupId>
  83. <artifactId>slf4j-log4j12</artifactId>
  84. <scope>runtime</scope>
  85. </dependency>
  86. </dependencies>
  87. <build>
  88. <testResources>
  89. <testResource>
  90. <directory>${basedir}/src/test/resources</directory>
  91. <filtering>true</filtering>
  92. <includes>
  93. <include>krb5.conf</include>
  94. </includes>
  95. </testResource>
  96. </testResources>
  97. <plugins>
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-surefire-plugin</artifactId>
  101. <configuration>
  102. <forkMode>always</forkMode>
  103. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  104. <systemPropertyVariables>
  105. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  106. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  107. </systemPropertyVariables>
  108. <excludes>
  109. <exclude>**/${test.exclude}.java</exclude>
  110. <exclude>${test.exclude.pattern}</exclude>
  111. <exclude>**/TestKerberosAuth*.java</exclude>
  112. <exclude>**/TestAltKerberosAuth*.java</exclude>
  113. <exclude>**/Test*$*.java</exclude>
  114. </excludes>
  115. </configuration>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-source-plugin</artifactId>
  120. <executions>
  121. <execution>
  122. <phase>prepare-package</phase>
  123. <goals>
  124. <goal>jar</goal>
  125. </goals>
  126. </execution>
  127. </executions>
  128. <configuration>
  129. <attach>true</attach>
  130. </configuration>
  131. </plugin>
  132. </plugins>
  133. </build>
  134. <profiles>
  135. <profile>
  136. <id>testKerberos</id>
  137. <activation>
  138. <activeByDefault>false</activeByDefault>
  139. </activation>
  140. <build>
  141. <plugins>
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-surefire-plugin</artifactId>
  145. <configuration>
  146. <forkMode>always</forkMode>
  147. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  148. <systemPropertyVariables>
  149. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  150. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  151. </systemPropertyVariables>
  152. <excludes>
  153. <exclude>**/${test.exclude}.java</exclude>
  154. <exclude>${test.exclude.pattern}</exclude>
  155. <exclude>**/Test*$*.java</exclude>
  156. </excludes>
  157. </configuration>
  158. </plugin>
  159. </plugins>
  160. </build>
  161. </profile>
  162. <profile>
  163. <id>docs</id>
  164. <activation>
  165. <activeByDefault>false</activeByDefault>
  166. </activation>
  167. <build>
  168. <plugins>
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-site-plugin</artifactId>
  172. <executions>
  173. <execution>
  174. <phase>package</phase>
  175. <goals>
  176. <goal>site</goal>
  177. </goals>
  178. </execution>
  179. </executions>
  180. </plugin>
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-project-info-reports-plugin</artifactId>
  184. <executions>
  185. <execution>
  186. <configuration>
  187. <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
  188. </configuration>
  189. <phase>package</phase>
  190. <goals>
  191. <goal>dependencies</goal>
  192. </goals>
  193. </execution>
  194. </executions>
  195. </plugin>
  196. <plugin>
  197. <groupId>org.apache.maven.plugins</groupId>
  198. <artifactId>maven-javadoc-plugin</artifactId>
  199. <executions>
  200. <execution>
  201. <phase>package</phase>
  202. <goals>
  203. <goal>javadoc</goal>
  204. </goals>
  205. </execution>
  206. </executions>
  207. </plugin>
  208. </plugins>
  209. </build>
  210. </profile>
  211. </profiles>
  212. </project>