2 <project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements. See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership. The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License. You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
22 <modelVersion>4.0.0</modelVersion>
24 <artifactId>hbase-build-configuration</artifactId>
25 <groupId>org.apache.hbase</groupId>
26 <version>2.4.6-SNAPSHOT</version>
27 <relativePath>../hbase-build-configuration</relativePath>
30 <artifactId>hbase-it</artifactId>
31 <name>Apache HBase - Integration Tests</name>
32 <description>Integration and System tests for HBase</description>
35 <!-- Test inclusion patterns used by failsafe configuration -->
36 <unittest.include>**/Test*.java</unittest.include>
37 <integrationtest.include>**/IntegrationTest*.java</integrationtest.include>
38 <!-- To Run Tests with a particular Xmx Value use -Dfailsafe.Xmx=XXXg -->
39 <failsafe.Xmx>4g</failsafe.Xmx>
40 <!-- To run a single integration test, use -Dit.test=IntegrationTestXXX -->
46 <!-- We depend on hbase-server test resources -->
47 <directory>../hbase-server/src/test/resources</directory>
49 <exclude>META-INF/NOTICE</exclude>
50 <exclude>META-INF/LICENSE</exclude>
54 <directory>src/test/resources</directory>
59 <!-- Make a jar and put the sources in the jar -->
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-source-plugin</artifactId>
65 <!--Make it so assembly:single does nothing in here-->
66 <artifactId>maven-assembly-plugin</artifactId>
68 <skipAssembly>true</skipAssembly>
72 <groupId>org.apache.maven.plugins</groupId>
73 <artifactId>maven-failsafe-plugin</artifactId>
74 <version>${surefire.version}</version>
77 <groupId>org.apache.maven.surefire</groupId>
78 <artifactId>surefire-junit4</artifactId>
79 <version>${surefire.version}</version>
84 <include>${integrationtest.include}</include>
87 <exclude>${unittest.include}</exclude>
88 <exclude>**/*$*</exclude>
90 <redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
91 <environmentVariables>
92 <LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${project.build.directory}/nativelib</LD_LIBRARY_PATH>
93 <DYLD_LIBRARY_PATH>${env.DYLD_LIBRARY_PATH}:${project.build.directory}/nativelib</DYLD_LIBRARY_PATH>
94 <MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
95 </environmentVariables>
96 <failIfNoTests>false</failIfNoTests>
97 <testFailureIgnore>false</testFailureIgnore>
101 <id>integration-test</id>
102 <phase>integration-test</phase>
104 <goal>integration-test</goal>
109 <phase>verify</phase>
120 <!-- Run integration tests with mvn verify -->
122 <groupId>org.apache.maven.plugins</groupId>
123 <artifactId>maven-failsafe-plugin</artifactId>
126 <forkMode>always</forkMode>
127 <!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
128 I believe it is a failsafe bug, we may consider using surefire -->
129 <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
130 <argLine>-enableassertions -Xmx${failsafe.Xmx}
131 -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
132 -verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine>
136 <groupId>net.revelc.code</groupId>
137 <artifactId>warbucks-maven-plugin</artifactId>
143 <!--This one is upfront to get in front of
144 any dependency that pulls in jersey-core.
145 Jersey-core has implemented version 1
146 Interfaces of what is in this dependency
147 which does version 2.-->
149 <groupId>javax.ws.rs</groupId>
150 <artifactId>javax.ws.rs-api</artifactId>
153 <!-- Intra-project dependencies -->
155 <groupId>org.apache.hbase</groupId>
156 <artifactId>hbase-annotations</artifactId>
157 <type>test-jar</type>
161 <groupId>org.apache.hbase</groupId>
162 <artifactId>hbase-logging</artifactId>
163 <type>test-jar</type>
167 <groupId>org.apache.hbase</groupId>
168 <artifactId>hbase-common</artifactId>
172 <groupId>org.apache.hbase</groupId>
173 <artifactId>hbase-protocol</artifactId>
176 <groupId>org.apache.hbase</groupId>
177 <artifactId>hbase-protocol-shaded</artifactId>
180 <groupId>org.apache.hbase</groupId>
181 <artifactId>hbase-client</artifactId>
184 <groupId>org.apache.hbase</groupId>
185 <artifactId>hbase-mapreduce</artifactId>
188 <groupId>org.apache.hbase</groupId>
189 <artifactId>hbase-mapreduce</artifactId>
190 <type>test-jar</type>
194 <groupId>org.apache.hbase</groupId>
195 <artifactId>hbase-rsgroup</artifactId>
198 <groupId>org.apache.hbase</groupId>
199 <artifactId>hbase-rsgroup</artifactId>
200 <type>test-jar</type>
204 <groupId>org.apache.hbase</groupId>
205 <artifactId>hbase-server</artifactId>
208 <groupId>org.apache.hbase</groupId>
209 <artifactId>${compat.module}</artifactId>
210 <version>${project.version}</version>
213 <groupId>org.apache.hbase</groupId>
214 <artifactId>hbase-testing-util</artifactId>
216 <!--This dependency pulls in hadoop-minicluster
217 which pulls in the below. It messes up
218 this build at assembly time. See HBASE-22029-->
220 <groupId>com.sun.jersey</groupId>
221 <artifactId>jersey-core</artifactId>
226 <groupId>org.apache.hbase</groupId>
227 <artifactId>hbase-endpoint</artifactId>
230 <groupId>org.apache.hbase.thirdparty</groupId>
231 <artifactId>hbase-shaded-miscellaneous</artifactId>
234 <groupId>io.dropwizard.metrics</groupId>
235 <artifactId>metrics-core</artifactId>
238 <groupId>org.slf4j</groupId>
239 <artifactId>slf4j-api</artifactId>
242 <groupId>org.apache.commons</groupId>
243 <artifactId>commons-math3</artifactId>
246 <groupId>org.apache.commons</groupId>
247 <artifactId>commons-lang3</artifactId>
250 <groupId>org.apache.htrace</groupId>
251 <artifactId>htrace-core4</artifactId>
253 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
255 <groupId>io.netty</groupId>
256 <artifactId>netty</artifactId>
257 <version>${netty.hadoop.version}</version>
261 <groupId>org.slf4j</groupId>
262 <artifactId>jcl-over-slf4j</artifactId>
266 <groupId>org.slf4j</groupId>
267 <artifactId>jul-to-slf4j</artifactId>
271 <groupId>org.slf4j</groupId>
272 <artifactId>slf4j-log4j12</artifactId>
276 <groupId>log4j</groupId>
277 <artifactId>log4j</artifactId>
281 <artifactId>javax.servlet-api</artifactId>
282 <groupId>javax.servlet</groupId>
286 <groupId>junit</groupId>
287 <artifactId>junit</artifactId>
291 <groupId>org.hamcrest</groupId>
292 <artifactId>hamcrest-core</artifactId>
296 <groupId>org.hamcrest</groupId>
297 <artifactId>hamcrest-library</artifactId>
301 <groupId>org.mockito</groupId>
302 <artifactId>mockito-core</artifactId>
308 <!-- Skip the tests in this module -->
310 <id>skipIntegrationTests</id>
313 <name>skipIntegrationTests</name>
317 <skipTests>true</skipTests>
321 <id>build-with-jdk11</id>
327 <groupId>com.sun.xml.ws</groupId>
328 <artifactId>jaxws-ri</artifactId>
333 <!-- profile for building against Hadoop 2.x. This is the default -->
338 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
339 <!--h2--><name>!hadoop.profile</name>
344 <groupId>org.apache.hadoop</groupId>
345 <artifactId>hadoop-mapreduce-client-core</artifactId>
348 <groupId>com.google.guava</groupId>
349 <artifactId>guava</artifactId>
354 <groupId>org.apache.hadoop</groupId>
355 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
356 <type>test-jar</type>
360 <groupId>com.google.guava</groupId>
361 <artifactId>guava</artifactId>
366 <groupId>org.apache.hadoop</groupId>
367 <artifactId>hadoop-common</artifactId>
370 <groupId>org.apache.hadoop</groupId>
371 <artifactId>hadoop-minikdc</artifactId>
377 <artifactId>maven-dependency-plugin</artifactId>
380 <id>create-mrapp-generated-classpath</id>
381 <phase>generate-test-resources</phase>
383 <goal>build-classpath</goal>
386 <!-- needed to run the unit test for DS to generate
387 the required classpath that is required in the env
388 of the launch container in the mini mr/yarn cluster
390 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
400 profile for building against Hadoop 3.0.x. Activate using:
401 mvn -Dhadoop.profile=3.0
407 <name>hadoop.profile</name>
412 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
416 <groupId>org.apache.hadoop</groupId>
417 <artifactId>hadoop-common</artifactId>
420 <groupId>org.apache.hadoop</groupId>
421 <artifactId>hadoop-minicluster</artifactId>
424 <groupId>javax.xml.bind</groupId>
425 <artifactId>jaxb-api</artifactId>
428 <groupId>javax.ws.rs</groupId>
429 <artifactId>jsr311-api</artifactId>
434 <groupId>org.apache.hadoop</groupId>
435 <artifactId>hadoop-minikdc</artifactId>
441 <artifactId>maven-dependency-plugin</artifactId>
444 <id>create-mrapp-generated-classpath</id>
445 <phase>generate-test-resources</phase>
447 <goal>build-classpath</goal>
450 <!-- needed to run the unit test for DS to generate
451 the required classpath that is required in the env
452 of the launch container in the mini mr/yarn cluster
454 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
463 <id>eclipse-specific</id>
466 <name>m2e.version</name>
472 <!--This plugin's configuration is used to store Eclipse m2e settings
473 only. It has no influence on the Maven build itself.-->
475 <groupId>org.eclipse.m2e</groupId>
476 <artifactId>lifecycle-mapping</artifactId>
478 <lifecycleMappingMetadata>
481 <pluginExecutionFilter>
482 <groupId>org.apache.maven.plugins</groupId>
483 <artifactId>maven-dependency-plugin</artifactId>
484 <versionRange>[2.8,)</versionRange>
486 <goal>build-classpath</goal>
488 </pluginExecutionFilter>
494 </lifecycleMappingMetadata>
506 <groupId>org.apache.maven.plugins</groupId>
507 <artifactId>maven-surefire-report-plugin</artifactId>
508 <version>${surefire.version}</version>
511 <id>integration-tests</id>
513 <report>report-only</report>
516 <outputName>failsafe-report</outputName>
518 <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
519 </reportsDirectories>