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 <pluginExecutionFilter>
143 <groupId>org.apache.maven.plugins</groupId>
144 <artifactId>maven-compiler-plugin</artifactId>
145 <versionRange>[3.2,)</versionRange>
149 </pluginExecutionFilter>
155 </lifecycleMappingMetadata>
162 <!-- Run integration tests with mvn verify -->
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-failsafe-plugin</artifactId>
168 <forkMode>always</forkMode>
169 <!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
170 I believe it is a failsafe bug, we may consider using surefire -->
171 <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
172 <argLine>-enableassertions -Xmx${failsafe.Xmx}
173 -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
174 -verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine>
181 <!-- Intra-project dependencies -->
183 <groupId>org.apache.hbase</groupId>
184 <artifactId>hbase-annotations</artifactId>
185 <type>test-jar</type>
189 <groupId>org.apache.hbase</groupId>
190 <artifactId>hbase-common</artifactId>
194 <groupId>org.apache.hbase</groupId>
195 <artifactId>hbase-protocol</artifactId>
198 <groupId>org.apache.hbase</groupId>
199 <artifactId>hbase-protocol-shaded</artifactId>
202 <groupId>org.apache.hbase</groupId>
203 <artifactId>hbase-client</artifactId>
206 <groupId>org.apache.hbase</groupId>
207 <artifactId>hbase-mapreduce</artifactId>
210 <groupId>org.apache.hbase</groupId>
211 <artifactId>hbase-mapreduce</artifactId>
212 <type>test-jar</type>
216 <groupId>org.apache.hbase</groupId>
217 <artifactId>hbase-rsgroup</artifactId>
220 <groupId>org.apache.hbase</groupId>
221 <artifactId>hbase-rsgroup</artifactId>
222 <type>test-jar</type>
226 <groupId>org.apache.hbase</groupId>
227 <artifactId>hbase-server</artifactId>
230 <groupId>org.apache.hbase</groupId>
231 <artifactId>hbase-hadoop-compat</artifactId>
234 <groupId>com.google.guava</groupId>
235 <artifactId>guava</artifactId>
240 <groupId>org.apache.hbase</groupId>
241 <artifactId>${compat.module}</artifactId>
242 <version>${project.version}</version>
245 <groupId>org.apache.hbase</groupId>
246 <artifactId>hbase-testing-util</artifactId>
249 <groupId>org.apache.hbase</groupId>
250 <artifactId>hbase-backup</artifactId>
251 <version>${project.version}</version>
254 <groupId>org.apache.hbase.thirdparty</groupId>
255 <artifactId>hbase-shaded-miscellaneous</artifactId>
258 <groupId>io.dropwizard.metrics</groupId>
259 <artifactId>metrics-core</artifactId>
262 <groupId>commons-logging</groupId>
263 <artifactId>commons-logging</artifactId>
266 <groupId>commons-cli</groupId>
267 <artifactId>commons-cli</artifactId>
270 <groupId>org.apache.commons</groupId>
271 <artifactId>commons-math</artifactId>
274 <groupId>org.apache.commons</groupId>
275 <artifactId>commons-lang3</artifactId>
278 <groupId>org.apache.htrace</groupId>
279 <artifactId>htrace-core</artifactId>
282 <groupId>javax.ws.rs</groupId>
283 <artifactId>javax.ws.rs-api</artifactId>
286 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
288 <groupId>io.netty</groupId>
289 <artifactId>netty</artifactId>
290 <version>${netty.hadoop.version}</version>
295 <groupId>log4j</groupId>
296 <artifactId>log4j</artifactId>
299 <groupId>junit</groupId>
300 <artifactId>junit</artifactId>
304 <groupId>org.glassfish.jersey.core</groupId>
305 <artifactId>jersey-client</artifactId>
306 <version>2.25.1</version>
311 <!-- Skip the tests in this module -->
313 <id>skipIntegrationTests</id>
316 <name>skipIntegrationTests</name>
320 <skipTests>true</skipTests>
325 <!-- profile for building against Hadoop 2.x. This is the default -->
330 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
331 <!--h2--><name>!hadoop.profile</name>
336 <groupId>org.apache.hadoop</groupId>
337 <artifactId>hadoop-mapreduce-client-core</artifactId>
340 <groupId>com.google.guava</groupId>
341 <artifactId>guava</artifactId>
346 <groupId>org.apache.hadoop</groupId>
347 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
348 <type>test-jar</type>
352 <groupId>com.google.guava</groupId>
353 <artifactId>guava</artifactId>
358 <groupId>org.apache.hadoop</groupId>
359 <artifactId>hadoop-common</artifactId>
362 <groupId>org.apache.hadoop</groupId>
363 <artifactId>hadoop-minikdc</artifactId>
369 <artifactId>maven-dependency-plugin</artifactId>
372 <id>create-mrapp-generated-classpath</id>
373 <phase>generate-test-resources</phase>
375 <goal>build-classpath</goal>
378 <!-- needed to run the unit test for DS to generate
379 the required classpath that is required in the env
380 of the launch container in the mini mr/yarn cluster
382 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
392 profile for building against Hadoop 3.0.x. Activate using:
393 mvn -Dhadoop.profile=3.0
399 <name>hadoop.profile</name>
404 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
408 <groupId>org.apache.hadoop</groupId>
409 <artifactId>hadoop-common</artifactId>
412 <groupId>org.apache.hadoop</groupId>
413 <artifactId>hadoop-minicluster</artifactId>
416 <groupId>org.apache.hadoop</groupId>
417 <artifactId>hadoop-minikdc</artifactId>
423 <artifactId>maven-dependency-plugin</artifactId>
426 <id>create-mrapp-generated-classpath</id>
427 <phase>generate-test-resources</phase>
429 <goal>build-classpath</goal>
432 <!-- needed to run the unit test for DS to generate
433 the required classpath that is required in the env
434 of the launch container in the mini mr/yarn cluster
436 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
449 <groupId>org.apache.maven.plugins</groupId>
450 <artifactId>maven-surefire-report-plugin</artifactId>
451 <version>${surefire.version}</version>
454 <id>integration-tests</id>
456 <report>report-only</report>
459 <outputName>failsafe-report</outputName>
461 <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
462 </reportsDirectories>