Revert "HBASE-21874 Bucket cache on Persistent memory"
[hbase.git] / hbase-it / pom.xml
blob956b87e05c752d42f55d50fc7dc50992fcbd6768
1 <?xml version="1.0"?>
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">
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         <!--This plugin's configuration is used to store Eclipse m2e settings
114              only. It has no influence on the Maven build itself.-->
115         <plugin>
116           <groupId>org.eclipse.m2e</groupId>
117           <artifactId>lifecycle-mapping</artifactId>
118           <configuration>
119             <lifecycleMappingMetadata>
120               <pluginExecutions>
121                 <pluginExecution>
122                   <pluginExecutionFilter>
123                     <groupId>org.apache.maven.plugins</groupId>
124                     <artifactId>maven-dependency-plugin</artifactId>
125                     <versionRange>[2.8,)</versionRange>
126                     <goals>
127                       <goal>build-classpath</goal>
128                     </goals>
129                   </pluginExecutionFilter>
130                   <action>
131                     <ignore></ignore>
132                   </action>
133                 </pluginExecution>
134               </pluginExecutions>
135             </lifecycleMappingMetadata>
136           </configuration>
137         </plugin>
138       </plugins>
139     </pluginManagement>
141     <plugins>
142       <!--  Run integration tests with mvn verify -->
143       <plugin>
144         <groupId>org.apache.maven.plugins</groupId>
145         <artifactId>maven-failsafe-plugin</artifactId>
146           <configuration>
147             <skip>false</skip>
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>
155           </configuration>
156       </plugin>
157       <plugin>
158         <groupId>net.revelc.code</groupId>
159         <artifactId>warbucks-maven-plugin</artifactId>
160       </plugin>
161     </plugins>
162   </build>
164   <dependencies>
165         <!-- Intra-project dependencies -->
166     <dependency>
167       <groupId>org.apache.hbase</groupId>
168       <artifactId>hbase-annotations</artifactId>
169       <type>test-jar</type>
170       <scope>test</scope>
171     </dependency>
172     <dependency>
173       <groupId>org.apache.hbase</groupId>
174       <artifactId>hbase-common</artifactId>
175       <type>jar</type>
176     </dependency>
177     <dependency>
178       <groupId>org.apache.hbase</groupId>
179       <artifactId>hbase-protocol</artifactId>
180     </dependency>
181     <dependency>
182       <groupId>org.apache.hbase</groupId>
183       <artifactId>hbase-protocol-shaded</artifactId>
184     </dependency>
185     <dependency>
186       <groupId>org.apache.hbase</groupId>
187       <artifactId>hbase-client</artifactId>
188     </dependency>
189     <dependency>
190       <groupId>org.apache.hbase</groupId>
191       <artifactId>hbase-mapreduce</artifactId>
192     </dependency>
193     <dependency>
194       <groupId>org.apache.hbase</groupId>
195       <artifactId>hbase-mapreduce</artifactId>
196       <type>test-jar</type>
197       <scope>test</scope>
198     </dependency>
199     <dependency>
200       <groupId>org.apache.hbase</groupId>
201       <artifactId>hbase-rsgroup</artifactId>
202     </dependency>
203     <dependency>
204       <groupId>org.apache.hbase</groupId>
205       <artifactId>hbase-rsgroup</artifactId>
206       <type>test-jar</type>
207       <scope>test</scope>
208     </dependency>
209     <dependency>
210       <groupId>org.apache.hbase</groupId>
211       <artifactId>hbase-server</artifactId>
212     </dependency>
213     <dependency>
214       <groupId>org.apache.hbase</groupId>
215       <artifactId>${compat.module}</artifactId>
216       <version>${project.version}</version>
217     </dependency>
218     <dependency>
219       <groupId>org.apache.hbase</groupId>
220       <artifactId>hbase-testing-util</artifactId>
221     </dependency>
222     <dependency>
223       <groupId>org.apache.hbase</groupId>
224       <artifactId>hbase-backup</artifactId>
225     </dependency>
226     <dependency>
227       <groupId>org.apache.hbase.thirdparty</groupId>
228       <artifactId>hbase-shaded-miscellaneous</artifactId>
229     </dependency>
230     <dependency>
231       <groupId>io.dropwizard.metrics</groupId>
232       <artifactId>metrics-core</artifactId>
233     </dependency>
234     <dependency>
235       <groupId>org.slf4j</groupId>
236       <artifactId>slf4j-api</artifactId>
237     </dependency>
238     <dependency>
239       <groupId>org.apache.commons</groupId>
240       <artifactId>commons-math3</artifactId>
241     </dependency>
242     <dependency>
243       <groupId>org.apache.commons</groupId>
244       <artifactId>commons-lang3</artifactId>
245     </dependency>
246     <dependency>
247       <groupId>org.apache.htrace</groupId>
248       <artifactId>htrace-core4</artifactId>
249     </dependency>
250     <dependency>
251       <groupId>javax.ws.rs</groupId>
252       <artifactId>javax.ws.rs-api</artifactId>
253       <scope>test</scope>
254     </dependency>
255     <dependency>
256       <groupId>org.glassfish.jersey.core</groupId>
257       <artifactId>jersey-client</artifactId>
258     </dependency>
259     <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
260     <dependency>
261       <groupId>io.netty</groupId>
262       <artifactId>netty</artifactId>
263       <version>${netty.hadoop.version}</version>
264       <scope>test</scope>
265     </dependency>
266     <dependency>
267       <!--For Hadoop-->
268       <groupId>log4j</groupId>
269       <artifactId>log4j</artifactId>
270     </dependency>
271     <dependency>
272       <groupId>junit</groupId>
273       <artifactId>junit</artifactId>
274       <scope>test</scope>
275     </dependency>
276     <dependency>
277       <groupId>org.mockito</groupId>
278       <artifactId>mockito-core</artifactId>
279       <scope>test</scope>
280     </dependency>
281   </dependencies>
283   <profiles>
284     <!-- Skip the tests in this module -->
285     <profile>
286       <id>skipIntegrationTests</id>
287       <activation>
288         <property>
289           <name>skipIntegrationTests</name>
290         </property>
291       </activation>
292       <properties>
293         <skipTests>true</skipTests>
294       </properties>
295     </profile>
296     <profile>
297       <id>build-with-jdk11</id>
298       <activation>
299         <jdk>[1.11,)</jdk>
300       </activation>
301       <dependencies>
302         <dependency>
303           <groupId>com.sun.xml.ws</groupId>
304           <artifactId>jaxws-ri</artifactId>
305           <type>pom</type>
306         </dependency>
307       </dependencies>
308     </profile>
309     <!-- profile for building against Hadoop 2.x.  This is the default -->
310     <profile>
311       <id>hadoop-2.0</id>
312       <activation>
313         <property>
314             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
315             <!--h2--><name>!hadoop.profile</name>
316         </property>
317       </activation>
318       <dependencies>
319         <dependency>
320           <groupId>org.apache.hadoop</groupId>
321           <artifactId>hadoop-mapreduce-client-core</artifactId>
322           <exclusions>
323             <exclusion>
324               <groupId>com.google.guava</groupId>
325               <artifactId>guava</artifactId>
326             </exclusion>
327           </exclusions>
328         </dependency>
329         <dependency>
330           <groupId>org.apache.hadoop</groupId>
331           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
332           <type>test-jar</type>
333           <scope>test</scope>
334           <exclusions>
335             <exclusion>
336               <groupId>com.google.guava</groupId>
337               <artifactId>guava</artifactId>
338             </exclusion>
339           </exclusions>
340         </dependency>
341         <dependency>
342           <groupId>org.apache.hadoop</groupId>
343           <artifactId>hadoop-common</artifactId>
344         </dependency>
345         <dependency>
346           <groupId>org.apache.hadoop</groupId>
347           <artifactId>hadoop-minikdc</artifactId>
348         </dependency>
349       </dependencies>
350       <build>
351         <plugins>
352           <plugin>
353             <artifactId>maven-dependency-plugin</artifactId>
354             <executions>
355               <execution>
356                 <id>create-mrapp-generated-classpath</id>
357                 <phase>generate-test-resources</phase>
358                 <goals>
359                   <goal>build-classpath</goal>
360                 </goals>
361                 <configuration>
362                   <!-- needed to run the unit test for DS to generate
363                   the required classpath that is required in the env
364                   of the launch container in the mini mr/yarn cluster
365                   -->
366                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
367                 </configuration>
368               </execution>
369             </executions>
370           </plugin>
371         </plugins>
372       </build>
373     </profile>
375     <!--
376       profile for building against Hadoop 3.0.x. Activate using:
377        mvn -Dhadoop.profile=3.0
378     -->
379     <profile>
380       <id>hadoop-3.0</id>
381       <activation>
382         <property>
383           <name>hadoop.profile</name>
384           <value>3.0</value>
385         </property>
386       </activation>
387       <properties>
388         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
389       </properties>
390       <dependencies>
391             <dependency>
392           <groupId>org.apache.hadoop</groupId>
393           <artifactId>hadoop-common</artifactId>
394         </dependency>
395         <dependency>
396           <groupId>org.apache.hadoop</groupId>
397           <artifactId>hadoop-minicluster</artifactId>
398         </dependency>
399         <dependency>
400           <groupId>org.apache.hadoop</groupId>
401           <artifactId>hadoop-minikdc</artifactId>
402         </dependency>
403       </dependencies>
404       <build>
405         <plugins>
406           <plugin>
407             <artifactId>maven-dependency-plugin</artifactId>
408             <executions>
409               <execution>
410                 <id>create-mrapp-generated-classpath</id>
411                 <phase>generate-test-resources</phase>
412                 <goals>
413                   <goal>build-classpath</goal>
414                 </goals>
415                 <configuration>
416                   <!-- needed to run the unit test for DS to generate
417                   the required classpath that is required in the env
418                   of the launch container in the mini mr/yarn cluster
419                   -->
420                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
421                 </configuration>
422               </execution>
423             </executions>
424           </plugin>
425         </plugins>
426       </build>
427     </profile>
428   </profiles>
430   <reporting>
431     <plugins>
432     <plugin>
433       <groupId>org.apache.maven.plugins</groupId>
434       <artifactId>maven-surefire-report-plugin</artifactId>
435       <version>${surefire.version}</version>
436       <reportSets>
437         <reportSet>
438           <id>integration-tests</id>
439           <reports>
440             <report>report-only</report>
441           </reports>
442           <configuration>
443             <outputName>failsafe-report</outputName>
444             <reportsDirectories>
445               <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
446             </reportsDirectories>
447           </configuration>
448         </reportSet>
449       </reportSets>
450     </plugin>
451   </plugins>
452   </reporting>
454 </project>