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>
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>
113 <!--This plugin's configuration is used to store Eclipse m2e settings
114 only. It has no influence on the Maven build itself.-->
116 <groupId>org.eclipse.m2e</groupId>
117 <artifactId>lifecycle-mapping</artifactId>
119 <lifecycleMappingMetadata>
122 <pluginExecutionFilter>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-dependency-plugin</artifactId>
125 <versionRange>[2.8,)</versionRange>
127 <goal>build-classpath</goal>
129 </pluginExecutionFilter>
135 </lifecycleMappingMetadata>
142 <!-- Run integration tests with mvn verify -->
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-failsafe-plugin</artifactId>
148 <forkMode>always</forkMode>
149 <!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
150 I believe it is a failsafe bug, we may consider using surefire -->
151 <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
152 <argLine>-enableassertions -Xmx${failsafe.Xmx}
153 -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
154 -verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine>
158 <groupId>net.revelc.code</groupId>
159 <artifactId>warbucks-maven-plugin</artifactId>
165 <!-- Intra-project dependencies -->
167 <groupId>org.apache.hbase</groupId>
168 <artifactId>hbase-annotations</artifactId>
169 <type>test-jar</type>
173 <groupId>org.apache.hbase</groupId>
174 <artifactId>hbase-common</artifactId>
178 <groupId>org.apache.hbase</groupId>
179 <artifactId>hbase-protocol</artifactId>
182 <groupId>org.apache.hbase</groupId>
183 <artifactId>hbase-protocol-shaded</artifactId>
186 <groupId>org.apache.hbase</groupId>
187 <artifactId>hbase-client</artifactId>
190 <groupId>org.apache.hbase</groupId>
191 <artifactId>hbase-mapreduce</artifactId>
194 <groupId>org.apache.hbase</groupId>
195 <artifactId>hbase-mapreduce</artifactId>
196 <type>test-jar</type>
200 <groupId>org.apache.hbase</groupId>
201 <artifactId>hbase-rsgroup</artifactId>
204 <groupId>org.apache.hbase</groupId>
205 <artifactId>hbase-rsgroup</artifactId>
206 <type>test-jar</type>
210 <groupId>org.apache.hbase</groupId>
211 <artifactId>hbase-server</artifactId>
214 <groupId>org.apache.hbase</groupId>
215 <artifactId>${compat.module}</artifactId>
216 <version>${project.version}</version>
219 <groupId>org.apache.hbase</groupId>
220 <artifactId>hbase-testing-util</artifactId>
223 <groupId>org.apache.hbase</groupId>
224 <artifactId>hbase-backup</artifactId>
225 <version>${project.version}</version>
228 <groupId>org.apache.hbase.thirdparty</groupId>
229 <artifactId>hbase-shaded-miscellaneous</artifactId>
232 <groupId>io.dropwizard.metrics</groupId>
233 <artifactId>metrics-core</artifactId>
236 <groupId>org.slf4j</groupId>
237 <artifactId>slf4j-api</artifactId>
240 <groupId>org.apache.commons</groupId>
241 <artifactId>commons-math3</artifactId>
244 <groupId>org.apache.commons</groupId>
245 <artifactId>commons-lang3</artifactId>
248 <groupId>org.apache.htrace</groupId>
249 <artifactId>htrace-core4</artifactId>
252 <groupId>javax.ws.rs</groupId>
253 <artifactId>javax.ws.rs-api</artifactId>
257 <groupId>org.glassfish.jersey.core</groupId>
258 <artifactId>jersey-client</artifactId>
260 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
262 <groupId>io.netty</groupId>
263 <artifactId>netty</artifactId>
264 <version>${netty.hadoop.version}</version>
269 <groupId>log4j</groupId>
270 <artifactId>log4j</artifactId>
273 <groupId>junit</groupId>
274 <artifactId>junit</artifactId>
278 <groupId>org.mockito</groupId>
279 <artifactId>mockito-core</artifactId>
283 <groupId>com.fasterxml.jackson.core</groupId>
284 <artifactId>jackson-databind</artifactId>
289 <!-- Skip the tests in this module -->
291 <id>skipIntegrationTests</id>
294 <name>skipIntegrationTests</name>
298 <skipTests>true</skipTests>
303 <!-- profile for building against Hadoop 2.x. This is the default -->
308 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
309 <!--h2--><name>!hadoop.profile</name>
314 <groupId>org.apache.hadoop</groupId>
315 <artifactId>hadoop-mapreduce-client-core</artifactId>
318 <groupId>com.google.guava</groupId>
319 <artifactId>guava</artifactId>
324 <groupId>org.apache.hadoop</groupId>
325 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
326 <type>test-jar</type>
330 <groupId>com.google.guava</groupId>
331 <artifactId>guava</artifactId>
336 <groupId>org.apache.hadoop</groupId>
337 <artifactId>hadoop-common</artifactId>
340 <groupId>org.apache.hadoop</groupId>
341 <artifactId>hadoop-minikdc</artifactId>
347 <artifactId>maven-dependency-plugin</artifactId>
350 <id>create-mrapp-generated-classpath</id>
351 <phase>generate-test-resources</phase>
353 <goal>build-classpath</goal>
356 <!-- needed to run the unit test for DS to generate
357 the required classpath that is required in the env
358 of the launch container in the mini mr/yarn cluster
360 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
370 profile for building against Hadoop 3.0.x. Activate using:
371 mvn -Dhadoop.profile=3.0
377 <name>hadoop.profile</name>
382 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
386 <groupId>org.apache.hadoop</groupId>
387 <artifactId>hadoop-common</artifactId>
390 <groupId>org.apache.hadoop</groupId>
391 <artifactId>hadoop-minicluster</artifactId>
394 <groupId>org.apache.hadoop</groupId>
395 <artifactId>hadoop-minikdc</artifactId>
401 <artifactId>maven-dependency-plugin</artifactId>
404 <id>create-mrapp-generated-classpath</id>
405 <phase>generate-test-resources</phase>
407 <goal>build-classpath</goal>
410 <!-- needed to run the unit test for DS to generate
411 the required classpath that is required in the env
412 of the launch container in the mini mr/yarn cluster
414 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-surefire-report-plugin</artifactId>
429 <version>${surefire.version}</version>
432 <id>integration-tests</id>
434 <report>report-only</report>
437 <outputName>failsafe-report</outputName>
439 <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
440 </reportsDirectories>