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 <!--This one is upfront to get in front of
166 any dependency that pulls in jersey-core.
167 Jersey-core has implemented version 1
168 Interfaces of what is in this dependency
169 which does version 2.-->
171 <groupId>javax.ws.rs</groupId>
172 <artifactId>javax.ws.rs-api</artifactId>
175 <!-- Intra-project dependencies -->
177 <groupId>org.apache.hbase</groupId>
178 <artifactId>hbase-annotations</artifactId>
179 <type>test-jar</type>
183 <groupId>org.apache.hbase</groupId>
184 <artifactId>hbase-common</artifactId>
188 <groupId>org.apache.hbase</groupId>
189 <artifactId>hbase-protocol</artifactId>
192 <groupId>org.apache.hbase</groupId>
193 <artifactId>hbase-protocol-shaded</artifactId>
196 <groupId>org.apache.hbase</groupId>
197 <artifactId>hbase-client</artifactId>
200 <groupId>org.apache.hbase</groupId>
201 <artifactId>hbase-mapreduce</artifactId>
204 <groupId>org.apache.hbase</groupId>
205 <artifactId>hbase-mapreduce</artifactId>
206 <type>test-jar</type>
210 <groupId>org.apache.hbase</groupId>
211 <artifactId>hbase-rsgroup</artifactId>
214 <groupId>org.apache.hbase</groupId>
215 <artifactId>hbase-rsgroup</artifactId>
216 <type>test-jar</type>
220 <groupId>org.apache.hbase</groupId>
221 <artifactId>hbase-server</artifactId>
224 <groupId>org.apache.hbase</groupId>
225 <artifactId>${compat.module}</artifactId>
226 <version>${project.version}</version>
229 <groupId>org.apache.hbase</groupId>
230 <artifactId>hbase-testing-util</artifactId>
232 <!--This dependency pulls in hadoop-minicluster
233 which pulls in the below. It messes up
234 this build at assembly time. See HBASE-22029-->
236 <groupId>com.sun.jersey</groupId>
237 <artifactId>jersey-core</artifactId>
242 <groupId>org.apache.hbase</groupId>
243 <artifactId>hbase-backup</artifactId>
246 <groupId>org.apache.hbase.thirdparty</groupId>
247 <artifactId>hbase-shaded-miscellaneous</artifactId>
250 <groupId>io.dropwizard.metrics</groupId>
251 <artifactId>metrics-core</artifactId>
254 <groupId>org.slf4j</groupId>
255 <artifactId>slf4j-api</artifactId>
258 <groupId>org.apache.commons</groupId>
259 <artifactId>commons-math3</artifactId>
262 <groupId>org.apache.commons</groupId>
263 <artifactId>commons-lang3</artifactId>
266 <groupId>org.apache.htrace</groupId>
267 <artifactId>htrace-core4</artifactId>
270 <groupId>org.glassfish.jersey.core</groupId>
271 <artifactId>jersey-client</artifactId>
273 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
275 <groupId>io.netty</groupId>
276 <artifactId>netty</artifactId>
277 <version>${netty.hadoop.version}</version>
282 <groupId>log4j</groupId>
283 <artifactId>log4j</artifactId>
286 <groupId>junit</groupId>
287 <artifactId>junit</artifactId>
291 <groupId>org.mockito</groupId>
292 <artifactId>mockito-core</artifactId>
298 <!-- Skip the tests in this module -->
300 <id>skipIntegrationTests</id>
303 <name>skipIntegrationTests</name>
307 <skipTests>true</skipTests>
311 <id>build-with-jdk11</id>
317 <groupId>com.sun.xml.ws</groupId>
318 <artifactId>jaxws-ri</artifactId>
323 <!-- profile for building against Hadoop 2.x. This is the default -->
328 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
329 <!--h2--><name>!hadoop.profile</name>
334 <groupId>org.apache.hadoop</groupId>
335 <artifactId>hadoop-mapreduce-client-core</artifactId>
338 <groupId>com.google.guava</groupId>
339 <artifactId>guava</artifactId>
344 <groupId>org.apache.hadoop</groupId>
345 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
346 <type>test-jar</type>
350 <groupId>com.google.guava</groupId>
351 <artifactId>guava</artifactId>
356 <groupId>org.apache.hadoop</groupId>
357 <artifactId>hadoop-common</artifactId>
360 <groupId>org.apache.hadoop</groupId>
361 <artifactId>hadoop-minikdc</artifactId>
367 <artifactId>maven-dependency-plugin</artifactId>
370 <id>create-mrapp-generated-classpath</id>
371 <phase>generate-test-resources</phase>
373 <goal>build-classpath</goal>
376 <!-- needed to run the unit test for DS to generate
377 the required classpath that is required in the env
378 of the launch container in the mini mr/yarn cluster
380 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
390 profile for building against Hadoop 3.0.x. Activate using:
391 mvn -Dhadoop.profile=3.0
397 <name>hadoop.profile</name>
402 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
406 <groupId>org.apache.hadoop</groupId>
407 <artifactId>hadoop-common</artifactId>
410 <groupId>org.apache.hadoop</groupId>
411 <artifactId>hadoop-minicluster</artifactId>
414 <groupId>org.apache.hadoop</groupId>
415 <artifactId>hadoop-minikdc</artifactId>
421 <artifactId>maven-dependency-plugin</artifactId>
424 <id>create-mrapp-generated-classpath</id>
425 <phase>generate-test-resources</phase>
427 <goal>build-classpath</goal>
430 <!-- needed to run the unit test for DS to generate
431 the required classpath that is required in the env
432 of the launch container in the mini mr/yarn cluster
434 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
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>