Revert "HBASE-24813 ReplicationSource should clear buffer usage on Replicatio… (...
[hbase.git] / hbase-it / pom.xml
blobf508ffd08b36512a615ed22b2e07316675a7dafb
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       <testResource>
54         <directory>src/test/resources</directory>
55       </testResource>
56     </testResources>
57     <pluginManagement>
58       <plugins>
59         <!-- Make a jar and put the sources in the jar -->
60         <plugin>
61           <groupId>org.apache.maven.plugins</groupId>
62           <artifactId>maven-source-plugin</artifactId>
63         </plugin>
64       <plugin>
65         <!--Make it so assembly:single does nothing in here-->
66         <artifactId>maven-assembly-plugin</artifactId>
67         <configuration>
68           <skipAssembly>true</skipAssembly>
69         </configuration>
70       </plugin>
71         <plugin>
72           <groupId>org.apache.maven.plugins</groupId>
73           <artifactId>maven-failsafe-plugin</artifactId>
74           <version>${surefire.version}</version>
75           <dependencies>
76             <dependency>
77               <groupId>org.apache.maven.surefire</groupId>
78               <artifactId>surefire-junit4</artifactId>
79               <version>${surefire.version}</version>
80             </dependency>
81           </dependencies>
82           <configuration>
83             <includes>
84               <include>${integrationtest.include}</include>
85             </includes>
86             <excludes>
87               <exclude>${unittest.include}</exclude>
88               <exclude>**/*$*</exclude>
89             </excludes>
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>
98           </configuration>
99           <executions>
100             <execution>
101               <id>integration-test</id>
102               <phase>integration-test</phase>
103               <goals>
104                 <goal>integration-test</goal>
105               </goals>
106             </execution>
107             <execution>
108               <id>verify</id>
109               <phase>verify</phase>
110               <goals>
111                 <goal>verify</goal>
112               </goals>
113             </execution>
114           </executions>
115         </plugin>
116       </plugins>
117     </pluginManagement>
119     <plugins>
120       <!--  Run integration tests with mvn verify -->
121       <plugin>
122         <groupId>org.apache.maven.plugins</groupId>
123         <artifactId>maven-failsafe-plugin</artifactId>
124           <configuration>
125             <skip>false</skip>
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>
133           </configuration>
134       </plugin>
135       <plugin>
136         <groupId>net.revelc.code</groupId>
137         <artifactId>warbucks-maven-plugin</artifactId>
138       </plugin>
139     </plugins>
140   </build>
142   <dependencies>
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.-->
148     <dependency>
149       <groupId>javax.ws.rs</groupId>
150       <artifactId>javax.ws.rs-api</artifactId>
151       <scope>test</scope>
152     </dependency>
153         <!-- Intra-project dependencies -->
154     <dependency>
155       <groupId>org.apache.hbase</groupId>
156       <artifactId>hbase-annotations</artifactId>
157       <type>test-jar</type>
158       <scope>test</scope>
159     </dependency>
160     <dependency>
161       <groupId>org.apache.hbase</groupId>
162       <artifactId>hbase-logging</artifactId>
163       <type>test-jar</type>
164       <scope>test</scope>
165     </dependency>
166     <dependency>
167       <groupId>org.apache.hbase</groupId>
168       <artifactId>hbase-common</artifactId>
169       <type>jar</type>
170     </dependency>
171     <dependency>
172       <groupId>org.apache.hbase</groupId>
173       <artifactId>hbase-protocol-shaded</artifactId>
174     </dependency>
175     <dependency>
176       <groupId>org.apache.hbase</groupId>
177       <artifactId>hbase-client</artifactId>
178     </dependency>
179     <dependency>
180       <groupId>org.apache.hbase</groupId>
181       <artifactId>hbase-mapreduce</artifactId>
182     </dependency>
183     <dependency>
184       <groupId>org.apache.hbase</groupId>
185       <artifactId>hbase-mapreduce</artifactId>
186       <type>test-jar</type>
187       <scope>test</scope>
188     </dependency>
189     <dependency>
190       <groupId>org.apache.hbase</groupId>
191       <artifactId>hbase-server</artifactId>
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     <!-- 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       <groupId>org.slf4j</groupId>
243       <artifactId>jcl-over-slf4j</artifactId>
244       <scope>test</scope>
245     </dependency>
246     <dependency>
247       <groupId>org.slf4j</groupId>
248       <artifactId>jul-to-slf4j</artifactId>
249       <scope>test</scope>
250     </dependency>
251     <dependency>
252       <groupId>org.slf4j</groupId>
253       <artifactId>slf4j-log4j12</artifactId>
254       <scope>test</scope>
255     </dependency>
256     <dependency>
257       <groupId>log4j</groupId>
258       <artifactId>log4j</artifactId>
259       <scope>test</scope>
260     </dependency>
261     <dependency>
262       <artifactId>javax.servlet-api</artifactId>
263       <groupId>javax.servlet</groupId>
264       <scope>test</scope>
265     </dependency>
266     <dependency>
267       <groupId>junit</groupId>
268       <artifactId>junit</artifactId>
269       <scope>test</scope>
270     </dependency>
271     <dependency>
272       <groupId>org.hamcrest</groupId>
273       <artifactId>hamcrest-core</artifactId>
274       <scope>test</scope>
275     </dependency>
276     <dependency>
277       <groupId>org.hamcrest</groupId>
278       <artifactId>hamcrest-library</artifactId>
279       <scope>test</scope>
280     </dependency>
281     <dependency>
282       <groupId>org.mockito</groupId>
283       <artifactId>mockito-core</artifactId>
284       <scope>test</scope>
285     </dependency>
286   </dependencies>
288   <profiles>
289     <!-- Skip the tests in this module -->
290     <profile>
291       <id>skipIntegrationTests</id>
292       <activation>
293         <property>
294           <name>skipIntegrationTests</name>
295         </property>
296       </activation>
297       <properties>
298         <skipTests>true</skipTests>
299       </properties>
300     </profile>
301     <profile>
302       <id>build-with-jdk11</id>
303       <activation>
304         <jdk>[1.11,)</jdk>
305       </activation>
306       <dependencies>
307         <dependency>
308           <groupId>com.sun.xml.ws</groupId>
309           <artifactId>jaxws-ri</artifactId>
310           <type>pom</type>
311         </dependency>
312       </dependencies>
313     </profile>
314     <!-- Profile for building against Hadoop 3.0.0. Activate by default -->
315     <profile>
316       <id>hadoop-3.0</id>
317       <activation>
318         <property><name>!hadoop.profile</name></property>
319       </activation>
320       <properties>
321         <hadoop.version>${hadoop-three.version}</hadoop.version>
322       </properties>
323       <dependencies>
324             <dependency>
325           <groupId>org.apache.hadoop</groupId>
326           <artifactId>hadoop-common</artifactId>
327         </dependency>
328         <dependency>
329           <groupId>org.apache.hadoop</groupId>
330           <artifactId>hadoop-minicluster</artifactId>
331           <exclusions>
332             <exclusion>
333               <groupId>javax.xml.bind</groupId>
334               <artifactId>jaxb-api</artifactId>
335             </exclusion>
336             <exclusion>
337               <groupId>javax.ws.rs</groupId>
338               <artifactId>jsr311-api</artifactId>
339             </exclusion>
340           </exclusions>
341         </dependency>
342         <dependency>
343           <groupId>org.apache.hadoop</groupId>
344           <artifactId>hadoop-minikdc</artifactId>
345         </dependency>
346       </dependencies>
347       <build>
348         <plugins>
349           <plugin>
350             <artifactId>maven-dependency-plugin</artifactId>
351             <executions>
352               <execution>
353                 <id>create-mrapp-generated-classpath</id>
354                 <phase>generate-test-resources</phase>
355                 <goals>
356                   <goal>build-classpath</goal>
357                 </goals>
358                 <configuration>
359                   <!-- needed to run the unit test for DS to generate
360                   the required classpath that is required in the env
361                   of the launch container in the mini mr/yarn cluster
362                   -->
363                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
364                 </configuration>
365               </execution>
366             </executions>
367           </plugin>
368         </plugins>
369       </build>
370     </profile>
371     <profile>
372       <id>eclipse-specific</id>
373       <activation>
374         <property>
375           <name>m2e.version</name>
376         </property>
377       </activation>
378       <build>
379         <pluginManagement>
380           <plugins>
381             <!--This plugin's configuration is used to store Eclipse m2e settings
382                  only. It has no influence on the Maven build itself.-->
383             <plugin>
384               <groupId>org.eclipse.m2e</groupId>
385               <artifactId>lifecycle-mapping</artifactId>
386               <configuration>
387                 <lifecycleMappingMetadata>
388                   <pluginExecutions>
389                     <pluginExecution>
390                       <pluginExecutionFilter>
391                         <groupId>org.apache.maven.plugins</groupId>
392                         <artifactId>maven-dependency-plugin</artifactId>
393                         <versionRange>[2.8,)</versionRange>
394                         <goals>
395                           <goal>build-classpath</goal>
396                         </goals>
397                       </pluginExecutionFilter>
398                       <action>
399                         <ignore></ignore>
400                       </action>
401                     </pluginExecution>
402                   </pluginExecutions>
403                 </lifecycleMappingMetadata>
404               </configuration>
405             </plugin>
406           </plugins>
407         </pluginManagement>
408       </build>
409     </profile>
410   </profiles>
412   <reporting>
413     <plugins>
414     <plugin>
415       <groupId>org.apache.maven.plugins</groupId>
416       <artifactId>maven-surefire-report-plugin</artifactId>
417       <version>${surefire.version}</version>
418       <reportSets>
419         <reportSet>
420           <id>integration-tests</id>
421           <reports>
422             <report>report-only</report>
423           </reports>
424           <configuration>
425             <outputName>failsafe-report</outputName>
426             <reportsDirectories>
427               <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
428             </reportsDirectories>
429           </configuration>
430         </reportSet>
431       </reportSets>
432     </plugin>
433   </plugins>
434   </reporting>
436 </project>