pom.xml 6.5 KB

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