HBASE-24163 MOB compactor implementations should use format specifiers when calling...
[hbase.git] / hbase-it / pom.xml
blob460879d214bdb5e1dee170033aa1097109b7bdbc
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-shaded</artifactId>
165     </dependency>
166     <dependency>
167       <groupId>org.apache.hbase</groupId>
168       <artifactId>hbase-client</artifactId>
169     </dependency>
170     <dependency>
171       <groupId>org.apache.hbase</groupId>
172       <artifactId>hbase-mapreduce</artifactId>
173     </dependency>
174     <dependency>
175       <groupId>org.apache.hbase</groupId>
176       <artifactId>hbase-mapreduce</artifactId>
177       <type>test-jar</type>
178       <scope>test</scope>
179     </dependency>
180     <dependency>
181       <groupId>org.apache.hbase</groupId>
182       <artifactId>hbase-server</artifactId>
183     </dependency>
184     <dependency>
185       <groupId>org.apache.hbase</groupId>
186       <artifactId>${compat.module}</artifactId>
187       <version>${project.version}</version>
188     </dependency>
189     <dependency>
190       <groupId>org.apache.hbase</groupId>
191       <artifactId>hbase-testing-util</artifactId>
192       <exclusions>
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-->
196         <exclusion>
197          <groupId>com.sun.jersey</groupId>
198          <artifactId>jersey-core</artifactId>
199         </exclusion>
200       </exclusions>
201     </dependency>
202     <dependency>
203       <groupId>org.apache.hbase</groupId>
204       <artifactId>hbase-backup</artifactId>
205     </dependency>
206     <dependency>
207       <groupId>org.apache.hbase.thirdparty</groupId>
208       <artifactId>hbase-shaded-miscellaneous</artifactId>
209     </dependency>
210     <dependency>
211       <groupId>io.dropwizard.metrics</groupId>
212       <artifactId>metrics-core</artifactId>
213     </dependency>
214     <dependency>
215       <groupId>org.slf4j</groupId>
216       <artifactId>slf4j-api</artifactId>
217     </dependency>
218     <dependency>
219       <groupId>org.apache.commons</groupId>
220       <artifactId>commons-math3</artifactId>
221     </dependency>
222     <dependency>
223       <groupId>org.apache.commons</groupId>
224       <artifactId>commons-lang3</artifactId>
225     </dependency>
226     <dependency>
227       <groupId>org.apache.htrace</groupId>
228       <artifactId>htrace-core4</artifactId>
229     </dependency>
230     <dependency>
231       <groupId>org.glassfish.jersey.core</groupId>
232       <artifactId>jersey-client</artifactId>
233     </dependency>
234     <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
235     <dependency>
236       <groupId>io.netty</groupId>
237       <artifactId>netty</artifactId>
238       <version>${netty.hadoop.version}</version>
239       <scope>test</scope>
240     </dependency>
241     <dependency>
242       <!--For Hadoop-->
243       <groupId>log4j</groupId>
244       <artifactId>log4j</artifactId>
245     </dependency>
246     <dependency>
247       <groupId>junit</groupId>
248       <artifactId>junit</artifactId>
249       <scope>compile</scope>
250     </dependency>
251     <dependency>
252       <groupId>org.mockito</groupId>
253       <artifactId>mockito-core</artifactId>
254       <scope>test</scope>
255     </dependency>
256   </dependencies>
258   <profiles>
259     <!-- Skip the tests in this module -->
260     <profile>
261       <id>skipIntegrationTests</id>
262       <activation>
263         <property>
264           <name>skipIntegrationTests</name>
265         </property>
266       </activation>
267       <properties>
268         <skipTests>true</skipTests>
269       </properties>
270     </profile>
271     <profile>
272       <id>build-with-jdk11</id>
273       <activation>
274         <jdk>[1.11,)</jdk>
275       </activation>
276       <dependencies>
277         <dependency>
278           <groupId>com.sun.xml.ws</groupId>
279           <artifactId>jaxws-ri</artifactId>
280           <type>pom</type>
281         </dependency>
282       </dependencies>
283     </profile>
284     <!-- profile for building against Hadoop 2.x.  This is the default -->
285     <profile>
286       <id>hadoop-2.0</id>
287       <activation>
288         <property>
289             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
290             <!--h2--><name>!hadoop.profile</name>
291         </property>
292       </activation>
293       <dependencies>
294         <dependency>
295           <groupId>org.apache.hadoop</groupId>
296           <artifactId>hadoop-mapreduce-client-core</artifactId>
297           <exclusions>
298             <exclusion>
299               <groupId>com.google.guava</groupId>
300               <artifactId>guava</artifactId>
301             </exclusion>
302           </exclusions>
303         </dependency>
304         <dependency>
305           <groupId>org.apache.hadoop</groupId>
306           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
307           <type>test-jar</type>
308           <scope>test</scope>
309           <exclusions>
310             <exclusion>
311               <groupId>com.google.guava</groupId>
312               <artifactId>guava</artifactId>
313             </exclusion>
314           </exclusions>
315         </dependency>
316         <dependency>
317           <groupId>org.apache.hadoop</groupId>
318           <artifactId>hadoop-common</artifactId>
319         </dependency>
320         <dependency>
321           <groupId>org.apache.hadoop</groupId>
322           <artifactId>hadoop-minikdc</artifactId>
323         </dependency>
324       </dependencies>
325       <build>
326         <plugins>
327           <plugin>
328             <artifactId>maven-dependency-plugin</artifactId>
329             <executions>
330               <execution>
331                 <id>create-mrapp-generated-classpath</id>
332                 <phase>generate-test-resources</phase>
333                 <goals>
334                   <goal>build-classpath</goal>
335                 </goals>
336                 <configuration>
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
340                   -->
341                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
342                 </configuration>
343               </execution>
344             </executions>
345           </plugin>
346         </plugins>
347       </build>
348     </profile>
350     <!--
351       profile for building against Hadoop 3.0.x. Activate using:
352        mvn -Dhadoop.profile=3.0
353     -->
354     <profile>
355       <id>hadoop-3.0</id>
356       <activation>
357         <property>
358           <name>hadoop.profile</name>
359           <value>3.0</value>
360         </property>
361       </activation>
362       <properties>
363         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
364       </properties>
365       <dependencies>
366             <dependency>
367           <groupId>org.apache.hadoop</groupId>
368           <artifactId>hadoop-common</artifactId>
369         </dependency>
370         <dependency>
371           <groupId>org.apache.hadoop</groupId>
372           <artifactId>hadoop-minicluster</artifactId>
373         </dependency>
374         <dependency>
375           <groupId>org.apache.hadoop</groupId>
376           <artifactId>hadoop-minikdc</artifactId>
377         </dependency>
378       </dependencies>
379       <build>
380         <plugins>
381           <plugin>
382             <artifactId>maven-dependency-plugin</artifactId>
383             <executions>
384               <execution>
385                 <id>create-mrapp-generated-classpath</id>
386                 <phase>generate-test-resources</phase>
387                 <goals>
388                   <goal>build-classpath</goal>
389                 </goals>
390                 <configuration>
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
394                   -->
395                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
396                 </configuration>
397               </execution>
398             </executions>
399           </plugin>
400         </plugins>
401       </build>
402     </profile>
403     <profile>
404       <id>eclipse-specific</id>
405       <activation>
406         <property>
407           <name>m2e.version</name>
408         </property>
409       </activation>
410       <build>
411         <pluginManagement>
412           <plugins>
413             <!--This plugin's configuration is used to store Eclipse m2e settings
414                  only. It has no influence on the Maven build itself.-->
415             <plugin>
416               <groupId>org.eclipse.m2e</groupId>
417               <artifactId>lifecycle-mapping</artifactId>
418               <configuration>
419                 <lifecycleMappingMetadata>
420                   <pluginExecutions>
421                     <pluginExecution>
422                       <pluginExecutionFilter>
423                         <groupId>org.apache.maven.plugins</groupId>
424                         <artifactId>maven-dependency-plugin</artifactId>
425                         <versionRange>[2.8,)</versionRange>
426                         <goals>
427                           <goal>build-classpath</goal>
428                         </goals>
429                       </pluginExecutionFilter>
430                       <action>
431                         <ignore></ignore>
432                       </action>
433                     </pluginExecution>
434                   </pluginExecutions>
435                 </lifecycleMappingMetadata>
436               </configuration>
437             </plugin>
438           </plugins>
439         </pluginManagement>
440       </build>
441     </profile>
442   </profiles>
444   <reporting>
445     <plugins>
446     <plugin>
447       <groupId>org.apache.maven.plugins</groupId>
448       <artifactId>maven-surefire-report-plugin</artifactId>
449       <version>${surefire.version}</version>
450       <reportSets>
451         <reportSet>
452           <id>integration-tests</id>
453           <reports>
454             <report>report-only</report>
455           </reports>
456           <configuration>
457             <outputName>failsafe-report</outputName>
458             <reportsDirectories>
459               <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
460             </reportsDirectories>
461           </configuration>
462         </reportSet>
463       </reportSets>
464     </plugin>
465   </plugins>
466   </reporting>
468 </project>