pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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.1.1-beta</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-auth</artifactId>
  26. <version>2.1.1-beta</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>**/TestAltKerberosAuth*.java</exclude>
  108. <exclude>**/Test*$*.java</exclude>
  109. </excludes>
  110. </configuration>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-source-plugin</artifactId>
  115. <executions>
  116. <execution>
  117. <phase>prepare-package</phase>
  118. <goals>
  119. <goal>jar</goal>
  120. </goals>
  121. </execution>
  122. </executions>
  123. <configuration>
  124. <attach>true</attach>
  125. </configuration>
  126. </plugin>
  127. </plugins>
  128. </build>
  129. <profiles>
  130. <profile>
  131. <id>testKerberos</id>
  132. <activation>
  133. <activeByDefault>false</activeByDefault>
  134. </activation>
  135. <build>
  136. <plugins>
  137. <plugin>
  138. <groupId>org.apache.maven.plugins</groupId>
  139. <artifactId>maven-surefire-plugin</artifactId>
  140. <configuration>
  141. <forkMode>always</forkMode>
  142. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  143. <systemPropertyVariables>
  144. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  145. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  146. </systemPropertyVariables>
  147. <excludes>
  148. <exclude>**/${test.exclude}.java</exclude>
  149. <exclude>${test.exclude.pattern}</exclude>
  150. <exclude>**/Test*$*.java</exclude>
  151. </excludes>
  152. </configuration>
  153. </plugin>
  154. </plugins>
  155. </build>
  156. </profile>
  157. <profile>
  158. <id>docs</id>
  159. <activation>
  160. <activeByDefault>false</activeByDefault>
  161. </activation>
  162. <build>
  163. <plugins>
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-site-plugin</artifactId>
  167. <executions>
  168. <execution>
  169. <phase>package</phase>
  170. <goals>
  171. <goal>site</goal>
  172. </goals>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. <plugin>
  177. <groupId>org.apache.maven.plugins</groupId>
  178. <artifactId>maven-project-info-reports-plugin</artifactId>
  179. <executions>
  180. <execution>
  181. <configuration>
  182. <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
  183. </configuration>
  184. <phase>package</phase>
  185. <goals>
  186. <goal>dependencies</goal>
  187. </goals>
  188. </execution>
  189. </executions>
  190. </plugin>
  191. <plugin>
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-javadoc-plugin</artifactId>
  194. <executions>
  195. <execution>
  196. <phase>package</phase>
  197. <goals>
  198. <goal>javadoc</goal>
  199. </goals>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. </plugins>
  204. </build>
  205. </profile>
  206. </profiles>
  207. </project>