pom.xml 6.6 KB

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