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>
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>
117 <!-- Run integration tests with mvn verify -->
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-failsafe-plugin</artifactId>
123 <forkMode>always</forkMode>
124 <!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
125 I believe it is a failsafe bug, we may consider using surefire -->
126 <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
127 <argLine>-enableassertions -Xmx${failsafe.Xmx}
128 -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
129 -verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine>
133 <groupId>net.revelc.code</groupId>
134 <artifactId>warbucks-maven-plugin</artifactId>
140 <!--This one is upfront to get in front of
141 any dependency that pulls in jersey-core.
142 Jersey-core has implemented version 1
143 Interfaces of what is in this dependency
144 which does version 2.-->
146 <groupId>javax.ws.rs</groupId>
147 <artifactId>javax.ws.rs-api</artifactId>
150 <!-- Intra-project dependencies -->
152 <groupId>org.apache.hbase</groupId>
153 <artifactId>hbase-annotations</artifactId>
154 <type>test-jar</type>
158 <groupId>org.apache.hbase</groupId>
159 <artifactId>hbase-common</artifactId>
163 <groupId>org.apache.hbase</groupId>
164 <artifactId>hbase-protocol-shaded</artifactId>
167 <groupId>org.apache.hbase</groupId>
168 <artifactId>hbase-client</artifactId>
171 <groupId>org.apache.hbase</groupId>
172 <artifactId>hbase-mapreduce</artifactId>
175 <groupId>org.apache.hbase</groupId>
176 <artifactId>hbase-mapreduce</artifactId>
177 <type>test-jar</type>
181 <groupId>org.apache.hbase</groupId>
182 <artifactId>hbase-server</artifactId>
185 <groupId>org.apache.hbase</groupId>
186 <artifactId>${compat.module}</artifactId>
187 <version>${project.version}</version>
190 <groupId>org.apache.hbase</groupId>
191 <artifactId>hbase-testing-util</artifactId>
193 <!--This dependency pulls in hadoop-minicluster
194 which pulls in the below. It messes up
195 this build at assembly time. See HBASE-22029-->
197 <groupId>com.sun.jersey</groupId>
198 <artifactId>jersey-core</artifactId>
203 <groupId>org.apache.hbase</groupId>
204 <artifactId>hbase-backup</artifactId>
207 <groupId>org.apache.hbase.thirdparty</groupId>
208 <artifactId>hbase-shaded-miscellaneous</artifactId>
211 <groupId>io.dropwizard.metrics</groupId>
212 <artifactId>metrics-core</artifactId>
215 <groupId>org.slf4j</groupId>
216 <artifactId>slf4j-api</artifactId>
219 <groupId>org.apache.commons</groupId>
220 <artifactId>commons-math3</artifactId>
223 <groupId>org.apache.commons</groupId>
224 <artifactId>commons-lang3</artifactId>
227 <groupId>org.apache.htrace</groupId>
228 <artifactId>htrace-core4</artifactId>
231 <groupId>org.glassfish.jersey.core</groupId>
232 <artifactId>jersey-client</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>
243 <groupId>log4j</groupId>
244 <artifactId>log4j</artifactId>
247 <groupId>junit</groupId>
248 <artifactId>junit</artifactId>
249 <scope>compile</scope>
252 <groupId>org.mockito</groupId>
253 <artifactId>mockito-core</artifactId>
259 <!-- Skip the tests in this module -->
261 <id>skipIntegrationTests</id>
264 <name>skipIntegrationTests</name>
268 <skipTests>true</skipTests>
272 <id>build-with-jdk11</id>
278 <groupId>com.sun.xml.ws</groupId>
279 <artifactId>jaxws-ri</artifactId>
284 <!-- profile for building against Hadoop 2.x. This is the default -->
289 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
290 <!--h2--><name>!hadoop.profile</name>
295 <groupId>org.apache.hadoop</groupId>
296 <artifactId>hadoop-mapreduce-client-core</artifactId>
299 <groupId>com.google.guava</groupId>
300 <artifactId>guava</artifactId>
305 <groupId>org.apache.hadoop</groupId>
306 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
307 <type>test-jar</type>
311 <groupId>com.google.guava</groupId>
312 <artifactId>guava</artifactId>
317 <groupId>org.apache.hadoop</groupId>
318 <artifactId>hadoop-common</artifactId>
321 <groupId>org.apache.hadoop</groupId>
322 <artifactId>hadoop-minikdc</artifactId>
328 <artifactId>maven-dependency-plugin</artifactId>
331 <id>create-mrapp-generated-classpath</id>
332 <phase>generate-test-resources</phase>
334 <goal>build-classpath</goal>
337 <!-- needed to run the unit test for DS to generate
338 the required classpath that is required in the env
339 of the launch container in the mini mr/yarn cluster
341 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
351 profile for building against Hadoop 3.0.x. Activate using:
352 mvn -Dhadoop.profile=3.0
358 <name>hadoop.profile</name>
363 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
367 <groupId>org.apache.hadoop</groupId>
368 <artifactId>hadoop-common</artifactId>
371 <groupId>org.apache.hadoop</groupId>
372 <artifactId>hadoop-minicluster</artifactId>
375 <groupId>org.apache.hadoop</groupId>
376 <artifactId>hadoop-minikdc</artifactId>
382 <artifactId>maven-dependency-plugin</artifactId>
385 <id>create-mrapp-generated-classpath</id>
386 <phase>generate-test-resources</phase>
388 <goal>build-classpath</goal>
391 <!-- needed to run the unit test for DS to generate
392 the required classpath that is required in the env
393 of the launch container in the mini mr/yarn cluster
395 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
404 <id>eclipse-specific</id>
407 <name>m2e.version</name>
413 <!--This plugin's configuration is used to store Eclipse m2e settings
414 only. It has no influence on the Maven build itself.-->
416 <groupId>org.eclipse.m2e</groupId>
417 <artifactId>lifecycle-mapping</artifactId>
419 <lifecycleMappingMetadata>
422 <pluginExecutionFilter>
423 <groupId>org.apache.maven.plugins</groupId>
424 <artifactId>maven-dependency-plugin</artifactId>
425 <versionRange>[2.8,)</versionRange>
427 <goal>build-classpath</goal>
429 </pluginExecutionFilter>
435 </lifecycleMappingMetadata>
447 <groupId>org.apache.maven.plugins</groupId>
448 <artifactId>maven-surefire-report-plugin</artifactId>
449 <version>${surefire.version}</version>
452 <id>integration-tests</id>
454 <report>report-only</report>
457 <outputName>failsafe-report</outputName>
459 <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
460 </reportsDirectories>