2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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>
57 <groupId>org.apache.maven.plugins</groupId>
58 <artifactId>maven-site-plugin</artifactId>
63 <!-- Make a jar and put the sources in the jar -->
65 <groupId>org.apache.maven.plugins</groupId>
66 <artifactId>maven-source-plugin</artifactId>
69 <!--Make it so assembly:single does nothing in here-->
70 <artifactId>maven-assembly-plugin</artifactId>
72 <skipAssembly>true</skipAssembly>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-failsafe-plugin</artifactId>
78 <version>${surefire.version}</version>
81 <groupId>org.apache.maven.surefire</groupId>
82 <artifactId>surefire-junit4</artifactId>
83 <version>${surefire.version}</version>
88 <include>${integrationtest.include}</include>
91 <exclude>${unittest.include}</exclude>
92 <exclude>**/*$*</exclude>
94 <redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
95 <environmentVariables>
96 <LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${project.build.directory}/nativelib</LD_LIBRARY_PATH>
97 <DYLD_LIBRARY_PATH>${env.DYLD_LIBRARY_PATH}:${project.build.directory}/nativelib</DYLD_LIBRARY_PATH>
98 <MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
99 </environmentVariables>
100 <failIfNoTests>false</failIfNoTests>
101 <testFailureIgnore>false</testFailureIgnore>
105 <id>integration-test</id>
106 <phase>integration-test</phase>
108 <goal>integration-test</goal>
113 <phase>verify</phase>
120 <!--This plugin's configuration is used to store Eclipse m2e settings
121 only. It has no influence on the Maven build itself.-->
123 <groupId>org.eclipse.m2e</groupId>
124 <artifactId>lifecycle-mapping</artifactId>
126 <lifecycleMappingMetadata>
129 <pluginExecutionFilter>
130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-dependency-plugin</artifactId>
132 <versionRange>[2.8,)</versionRange>
134 <goal>build-classpath</goal>
136 </pluginExecutionFilter>
142 </lifecycleMappingMetadata>
149 <!-- Run integration tests with mvn verify -->
151 <groupId>org.apache.maven.plugins</groupId>
152 <artifactId>maven-failsafe-plugin</artifactId>
155 <forkMode>always</forkMode>
156 <!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
157 I believe it is a failsafe bug, we may consider using surefire -->
158 <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
159 <argLine>-enableassertions -Xmx${failsafe.Xmx}
160 -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
161 -verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine>
168 <!-- Intra-project dependencies -->
170 <groupId>org.apache.hbase</groupId>
171 <artifactId>hbase-annotations</artifactId>
172 <type>test-jar</type>
176 <groupId>org.apache.hbase</groupId>
177 <artifactId>hbase-common</artifactId>
181 <groupId>org.apache.hbase</groupId>
182 <artifactId>hbase-protocol</artifactId>
185 <groupId>org.apache.hbase</groupId>
186 <artifactId>hbase-protocol-shaded</artifactId>
189 <groupId>org.apache.hbase</groupId>
190 <artifactId>hbase-client</artifactId>
193 <groupId>org.apache.hbase</groupId>
194 <artifactId>hbase-mapreduce</artifactId>
197 <groupId>org.apache.hbase</groupId>
198 <artifactId>hbase-mapreduce</artifactId>
199 <type>test-jar</type>
203 <groupId>org.apache.hbase</groupId>
204 <artifactId>hbase-rsgroup</artifactId>
207 <groupId>org.apache.hbase</groupId>
208 <artifactId>hbase-rsgroup</artifactId>
209 <type>test-jar</type>
213 <groupId>org.apache.hbase</groupId>
214 <artifactId>hbase-server</artifactId>
217 <groupId>org.apache.hbase</groupId>
218 <artifactId>${compat.module}</artifactId>
219 <version>${project.version}</version>
222 <groupId>org.apache.hbase</groupId>
223 <artifactId>hbase-testing-util</artifactId>
226 <groupId>org.apache.hbase</groupId>
227 <artifactId>hbase-backup</artifactId>
228 <version>${project.version}</version>
231 <groupId>org.apache.hbase.thirdparty</groupId>
232 <artifactId>hbase-shaded-miscellaneous</artifactId>
235 <groupId>io.dropwizard.metrics</groupId>
236 <artifactId>metrics-core</artifactId>
239 <groupId>org.slf4j</groupId>
240 <artifactId>slf4j-api</artifactId>
243 <groupId>commons-cli</groupId>
244 <artifactId>commons-cli</artifactId>
247 <groupId>org.apache.commons</groupId>
248 <artifactId>commons-math3</artifactId>
251 <groupId>org.apache.commons</groupId>
252 <artifactId>commons-lang3</artifactId>
255 <groupId>org.apache.htrace</groupId>
256 <artifactId>htrace-core4</artifactId>
259 <groupId>javax.ws.rs</groupId>
260 <artifactId>javax.ws.rs-api</artifactId>
264 <groupId>org.glassfish.jersey.core</groupId>
265 <artifactId>jersey-client</artifactId>
267 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
269 <groupId>io.netty</groupId>
270 <artifactId>netty</artifactId>
271 <version>${netty.hadoop.version}</version>
276 <groupId>log4j</groupId>
277 <artifactId>log4j</artifactId>
280 <groupId>junit</groupId>
281 <artifactId>junit</artifactId>
285 <groupId>org.mockito</groupId>
286 <artifactId>mockito-core</artifactId>
290 <groupId>com.fasterxml.jackson.core</groupId>
291 <artifactId>jackson-databind</artifactId>
296 <!-- Skip the tests in this module -->
298 <id>skipIntegrationTests</id>
301 <name>skipIntegrationTests</name>
305 <skipTests>true</skipTests>
310 <!-- profile for building against Hadoop 2.x. This is the default -->
315 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
316 <!--h2--><name>!hadoop.profile</name>
321 <groupId>org.apache.hadoop</groupId>
322 <artifactId>hadoop-mapreduce-client-core</artifactId>
325 <groupId>com.google.guava</groupId>
326 <artifactId>guava</artifactId>
331 <groupId>org.apache.hadoop</groupId>
332 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
333 <type>test-jar</type>
337 <groupId>com.google.guava</groupId>
338 <artifactId>guava</artifactId>
343 <groupId>org.apache.hadoop</groupId>
344 <artifactId>hadoop-common</artifactId>
347 <groupId>org.apache.htrace</groupId>
348 <artifactId>htrace-core</artifactId>
353 <groupId>org.apache.hadoop</groupId>
354 <artifactId>hadoop-minikdc</artifactId>
360 <artifactId>maven-dependency-plugin</artifactId>
363 <id>create-mrapp-generated-classpath</id>
364 <phase>generate-test-resources</phase>
366 <goal>build-classpath</goal>
369 <!-- needed to run the unit test for DS to generate
370 the required classpath that is required in the env
371 of the launch container in the mini mr/yarn cluster
373 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
383 profile for building against Hadoop 3.0.x. Activate using:
384 mvn -Dhadoop.profile=3.0
390 <name>hadoop.profile</name>
395 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
399 <groupId>org.apache.hadoop</groupId>
400 <artifactId>hadoop-common</artifactId>
403 <groupId>org.apache.hadoop</groupId>
404 <artifactId>hadoop-minicluster</artifactId>
407 <groupId>org.apache.hadoop</groupId>
408 <artifactId>hadoop-minikdc</artifactId>
414 <artifactId>maven-dependency-plugin</artifactId>
417 <id>create-mrapp-generated-classpath</id>
418 <phase>generate-test-resources</phase>
420 <goal>build-classpath</goal>
423 <!-- needed to run the unit test for DS to generate
424 the required classpath that is required in the env
425 of the launch container in the mini mr/yarn cluster
427 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
440 <groupId>org.apache.maven.plugins</groupId>
441 <artifactId>maven-surefire-report-plugin</artifactId>
442 <version>${surefire.version}</version>
445 <id>integration-tests</id>
447 <report>report-only</report>
450 <outputName>failsafe-report</outputName>
452 <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
453 </reportsDirectories>