pom.xml 6.7 KB

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