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</artifactId>
25 <groupId>org.apache.hbase</groupId>
26 <version>2.0.0-SNAPSHOT</version>
27 <relativePath>..</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>
71 <version>${maven.assembly.version}</version>
73 <skipAssembly>true</skipAssembly>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-failsafe-plugin</artifactId>
79 <version>${surefire.version}</version>
82 <groupId>org.apache.maven.surefire</groupId>
83 <artifactId>surefire-junit4</artifactId>
84 <version>${surefire.version}</version>
89 <include>${integrationtest.include}</include>
92 <exclude>${unittest.include}</exclude>
93 <exclude>**/*$*</exclude>
95 <redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
96 <environmentVariables>
97 <LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${project.build.directory}/nativelib</LD_LIBRARY_PATH>
98 <DYLD_LIBRARY_PATH>${env.DYLD_LIBRARY_PATH}:${project.build.directory}/nativelib</DYLD_LIBRARY_PATH>
99 <MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
100 </environmentVariables>
101 <failIfNoTests>false</failIfNoTests>
102 <testFailureIgnore>false</testFailureIgnore>
106 <id>integration-test</id>
107 <phase>integration-test</phase>
109 <goal>integration-test</goal>
114 <phase>verify</phase>
121 <!--This plugin's configuration is used to store Eclipse m2e settings
122 only. It has no influence on the Maven build itself.-->
124 <groupId>org.eclipse.m2e</groupId>
125 <artifactId>lifecycle-mapping</artifactId>
126 <version>1.0.0</version>
128 <lifecycleMappingMetadata>
131 <pluginExecutionFilter>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-dependency-plugin</artifactId>
134 <versionRange>[2.8,)</versionRange>
136 <goal>build-classpath</goal>
138 </pluginExecutionFilter>
144 <pluginExecutionFilter>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-compiler-plugin</artifactId>
147 <versionRange>[3.2,)</versionRange>
151 </pluginExecutionFilter>
157 </lifecycleMappingMetadata>
164 <!-- Run integration tests with mvn verify -->
166 <groupId>org.apache.maven.plugins</groupId>
167 <artifactId>maven-failsafe-plugin</artifactId>
170 <forkMode>always</forkMode>
171 <!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
172 I believe it is a failsafe bug, we may consider using surefire -->
173 <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
174 <argLine>-enableassertions -Xmx${failsafe.Xmx}
175 -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
176 -verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine>
183 <!-- Intra-project dependencies -->
185 <groupId>org.apache.hbase</groupId>
186 <artifactId>hbase-annotations</artifactId>
187 <type>test-jar</type>
191 <groupId>org.apache.hbase</groupId>
192 <artifactId>hbase-common</artifactId>
196 <groupId>org.apache.hbase</groupId>
197 <artifactId>hbase-protocol</artifactId>
200 <groupId>org.apache.hbase</groupId>
201 <artifactId>hbase-client</artifactId>
204 <groupId>org.apache.hbase</groupId>
205 <artifactId>hbase-rsgroup</artifactId>
208 <groupId>org.apache.hbase</groupId>
209 <artifactId>hbase-rsgroup</artifactId>
210 <type>test-jar</type>
214 <groupId>org.apache.hbase</groupId>
215 <artifactId>hbase-server</artifactId>
218 <groupId>org.apache.hbase</groupId>
219 <artifactId>hbase-hadoop-compat</artifactId>
222 <groupId>org.apache.hbase</groupId>
223 <artifactId>${compat.module}</artifactId>
224 <version>${project.version}</version>
227 <groupId>org.apache.hbase</groupId>
228 <artifactId>hbase-testing-util</artifactId>
231 <groupId>com.google.guava</groupId>
232 <artifactId>guava</artifactId>
235 <groupId>io.dropwizard.metrics</groupId>
236 <artifactId>metrics-core</artifactId>
239 <groupId>commons-logging</groupId>
240 <artifactId>commons-logging</artifactId>
243 <groupId>commons-cli</groupId>
244 <artifactId>commons-cli</artifactId>
247 <groupId>org.apache.commons</groupId>
248 <artifactId>commons-math</artifactId>
251 <groupId>commons-lang</groupId>
252 <artifactId>commons-lang</artifactId>
255 <groupId>org.apache.htrace</groupId>
256 <artifactId>htrace-core</artifactId>
258 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
260 <groupId>io.netty</groupId>
261 <artifactId>netty</artifactId>
262 <version>${netty.hadoop.version}</version>
268 <!-- Skip the tests in this module -->
270 <id>skipIntegrationTests</id>
273 <name>skipIntegrationTests</name>
277 <skipTests>true</skipTests>
282 <!-- profile for building against Hadoop 2.x. This is the default -->
287 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
288 <!--h2--><name>!hadoop.profile</name>
293 <groupId>org.apache.hadoop</groupId>
294 <artifactId>hadoop-mapreduce-client-core</artifactId>
297 <groupId>org.apache.hadoop</groupId>
298 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
299 <type>test-jar</type>
303 <groupId>org.apache.hadoop</groupId>
304 <artifactId>hadoop-common</artifactId>
307 <groupId>org.apache.hadoop</groupId>
308 <artifactId>hadoop-minikdc</artifactId>
314 <artifactId>maven-dependency-plugin</artifactId>
317 <id>create-mrapp-generated-classpath</id>
318 <phase>generate-test-resources</phase>
320 <goal>build-classpath</goal>
323 <!-- needed to run the unit test for DS to generate
324 the required classpath that is required in the env
325 of the launch container in the mini mr/yarn cluster
327 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
337 profile for building against Hadoop 3.0.x. Activate using:
338 mvn -Dhadoop.profile=3.0
344 <name>hadoop.profile</name>
349 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
353 <groupId>org.apache.hadoop</groupId>
354 <artifactId>hadoop-common</artifactId>
357 <groupId>org.apache.hadoop</groupId>
358 <artifactId>hadoop-minicluster</artifactId>
361 <groupId>org.apache.hadoop</groupId>
362 <artifactId>hadoop-minikdc</artifactId>
368 <artifactId>maven-dependency-plugin</artifactId>
371 <id>create-mrapp-generated-classpath</id>
372 <phase>generate-test-resources</phase>
374 <goal>build-classpath</goal>
377 <!-- needed to run the unit test for DS to generate
378 the required classpath that is required in the env
379 of the launch container in the mini mr/yarn cluster
381 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
394 <groupId>org.apache.maven.plugins</groupId>
395 <artifactId>maven-surefire-report-plugin</artifactId>
396 <version>2.7.2</version>
399 <id>integration-tests</id>
401 <report>report-only</report>
404 <outputName>failsafe-report</outputName>
406 <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
407 </reportsDirectories>