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>3.0.0-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>
56 <!-- Make a jar and put the sources in the jar -->
58 <groupId>org.apache.maven.plugins</groupId>
59 <artifactId>maven-source-plugin</artifactId>
62 <!--Make it so assembly:single does nothing in here-->
63 <artifactId>maven-assembly-plugin</artifactId>
65 <skipAssembly>true</skipAssembly>
69 <groupId>org.apache.maven.plugins</groupId>
70 <artifactId>maven-failsafe-plugin</artifactId>
71 <version>${surefire.version}</version>
74 <groupId>org.apache.maven.surefire</groupId>
75 <artifactId>surefire-junit4</artifactId>
76 <version>${surefire.version}</version>
81 <include>${integrationtest.include}</include>
84 <exclude>${unittest.include}</exclude>
85 <exclude>**/*$*</exclude>
87 <redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
88 <environmentVariables>
89 <LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${project.build.directory}/nativelib</LD_LIBRARY_PATH>
90 <DYLD_LIBRARY_PATH>${env.DYLD_LIBRARY_PATH}:${project.build.directory}/nativelib</DYLD_LIBRARY_PATH>
91 <MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
92 </environmentVariables>
93 <failIfNoTests>false</failIfNoTests>
94 <testFailureIgnore>false</testFailureIgnore>
98 <id>integration-test</id>
99 <phase>integration-test</phase>
101 <goal>integration-test</goal>
106 <phase>verify</phase>
117 <!-- Run integration tests with mvn verify -->
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-failsafe-plugin</artifactId>
123 <forkMode>always</forkMode>
124 <!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
125 I believe it is a failsafe bug, we may consider using surefire -->
126 <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
127 <argLine>-enableassertions -Xmx${failsafe.Xmx}
128 -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
129 -verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine>
133 <groupId>net.revelc.code</groupId>
134 <artifactId>warbucks-maven-plugin</artifactId>
140 <!--This one is upfront to get in front of
141 any dependency that pulls in jersey-core.
142 Jersey-core has implemented version 1
143 Interfaces of what is in this dependency
144 which does version 2.-->
146 <groupId>javax.ws.rs</groupId>
147 <artifactId>javax.ws.rs-api</artifactId>
150 <!-- Intra-project dependencies -->
152 <groupId>org.apache.hbase</groupId>
153 <artifactId>hbase-annotations</artifactId>
154 <type>test-jar</type>
158 <groupId>org.apache.hbase</groupId>
159 <artifactId>hbase-common</artifactId>
163 <groupId>org.apache.hbase</groupId>
164 <artifactId>hbase-protocol</artifactId>
167 <groupId>org.apache.hbase</groupId>
168 <artifactId>hbase-protocol-shaded</artifactId>
171 <groupId>org.apache.hbase</groupId>
172 <artifactId>hbase-client</artifactId>
175 <groupId>org.apache.hbase</groupId>
176 <artifactId>hbase-mapreduce</artifactId>
179 <groupId>org.apache.hbase</groupId>
180 <artifactId>hbase-mapreduce</artifactId>
181 <type>test-jar</type>
185 <groupId>org.apache.hbase</groupId>
186 <artifactId>hbase-rsgroup</artifactId>
189 <groupId>org.apache.hbase</groupId>
190 <artifactId>hbase-rsgroup</artifactId>
191 <type>test-jar</type>
195 <groupId>org.apache.hbase</groupId>
196 <artifactId>hbase-server</artifactId>
199 <groupId>org.apache.hbase</groupId>
200 <artifactId>${compat.module}</artifactId>
201 <version>${project.version}</version>
204 <groupId>org.apache.hbase</groupId>
205 <artifactId>hbase-testing-util</artifactId>
207 <!--This dependency pulls in hadoop-minicluster
208 which pulls in the below. It messes up
209 this build at assembly time. See HBASE-22029-->
211 <groupId>com.sun.jersey</groupId>
212 <artifactId>jersey-core</artifactId>
217 <groupId>org.apache.hbase</groupId>
218 <artifactId>hbase-backup</artifactId>
221 <groupId>org.apache.hbase.thirdparty</groupId>
222 <artifactId>hbase-shaded-miscellaneous</artifactId>
225 <groupId>io.dropwizard.metrics</groupId>
226 <artifactId>metrics-core</artifactId>
229 <groupId>org.slf4j</groupId>
230 <artifactId>slf4j-api</artifactId>
233 <groupId>org.apache.commons</groupId>
234 <artifactId>commons-math3</artifactId>
237 <groupId>org.apache.commons</groupId>
238 <artifactId>commons-lang3</artifactId>
241 <groupId>org.apache.htrace</groupId>
242 <artifactId>htrace-core4</artifactId>
245 <groupId>org.glassfish.jersey.core</groupId>
246 <artifactId>jersey-client</artifactId>
248 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
250 <groupId>io.netty</groupId>
251 <artifactId>netty</artifactId>
252 <version>${netty.hadoop.version}</version>
257 <groupId>log4j</groupId>
258 <artifactId>log4j</artifactId>
261 <groupId>junit</groupId>
262 <artifactId>junit</artifactId>
266 <groupId>org.mockito</groupId>
267 <artifactId>mockito-core</artifactId>
273 <!-- Skip the tests in this module -->
275 <id>skipIntegrationTests</id>
278 <name>skipIntegrationTests</name>
282 <skipTests>true</skipTests>
286 <id>build-with-jdk11</id>
292 <groupId>com.sun.xml.ws</groupId>
293 <artifactId>jaxws-ri</artifactId>
298 <!-- profile for building against Hadoop 2.x. This is the default -->
303 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
304 <!--h2--><name>!hadoop.profile</name>
309 <groupId>org.apache.hadoop</groupId>
310 <artifactId>hadoop-mapreduce-client-core</artifactId>
313 <groupId>com.google.guava</groupId>
314 <artifactId>guava</artifactId>
319 <groupId>org.apache.hadoop</groupId>
320 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
321 <type>test-jar</type>
325 <groupId>com.google.guava</groupId>
326 <artifactId>guava</artifactId>
331 <groupId>org.apache.hadoop</groupId>
332 <artifactId>hadoop-common</artifactId>
335 <groupId>org.apache.hadoop</groupId>
336 <artifactId>hadoop-minikdc</artifactId>
342 <artifactId>maven-dependency-plugin</artifactId>
345 <id>create-mrapp-generated-classpath</id>
346 <phase>generate-test-resources</phase>
348 <goal>build-classpath</goal>
351 <!-- needed to run the unit test for DS to generate
352 the required classpath that is required in the env
353 of the launch container in the mini mr/yarn cluster
355 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
365 profile for building against Hadoop 3.0.x. Activate using:
366 mvn -Dhadoop.profile=3.0
372 <name>hadoop.profile</name>
377 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
381 <groupId>org.apache.hadoop</groupId>
382 <artifactId>hadoop-common</artifactId>
385 <groupId>org.apache.hadoop</groupId>
386 <artifactId>hadoop-minicluster</artifactId>
389 <groupId>org.apache.hadoop</groupId>
390 <artifactId>hadoop-minikdc</artifactId>
396 <artifactId>maven-dependency-plugin</artifactId>
399 <id>create-mrapp-generated-classpath</id>
400 <phase>generate-test-resources</phase>
402 <goal>build-classpath</goal>
405 <!-- needed to run the unit test for DS to generate
406 the required classpath that is required in the env
407 of the launch container in the mini mr/yarn cluster
409 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
418 <id>eclipse-specific</id>
421 <name>m2e.version</name>
427 <!--This plugin's configuration is used to store Eclipse m2e settings
428 only. It has no influence on the Maven build itself.-->
430 <groupId>org.eclipse.m2e</groupId>
431 <artifactId>lifecycle-mapping</artifactId>
433 <lifecycleMappingMetadata>
436 <pluginExecutionFilter>
437 <groupId>org.apache.maven.plugins</groupId>
438 <artifactId>maven-dependency-plugin</artifactId>
439 <versionRange>[2.8,)</versionRange>
441 <goal>build-classpath</goal>
443 </pluginExecutionFilter>
449 </lifecycleMappingMetadata>
461 <groupId>org.apache.maven.plugins</groupId>
462 <artifactId>maven-surefire-report-plugin</artifactId>
463 <version>${surefire.version}</version>
466 <id>integration-tests</id>
468 <report>report-only</report>
471 <outputName>failsafe-report</outputName>
473 <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
474 </reportsDirectories>