HBASE-23909 : list_regions raise correct error if it is being splitted/merged/transit...
[hbase.git] / hbase-it / pom.xml
blob6b173f0ffd67eed266167a2f617cc0d4246c1d1b
1 <?xml version="1.0"?>
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">
3 <!--
4 /**
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
12  *
13  *     http://www.apache.org/licenses/LICENSE-2.0
14  *
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.
20  */
21 -->
22   <modelVersion>4.0.0</modelVersion>
23   <parent>
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>
28   </parent>
30   <artifactId>hbase-it</artifactId>
31   <name>Apache HBase - Integration Tests</name>
32   <description>Integration and System tests for HBase</description>
34   <properties>
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 -->
41   </properties>
43   <build>
44     <testResources>
45       <testResource>
46          <!-- We depend on hbase-server test resources -->
47         <directory>../hbase-server/src/test/resources</directory>
48         <excludes>
49           <exclude>META-INF/NOTICE</exclude>
50           <exclude>META-INF/LICENSE</exclude>
51         </excludes>
52       </testResource>
53     </testResources>
54     <pluginManagement>
55       <plugins>
56         <!-- Make a jar and put the sources in the jar -->
57         <plugin>
58           <groupId>org.apache.maven.plugins</groupId>
59           <artifactId>maven-source-plugin</artifactId>
60         </plugin>
61       <plugin>
62         <!--Make it so assembly:single does nothing in here-->
63         <artifactId>maven-assembly-plugin</artifactId>
64         <configuration>
65           <skipAssembly>true</skipAssembly>
66         </configuration>
67       </plugin>
68         <plugin>
69           <groupId>org.apache.maven.plugins</groupId>
70           <artifactId>maven-failsafe-plugin</artifactId>
71           <version>${surefire.version}</version>
72           <dependencies>
73             <dependency>
74               <groupId>org.apache.maven.surefire</groupId>
75               <artifactId>surefire-junit4</artifactId>
76               <version>${surefire.version}</version>
77             </dependency>
78           </dependencies>
79           <configuration>
80             <includes>
81               <include>${integrationtest.include}</include>
82             </includes>
83             <excludes>
84               <exclude>${unittest.include}</exclude>
85               <exclude>**/*$*</exclude>
86             </excludes>
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>
95           </configuration>
96           <executions>
97             <execution>
98               <id>integration-test</id>
99               <phase>integration-test</phase>
100               <goals>
101                 <goal>integration-test</goal>
102               </goals>
103             </execution>
104             <execution>
105               <id>verify</id>
106               <phase>verify</phase>
107               <goals>
108                 <goal>verify</goal>
109               </goals>
110             </execution>
111           </executions>
112         </plugin>
113       </plugins>
114     </pluginManagement>
116     <plugins>
117       <!--  Run integration tests with mvn verify -->
118       <plugin>
119         <groupId>org.apache.maven.plugins</groupId>
120         <artifactId>maven-failsafe-plugin</artifactId>
121           <configuration>
122             <skip>false</skip>
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>
130           </configuration>
131       </plugin>
132       <plugin>
133         <groupId>net.revelc.code</groupId>
134         <artifactId>warbucks-maven-plugin</artifactId>
135       </plugin>
136     </plugins>
137   </build>
139   <dependencies>
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.-->
145     <dependency>
146       <groupId>javax.ws.rs</groupId>
147       <artifactId>javax.ws.rs-api</artifactId>
148       <scope>test</scope>
149     </dependency>
150         <!-- Intra-project dependencies -->
151     <dependency>
152       <groupId>org.apache.hbase</groupId>
153       <artifactId>hbase-annotations</artifactId>
154       <type>test-jar</type>
155       <scope>test</scope>
156     </dependency>
157     <dependency>
158       <groupId>org.apache.hbase</groupId>
159       <artifactId>hbase-common</artifactId>
160       <type>jar</type>
161     </dependency>
162     <dependency>
163       <groupId>org.apache.hbase</groupId>
164       <artifactId>hbase-protocol</artifactId>
165     </dependency>
166     <dependency>
167       <groupId>org.apache.hbase</groupId>
168       <artifactId>hbase-protocol-shaded</artifactId>
169     </dependency>
170     <dependency>
171       <groupId>org.apache.hbase</groupId>
172       <artifactId>hbase-client</artifactId>
173     </dependency>
174     <dependency>
175       <groupId>org.apache.hbase</groupId>
176       <artifactId>hbase-mapreduce</artifactId>
177     </dependency>
178     <dependency>
179       <groupId>org.apache.hbase</groupId>
180       <artifactId>hbase-mapreduce</artifactId>
181       <type>test-jar</type>
182       <scope>test</scope>
183     </dependency>
184     <dependency>
185       <groupId>org.apache.hbase</groupId>
186       <artifactId>hbase-server</artifactId>
187     </dependency>
188     <dependency>
189       <groupId>org.apache.hbase</groupId>
190       <artifactId>${compat.module}</artifactId>
191       <version>${project.version}</version>
192     </dependency>
193     <dependency>
194       <groupId>org.apache.hbase</groupId>
195       <artifactId>hbase-testing-util</artifactId>
196       <exclusions>
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-->
200         <exclusion>
201          <groupId>com.sun.jersey</groupId>
202          <artifactId>jersey-core</artifactId>
203         </exclusion>
204       </exclusions>
205     </dependency>
206     <dependency>
207       <groupId>org.apache.hbase</groupId>
208       <artifactId>hbase-backup</artifactId>
209     </dependency>
210     <dependency>
211       <groupId>org.apache.hbase.thirdparty</groupId>
212       <artifactId>hbase-shaded-miscellaneous</artifactId>
213     </dependency>
214     <dependency>
215       <groupId>io.dropwizard.metrics</groupId>
216       <artifactId>metrics-core</artifactId>
217     </dependency>
218     <dependency>
219       <groupId>org.slf4j</groupId>
220       <artifactId>slf4j-api</artifactId>
221     </dependency>
222     <dependency>
223       <groupId>org.apache.commons</groupId>
224       <artifactId>commons-math3</artifactId>
225     </dependency>
226     <dependency>
227       <groupId>org.apache.commons</groupId>
228       <artifactId>commons-lang3</artifactId>
229     </dependency>
230     <dependency>
231       <groupId>org.apache.htrace</groupId>
232       <artifactId>htrace-core4</artifactId>
233     </dependency>
234     <dependency>
235       <groupId>org.glassfish.jersey.core</groupId>
236       <artifactId>jersey-client</artifactId>
237     </dependency>
238     <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
239     <dependency>
240       <groupId>io.netty</groupId>
241       <artifactId>netty</artifactId>
242       <version>${netty.hadoop.version}</version>
243       <scope>test</scope>
244     </dependency>
245     <dependency>
246       <!--For Hadoop-->
247       <groupId>log4j</groupId>
248       <artifactId>log4j</artifactId>
249     </dependency>
250     <dependency>
251       <groupId>junit</groupId>
252       <artifactId>junit</artifactId>
253       <scope>compile</scope>
254     </dependency>
255     <dependency>
256       <groupId>org.mockito</groupId>
257       <artifactId>mockito-core</artifactId>
258       <scope>test</scope>
259     </dependency>
260   </dependencies>
262   <profiles>
263     <!-- Skip the tests in this module -->
264     <profile>
265       <id>skipIntegrationTests</id>
266       <activation>
267         <property>
268           <name>skipIntegrationTests</name>
269         </property>
270       </activation>
271       <properties>
272         <skipTests>true</skipTests>
273       </properties>
274     </profile>
275     <profile>
276       <id>build-with-jdk11</id>
277       <activation>
278         <jdk>[1.11,)</jdk>
279       </activation>
280       <dependencies>
281         <dependency>
282           <groupId>com.sun.xml.ws</groupId>
283           <artifactId>jaxws-ri</artifactId>
284           <type>pom</type>
285         </dependency>
286       </dependencies>
287     </profile>
288     <!-- profile for building against Hadoop 2.x.  This is the default -->
289     <profile>
290       <id>hadoop-2.0</id>
291       <activation>
292         <property>
293             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
294             <!--h2--><name>!hadoop.profile</name>
295         </property>
296       </activation>
297       <dependencies>
298         <dependency>
299           <groupId>org.apache.hadoop</groupId>
300           <artifactId>hadoop-mapreduce-client-core</artifactId>
301           <exclusions>
302             <exclusion>
303               <groupId>com.google.guava</groupId>
304               <artifactId>guava</artifactId>
305             </exclusion>
306           </exclusions>
307         </dependency>
308         <dependency>
309           <groupId>org.apache.hadoop</groupId>
310           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
311           <type>test-jar</type>
312           <scope>test</scope>
313           <exclusions>
314             <exclusion>
315               <groupId>com.google.guava</groupId>
316               <artifactId>guava</artifactId>
317             </exclusion>
318           </exclusions>
319         </dependency>
320         <dependency>
321           <groupId>org.apache.hadoop</groupId>
322           <artifactId>hadoop-common</artifactId>
323         </dependency>
324         <dependency>
325           <groupId>org.apache.hadoop</groupId>
326           <artifactId>hadoop-minikdc</artifactId>
327         </dependency>
328       </dependencies>
329       <build>
330         <plugins>
331           <plugin>
332             <artifactId>maven-dependency-plugin</artifactId>
333             <executions>
334               <execution>
335                 <id>create-mrapp-generated-classpath</id>
336                 <phase>generate-test-resources</phase>
337                 <goals>
338                   <goal>build-classpath</goal>
339                 </goals>
340                 <configuration>
341                   <!-- needed to run the unit test for DS to generate
342                   the required classpath that is required in the env
343                   of the launch container in the mini mr/yarn cluster
344                   -->
345                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
346                 </configuration>
347               </execution>
348             </executions>
349           </plugin>
350         </plugins>
351       </build>
352     </profile>
354     <!--
355       profile for building against Hadoop 3.0.x. Activate using:
356        mvn -Dhadoop.profile=3.0
357     -->
358     <profile>
359       <id>hadoop-3.0</id>
360       <activation>
361         <property>
362           <name>hadoop.profile</name>
363           <value>3.0</value>
364         </property>
365       </activation>
366       <properties>
367         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
368       </properties>
369       <dependencies>
370             <dependency>
371           <groupId>org.apache.hadoop</groupId>
372           <artifactId>hadoop-common</artifactId>
373         </dependency>
374         <dependency>
375           <groupId>org.apache.hadoop</groupId>
376           <artifactId>hadoop-minicluster</artifactId>
377         </dependency>
378         <dependency>
379           <groupId>org.apache.hadoop</groupId>
380           <artifactId>hadoop-minikdc</artifactId>
381         </dependency>
382       </dependencies>
383       <build>
384         <plugins>
385           <plugin>
386             <artifactId>maven-dependency-plugin</artifactId>
387             <executions>
388               <execution>
389                 <id>create-mrapp-generated-classpath</id>
390                 <phase>generate-test-resources</phase>
391                 <goals>
392                   <goal>build-classpath</goal>
393                 </goals>
394                 <configuration>
395                   <!-- needed to run the unit test for DS to generate
396                   the required classpath that is required in the env
397                   of the launch container in the mini mr/yarn cluster
398                   -->
399                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
400                 </configuration>
401               </execution>
402             </executions>
403           </plugin>
404         </plugins>
405       </build>
406     </profile>
407     <profile>
408       <id>eclipse-specific</id>
409       <activation>
410         <property>
411           <name>m2e.version</name>
412         </property>
413       </activation>
414       <build>
415         <pluginManagement>
416           <plugins>
417             <!--This plugin's configuration is used to store Eclipse m2e settings
418                  only. It has no influence on the Maven build itself.-->
419             <plugin>
420               <groupId>org.eclipse.m2e</groupId>
421               <artifactId>lifecycle-mapping</artifactId>
422               <configuration>
423                 <lifecycleMappingMetadata>
424                   <pluginExecutions>
425                     <pluginExecution>
426                       <pluginExecutionFilter>
427                         <groupId>org.apache.maven.plugins</groupId>
428                         <artifactId>maven-dependency-plugin</artifactId>
429                         <versionRange>[2.8,)</versionRange>
430                         <goals>
431                           <goal>build-classpath</goal>
432                         </goals>
433                       </pluginExecutionFilter>
434                       <action>
435                         <ignore></ignore>
436                       </action>
437                     </pluginExecution>
438                   </pluginExecutions>
439                 </lifecycleMappingMetadata>
440               </configuration>
441             </plugin>
442           </plugins>
443         </pluginManagement>
444       </build>
445     </profile>
446   </profiles>
448   <reporting>
449     <plugins>
450     <plugin>
451       <groupId>org.apache.maven.plugins</groupId>
452       <artifactId>maven-surefire-report-plugin</artifactId>
453       <version>${surefire.version}</version>
454       <reportSets>
455         <reportSet>
456           <id>integration-tests</id>
457           <reports>
458             <report>report-only</report>
459           </reports>
460           <configuration>
461             <outputName>failsafe-report</outputName>
462             <reportsDirectories>
463               <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
464             </reportsDirectories>
465           </configuration>
466         </reportSet>
467       </reportSets>
468     </plugin>
469   </plugins>
470   </reporting>
472 </project>