pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  14. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  15. <modelVersion>4.0.0</modelVersion>
  16. <parent>
  17. <groupId>org.apache.hadoop</groupId>
  18. <artifactId>hadoop-project</artifactId>
  19. <version>3.5.0-SNAPSHOT</version>
  20. <relativePath>../../hadoop-project</relativePath>
  21. </parent>
  22. <artifactId>hadoop-client-integration-tests</artifactId>
  23. <version>3.5.0-SNAPSHOT</version>
  24. <description>Checks that we can use the generated artifacts</description>
  25. <name>Apache Hadoop Client Packaging Integration Tests</name>
  26. <properties>
  27. <failsafe.timeout>400</failsafe.timeout>
  28. </properties>
  29. <dependencies>
  30. <dependency>
  31. <groupId>log4j</groupId>
  32. <artifactId>log4j</artifactId>
  33. <scope>test</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.slf4j</groupId>
  37. <artifactId>slf4j-api</artifactId>
  38. <scope>test</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.slf4j</groupId>
  42. <artifactId>slf4j-log4j12</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>junit</groupId>
  47. <artifactId>junit</artifactId>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.lz4</groupId>
  52. <artifactId>lz4-java</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. </dependencies>
  56. <profiles>
  57. <profile>
  58. <id>shade</id>
  59. <activation>
  60. <property><name>!skipShade</name></property>
  61. </activation>
  62. <dependencies>
  63. <dependency>
  64. <groupId>org.apache.hadoop</groupId>
  65. <artifactId>hadoop-client-api</artifactId>
  66. <scope>test</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.hadoop</groupId>
  70. <artifactId>hadoop-client-runtime</artifactId>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.hadoop</groupId>
  75. <artifactId>hadoop-client-minicluster</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.bouncycastle</groupId>
  80. <artifactId>bcprov-jdk15on</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.bouncycastle</groupId>
  85. <artifactId>bcpkix-jdk15on</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>javax.xml.bind</groupId>
  90. <artifactId>jaxb-api</artifactId>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>javax.activation</groupId>
  95. <artifactId>activation</artifactId>
  96. <version>1.1.1</version>
  97. <scope>test</scope>
  98. </dependency>
  99. </dependencies>
  100. <build>
  101. <plugins>
  102. <!-- Because our tests rely on our shaded artifacts, we can't compile
  103. them until after the package phase has run.
  104. -->
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-compiler-plugin</artifactId>
  108. <executions>
  109. <!--
  110. First, let's make sure the normal test-compile doesn't try to
  111. compile our integration tests.
  112. -->
  113. <execution>
  114. <id>default-testCompile</id>
  115. <phase>test-compile</phase>
  116. <configuration>
  117. <testExcludes>
  118. <testExclude>**/IT*</testExclude>
  119. <testExclude>**/*IT</testExclude>
  120. </testExcludes>
  121. </configuration>
  122. </execution>
  123. <!--
  124. Finally, let's make a 'just for integration tests'-compile that
  125. fires off prior to our integration tests but after the package
  126. phase has created our shaded artifacts.
  127. -->
  128. <execution>
  129. <id>compile-integration-tests</id>
  130. <phase>pre-integration-test</phase>
  131. <goals>
  132. <goal>testCompile</goal>
  133. </goals>
  134. <configuration>
  135. <testIncludes>
  136. <testInclude>**/IT*</testInclude>
  137. <testInclude>**/*IT</testInclude>
  138. </testIncludes>
  139. </configuration>
  140. </execution>
  141. </executions>
  142. </plugin>
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-failsafe-plugin</artifactId>
  146. <executions>
  147. <execution>
  148. <goals>
  149. <goal>integration-test</goal>
  150. <goal>verify</goal>
  151. </goals>
  152. <configuration>
  153. <trimStackTrace>false</trimStackTrace>
  154. </configuration>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. </plugins>
  159. </build>
  160. </profile>
  161. <profile>
  162. <id>noshade</id>
  163. <activation>
  164. <property><name>skipShade</name></property>
  165. </activation>
  166. <dependencies>
  167. <dependency>
  168. <groupId>org.apache.hadoop</groupId>
  169. <artifactId>hadoop-common</artifactId>
  170. <scope>test</scope>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.apache.hadoop</groupId>
  174. <artifactId>hadoop-hdfs-client</artifactId>
  175. <scope>test</scope>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.apache.hadoop</groupId>
  179. <artifactId>hadoop-hdfs</artifactId>
  180. <scope>test</scope>
  181. <type>test-jar</type>
  182. <exclusions>
  183. <exclusion>
  184. <groupId>org.ow2.asm</groupId>
  185. <artifactId>asm-commons</artifactId>
  186. </exclusion>
  187. </exclusions>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.apache.hadoop</groupId>
  191. <artifactId>hadoop-yarn-server-tests</artifactId>
  192. <scope>test</scope>
  193. <type>test-jar</type>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.apache.hadoop</groupId>
  197. <artifactId>hadoop-common</artifactId>
  198. <scope>test</scope>
  199. <type>test-jar</type>
  200. </dependency>
  201. </dependencies>
  202. </profile>
  203. </profiles>
  204. </project>