pom.xml 6.9 KB

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