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-alpha-3-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>io.opentelemetry</groupId>
232 <artifactId>opentelemetry-api</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.apache.logging.log4j</groupId>
253 <artifactId>log4j-api</artifactId>
257 <groupId>org.apache.logging.log4j</groupId>
258 <artifactId>log4j-core</artifactId>
262 <groupId>org.apache.logging.log4j</groupId>
263 <artifactId>log4j-slf4j-impl</artifactId>
267 <groupId>org.apache.logging.log4j</groupId>
268 <artifactId>log4j-1.2-api</artifactId>
272 <artifactId>javax.servlet-api</artifactId>
273 <groupId>javax.servlet</groupId>
277 <groupId>junit</groupId>
278 <artifactId>junit</artifactId>
282 <groupId>org.hamcrest</groupId>
283 <artifactId>hamcrest-core</artifactId>
287 <groupId>org.hamcrest</groupId>
288 <artifactId>hamcrest-library</artifactId>
292 <groupId>org.mockito</groupId>
293 <artifactId>mockito-core</artifactId>
299 <!-- Skip the tests in this module -->
301 <id>skipIntegrationTests</id>
304 <name>skipIntegrationTests</name>
308 <skipTests>true</skipTests>
312 <id>build-with-jdk11</id>
318 <groupId>com.sun.xml.ws</groupId>
319 <artifactId>jaxws-ri</artifactId>
324 <!-- Profile for building against Hadoop 3.0.0. Activate by default -->
328 <property><name>!hadoop.profile</name></property>
331 <hadoop.version>${hadoop-three.version}</hadoop.version>
335 <groupId>org.apache.hadoop</groupId>
336 <artifactId>hadoop-common</artifactId>
339 <groupId>org.apache.hadoop</groupId>
340 <artifactId>hadoop-minicluster</artifactId>
343 <groupId>javax.xml.bind</groupId>
344 <artifactId>jaxb-api</artifactId>
347 <groupId>javax.ws.rs</groupId>
348 <artifactId>jsr311-api</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>
382 <id>eclipse-specific</id>
385 <name>m2e.version</name>
391 <!--This plugin's configuration is used to store Eclipse m2e settings
392 only. It has no influence on the Maven build itself.-->
394 <groupId>org.eclipse.m2e</groupId>
395 <artifactId>lifecycle-mapping</artifactId>
397 <lifecycleMappingMetadata>
400 <pluginExecutionFilter>
401 <groupId>org.apache.maven.plugins</groupId>
402 <artifactId>maven-dependency-plugin</artifactId>
403 <versionRange>[2.8,)</versionRange>
405 <goal>build-classpath</goal>
407 </pluginExecutionFilter>
413 </lifecycleMappingMetadata>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-surefire-report-plugin</artifactId>
427 <version>${surefire.version}</version>
430 <id>integration-tests</id>
432 <report>report-only</report>
435 <outputName>failsafe-report</outputName>
437 <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
438 </reportsDirectories>