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>
54 <directory>src/test/resources</directory>
59 <!-- Make a jar and put the sources in the jar -->
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-source-plugin</artifactId>
65 <!--Make it so assembly:single does nothing in here-->
66 <artifactId>maven-assembly-plugin</artifactId>
68 <skipAssembly>true</skipAssembly>
72 <groupId>org.apache.maven.plugins</groupId>
73 <artifactId>maven-failsafe-plugin</artifactId>
74 <version>${surefire.version}</version>
77 <groupId>org.apache.maven.surefire</groupId>
78 <artifactId>surefire-junit4</artifactId>
79 <version>${surefire.version}</version>
84 <include>${integrationtest.include}</include>
87 <exclude>${unittest.include}</exclude>
88 <exclude>**/*$*</exclude>
90 <redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
91 <environmentVariables>
92 <LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${project.build.directory}/nativelib</LD_LIBRARY_PATH>
93 <DYLD_LIBRARY_PATH>${env.DYLD_LIBRARY_PATH}:${project.build.directory}/nativelib</DYLD_LIBRARY_PATH>
94 <MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
95 </environmentVariables>
96 <failIfNoTests>false</failIfNoTests>
97 <testFailureIgnore>false</testFailureIgnore>
101 <id>integration-test</id>
102 <phase>integration-test</phase>
104 <goal>integration-test</goal>
109 <phase>verify</phase>
120 <!-- Run integration tests with mvn verify -->
122 <groupId>org.apache.maven.plugins</groupId>
123 <artifactId>maven-failsafe-plugin</artifactId>
126 <forkMode>always</forkMode>
127 <!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
128 I believe it is a failsafe bug, we may consider using surefire -->
129 <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
130 <argLine>-enableassertions -Xmx${failsafe.Xmx}
131 -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
132 -verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine>
136 <groupId>net.revelc.code</groupId>
137 <artifactId>warbucks-maven-plugin</artifactId>
143 <!--This one is upfront to get in front of
144 any dependency that pulls in jersey-core.
145 Jersey-core has implemented version 1
146 Interfaces of what is in this dependency
147 which does version 2.-->
149 <groupId>javax.ws.rs</groupId>
150 <artifactId>javax.ws.rs-api</artifactId>
153 <!-- Intra-project dependencies -->
155 <groupId>org.apache.hbase</groupId>
156 <artifactId>hbase-annotations</artifactId>
157 <type>test-jar</type>
161 <groupId>org.apache.hbase</groupId>
162 <artifactId>hbase-logging</artifactId>
163 <type>test-jar</type>
167 <groupId>org.apache.hbase</groupId>
168 <artifactId>hbase-common</artifactId>
172 <groupId>org.apache.hbase</groupId>
173 <artifactId>hbase-protocol-shaded</artifactId>
176 <groupId>org.apache.hbase</groupId>
177 <artifactId>hbase-client</artifactId>
180 <groupId>org.apache.hbase</groupId>
181 <artifactId>hbase-mapreduce</artifactId>
184 <groupId>org.apache.hbase</groupId>
185 <artifactId>hbase-mapreduce</artifactId>
186 <type>test-jar</type>
190 <groupId>org.apache.hbase</groupId>
191 <artifactId>hbase-server</artifactId>
194 <groupId>org.apache.hbase</groupId>
195 <artifactId>hbase-testing-util</artifactId>
197 <!--This dependency pulls in hadoop-minicluster
198 which pulls in the below. It messes up
199 this build at assembly time. See HBASE-22029-->
201 <groupId>com.sun.jersey</groupId>
202 <artifactId>jersey-core</artifactId>
207 <groupId>org.apache.hbase</groupId>
208 <artifactId>hbase-backup</artifactId>
211 <groupId>org.apache.hbase.thirdparty</groupId>
212 <artifactId>hbase-shaded-miscellaneous</artifactId>
215 <groupId>io.dropwizard.metrics</groupId>
216 <artifactId>metrics-core</artifactId>
219 <groupId>org.slf4j</groupId>
220 <artifactId>slf4j-api</artifactId>
223 <groupId>org.apache.commons</groupId>
224 <artifactId>commons-math3</artifactId>
227 <groupId>org.apache.commons</groupId>
228 <artifactId>commons-lang3</artifactId>
231 <groupId>org.apache.htrace</groupId>
232 <artifactId>htrace-core4</artifactId>
234 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
236 <groupId>io.netty</groupId>
237 <artifactId>netty</artifactId>
238 <version>${netty.hadoop.version}</version>
242 <groupId>org.slf4j</groupId>
243 <artifactId>jcl-over-slf4j</artifactId>
247 <groupId>org.slf4j</groupId>
248 <artifactId>jul-to-slf4j</artifactId>
252 <groupId>org.slf4j</groupId>
253 <artifactId>slf4j-log4j12</artifactId>
257 <groupId>log4j</groupId>
258 <artifactId>log4j</artifactId>
262 <artifactId>javax.servlet-api</artifactId>
263 <groupId>javax.servlet</groupId>
267 <groupId>junit</groupId>
268 <artifactId>junit</artifactId>
272 <groupId>org.hamcrest</groupId>
273 <artifactId>hamcrest-core</artifactId>
277 <groupId>org.hamcrest</groupId>
278 <artifactId>hamcrest-library</artifactId>
282 <groupId>org.mockito</groupId>
283 <artifactId>mockito-core</artifactId>
289 <!-- Skip the tests in this module -->
291 <id>skipIntegrationTests</id>
294 <name>skipIntegrationTests</name>
298 <skipTests>true</skipTests>
302 <id>build-with-jdk11</id>
308 <groupId>com.sun.xml.ws</groupId>
309 <artifactId>jaxws-ri</artifactId>
314 <!-- Profile for building against Hadoop 3.0.0. Activate by default -->
318 <property><name>!hadoop.profile</name></property>
321 <hadoop.version>${hadoop-three.version}</hadoop.version>
325 <groupId>org.apache.hadoop</groupId>
326 <artifactId>hadoop-common</artifactId>
329 <groupId>org.apache.hadoop</groupId>
330 <artifactId>hadoop-minicluster</artifactId>
333 <groupId>javax.xml.bind</groupId>
334 <artifactId>jaxb-api</artifactId>
337 <groupId>javax.ws.rs</groupId>
338 <artifactId>jsr311-api</artifactId>
343 <groupId>org.apache.hadoop</groupId>
344 <artifactId>hadoop-minikdc</artifactId>
350 <artifactId>maven-dependency-plugin</artifactId>
353 <id>create-mrapp-generated-classpath</id>
354 <phase>generate-test-resources</phase>
356 <goal>build-classpath</goal>
359 <!-- needed to run the unit test for DS to generate
360 the required classpath that is required in the env
361 of the launch container in the mini mr/yarn cluster
363 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
372 <id>eclipse-specific</id>
375 <name>m2e.version</name>
381 <!--This plugin's configuration is used to store Eclipse m2e settings
382 only. It has no influence on the Maven build itself.-->
384 <groupId>org.eclipse.m2e</groupId>
385 <artifactId>lifecycle-mapping</artifactId>
387 <lifecycleMappingMetadata>
390 <pluginExecutionFilter>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-dependency-plugin</artifactId>
393 <versionRange>[2.8,)</versionRange>
395 <goal>build-classpath</goal>
397 </pluginExecutionFilter>
403 </lifecycleMappingMetadata>
415 <groupId>org.apache.maven.plugins</groupId>
416 <artifactId>maven-surefire-report-plugin</artifactId>
417 <version>${surefire.version}</version>
420 <id>integration-tests</id>
422 <report>report-only</report>
425 <outputName>failsafe-report</outputName>
427 <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
428 </reportsDirectories>