HBASE-19666 TestDefaultCompactSelection test failed
[hbase.git] / hbase-it / pom.xml
blobf75024de6d3941baab75ceeb47337afa4af85ed4
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         <plugin>
57           <groupId>org.apache.maven.plugins</groupId>
58           <artifactId>maven-site-plugin</artifactId>
59           <configuration>
60             <skip>true</skip>
61           </configuration>
62         </plugin>
63         <!-- Make a jar and put the sources in the jar -->
64         <plugin>
65           <groupId>org.apache.maven.plugins</groupId>
66           <artifactId>maven-source-plugin</artifactId>
67         </plugin>
68       <plugin>
69         <!--Make it so assembly:single does nothing in here-->
70         <artifactId>maven-assembly-plugin</artifactId>
71         <configuration>
72           <skipAssembly>true</skipAssembly>
73         </configuration>
74       </plugin>
75         <plugin>
76           <groupId>org.apache.maven.plugins</groupId>
77           <artifactId>maven-failsafe-plugin</artifactId>
78           <version>${surefire.version}</version>
79           <dependencies>
80             <dependency>
81               <groupId>org.apache.maven.surefire</groupId>
82               <artifactId>surefire-junit4</artifactId>
83               <version>${surefire.version}</version>
84             </dependency>
85           </dependencies>
86           <configuration>
87             <includes>
88               <include>${integrationtest.include}</include>
89             </includes>
90             <excludes>
91               <exclude>${unittest.include}</exclude>
92               <exclude>**/*$*</exclude>
93             </excludes>
94             <redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
95             <environmentVariables>
96               <LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${project.build.directory}/nativelib</LD_LIBRARY_PATH>
97               <DYLD_LIBRARY_PATH>${env.DYLD_LIBRARY_PATH}:${project.build.directory}/nativelib</DYLD_LIBRARY_PATH>
98               <MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
99             </environmentVariables>
100             <failIfNoTests>false</failIfNoTests>
101             <testFailureIgnore>false</testFailureIgnore>
102           </configuration>
103           <executions>
104             <execution>
105               <id>integration-test</id>
106               <phase>integration-test</phase>
107               <goals>
108                 <goal>integration-test</goal>
109               </goals>
110             </execution>
111             <execution>
112               <id>verify</id>
113               <phase>verify</phase>
114               <goals>
115                 <goal>verify</goal>
116               </goals>
117             </execution>
118           </executions>
119         </plugin>
120         <!--This plugin's configuration is used to store Eclipse m2e settings
121              only. It has no influence on the Maven build itself.-->
122         <plugin>
123           <groupId>org.eclipse.m2e</groupId>
124           <artifactId>lifecycle-mapping</artifactId>
125           <configuration>
126             <lifecycleMappingMetadata>
127               <pluginExecutions>
128                 <pluginExecution>
129                   <pluginExecutionFilter>
130                     <groupId>org.apache.maven.plugins</groupId>
131                     <artifactId>maven-dependency-plugin</artifactId>
132                     <versionRange>[2.8,)</versionRange>
133                     <goals>
134                       <goal>build-classpath</goal>
135                     </goals>
136                   </pluginExecutionFilter>
137                   <action>
138                     <ignore></ignore>
139                   </action>
140                 </pluginExecution>
141               </pluginExecutions>
142             </lifecycleMappingMetadata>
143           </configuration>
144         </plugin>
145       </plugins>
146     </pluginManagement>
148     <plugins>
149       <!--  Run integration tests with mvn verify -->
150       <plugin>
151         <groupId>org.apache.maven.plugins</groupId>
152         <artifactId>maven-failsafe-plugin</artifactId>
153           <configuration>
154             <skip>false</skip>
155             <forkMode>always</forkMode>
156             <!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
157                  I believe it is a failsafe bug, we may consider using surefire -->
158             <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
159             <argLine>-enableassertions -Xmx${failsafe.Xmx}
160                 -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
161                 -verbose:gc -XX:+PrintCommandLineFlags  -XX:+PrintFlagsFinal</argLine>
162           </configuration>
163       </plugin>
164     </plugins>
165   </build>
167   <dependencies>
168         <!-- Intra-project dependencies -->
169     <dependency>
170       <groupId>org.apache.hbase</groupId>
171       <artifactId>hbase-annotations</artifactId>
172       <type>test-jar</type>
173       <scope>test</scope>
174     </dependency>
175     <dependency>
176       <groupId>org.apache.hbase</groupId>
177       <artifactId>hbase-common</artifactId>
178       <type>jar</type>
179     </dependency>
180     <dependency>
181       <groupId>org.apache.hbase</groupId>
182       <artifactId>hbase-protocol</artifactId>
183     </dependency>
184     <dependency>
185       <groupId>org.apache.hbase</groupId>
186       <artifactId>hbase-protocol-shaded</artifactId>
187     </dependency>
188     <dependency>
189       <groupId>org.apache.hbase</groupId>
190       <artifactId>hbase-client</artifactId>
191     </dependency>
192     <dependency>
193       <groupId>org.apache.hbase</groupId>
194       <artifactId>hbase-mapreduce</artifactId>
195     </dependency>
196     <dependency>
197       <groupId>org.apache.hbase</groupId>
198       <artifactId>hbase-mapreduce</artifactId>
199       <type>test-jar</type>
200       <scope>test</scope>
201     </dependency>
202     <dependency>
203       <groupId>org.apache.hbase</groupId>
204       <artifactId>hbase-rsgroup</artifactId>
205     </dependency>
206     <dependency>
207       <groupId>org.apache.hbase</groupId>
208       <artifactId>hbase-rsgroup</artifactId>
209       <type>test-jar</type>
210       <scope>test</scope>
211     </dependency>
212     <dependency>
213       <groupId>org.apache.hbase</groupId>
214       <artifactId>hbase-server</artifactId>
215     </dependency>
216     <dependency>
217       <groupId>org.apache.hbase</groupId>
218       <artifactId>${compat.module}</artifactId>
219       <version>${project.version}</version>
220     </dependency>
221     <dependency>
222       <groupId>org.apache.hbase</groupId>
223       <artifactId>hbase-testing-util</artifactId>
224     </dependency>
225     <dependency>
226       <groupId>org.apache.hbase</groupId>
227       <artifactId>hbase-backup</artifactId>
228       <version>${project.version}</version>
229     </dependency>
230     <dependency>
231       <groupId>org.apache.hbase.thirdparty</groupId>
232       <artifactId>hbase-shaded-miscellaneous</artifactId>
233     </dependency>
234     <dependency>
235       <groupId>io.dropwizard.metrics</groupId>
236       <artifactId>metrics-core</artifactId>
237     </dependency>
238     <dependency>
239       <groupId>org.slf4j</groupId>
240       <artifactId>slf4j-api</artifactId>
241     </dependency>
242     <dependency>
243       <groupId>commons-cli</groupId>
244       <artifactId>commons-cli</artifactId>
245     </dependency>
246     <dependency>
247       <groupId>org.apache.commons</groupId>
248       <artifactId>commons-math3</artifactId>
249     </dependency>
250     <dependency>
251       <groupId>org.apache.commons</groupId>
252       <artifactId>commons-lang3</artifactId>
253     </dependency>
254     <dependency>
255       <groupId>org.apache.htrace</groupId>
256       <artifactId>htrace-core4</artifactId>
257     </dependency>
258     <dependency>
259       <groupId>javax.ws.rs</groupId>
260       <artifactId>javax.ws.rs-api</artifactId>
261       <scope>test</scope>
262     </dependency>
263     <dependency>
264       <groupId>org.glassfish.jersey.core</groupId>
265       <artifactId>jersey-client</artifactId>
266     </dependency>
267     <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
268     <dependency>
269       <groupId>io.netty</groupId>
270       <artifactId>netty</artifactId>
271       <version>${netty.hadoop.version}</version>
272       <scope>test</scope>
273     </dependency>
274     <dependency>
275       <!--For Hadoop-->
276       <groupId>log4j</groupId>
277       <artifactId>log4j</artifactId>
278     </dependency>
279     <dependency>
280       <groupId>junit</groupId>
281       <artifactId>junit</artifactId>
282       <scope>test</scope>
283     </dependency>
284     <dependency>
285       <groupId>org.mockito</groupId>
286       <artifactId>mockito-core</artifactId>
287       <scope>test</scope>
288     </dependency>
289     <dependency>
290       <groupId>com.fasterxml.jackson.core</groupId>
291       <artifactId>jackson-databind</artifactId>
292     </dependency>
293   </dependencies>
295   <profiles>
296     <!-- Skip the tests in this module -->
297     <profile>
298       <id>skipIntegrationTests</id>
299       <activation>
300         <property>
301           <name>skipIntegrationTests</name>
302         </property>
303       </activation>
304       <properties>
305         <skipTests>true</skipTests>
306       </properties>
307     </profile>
310     <!-- profile for building against Hadoop 2.x.  This is the default -->
311     <profile>
312       <id>hadoop-2.0</id>
313       <activation>
314         <property>
315             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
316             <!--h2--><name>!hadoop.profile</name>
317         </property>
318       </activation>
319       <dependencies>
320         <dependency>
321           <groupId>org.apache.hadoop</groupId>
322           <artifactId>hadoop-mapreduce-client-core</artifactId>
323           <exclusions>
324             <exclusion>
325               <groupId>com.google.guava</groupId>
326               <artifactId>guava</artifactId>
327             </exclusion>
328           </exclusions>
329         </dependency>
330         <dependency>
331           <groupId>org.apache.hadoop</groupId>
332           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
333           <type>test-jar</type>
334           <scope>test</scope>
335           <exclusions>
336             <exclusion>
337               <groupId>com.google.guava</groupId>
338               <artifactId>guava</artifactId>
339             </exclusion>
340           </exclusions>
341         </dependency>
342         <dependency>
343           <groupId>org.apache.hadoop</groupId>
344           <artifactId>hadoop-common</artifactId>
345           <exclusions>
346             <exclusion>
347               <groupId>org.apache.htrace</groupId>
348               <artifactId>htrace-core</artifactId>
349             </exclusion>
350           </exclusions>
351         </dependency>
352         <dependency>
353           <groupId>org.apache.hadoop</groupId>
354           <artifactId>hadoop-minikdc</artifactId>
355         </dependency>
356       </dependencies>
357       <build>
358         <plugins>
359           <plugin>
360             <artifactId>maven-dependency-plugin</artifactId>
361             <executions>
362               <execution>
363                 <id>create-mrapp-generated-classpath</id>
364                 <phase>generate-test-resources</phase>
365                 <goals>
366                   <goal>build-classpath</goal>
367                 </goals>
368                 <configuration>
369                   <!-- needed to run the unit test for DS to generate
370                   the required classpath that is required in the env
371                   of the launch container in the mini mr/yarn cluster
372                   -->
373                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
374                 </configuration>
375               </execution>
376             </executions>
377           </plugin>
378         </plugins>
379       </build>
380     </profile>
382     <!--
383       profile for building against Hadoop 3.0.x. Activate using:
384        mvn -Dhadoop.profile=3.0
385     -->
386     <profile>
387       <id>hadoop-3.0</id>
388       <activation>
389         <property>
390           <name>hadoop.profile</name>
391           <value>3.0</value>
392         </property>
393       </activation>
394       <properties>
395         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
396       </properties>
397       <dependencies>
398             <dependency>
399           <groupId>org.apache.hadoop</groupId>
400           <artifactId>hadoop-common</artifactId>
401         </dependency>
402         <dependency>
403           <groupId>org.apache.hadoop</groupId>
404           <artifactId>hadoop-minicluster</artifactId>
405         </dependency>
406         <dependency>
407           <groupId>org.apache.hadoop</groupId>
408           <artifactId>hadoop-minikdc</artifactId>
409         </dependency>
410       </dependencies>
411       <build>
412         <plugins>
413           <plugin>
414             <artifactId>maven-dependency-plugin</artifactId>
415             <executions>
416               <execution>
417                 <id>create-mrapp-generated-classpath</id>
418                 <phase>generate-test-resources</phase>
419                 <goals>
420                   <goal>build-classpath</goal>
421                 </goals>
422                 <configuration>
423                   <!-- needed to run the unit test for DS to generate
424                   the required classpath that is required in the env
425                   of the launch container in the mini mr/yarn cluster
426                   -->
427                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
428                 </configuration>
429               </execution>
430             </executions>
431           </plugin>
432         </plugins>
433       </build>
434     </profile>
435   </profiles>
437   <reporting>
438     <plugins>
439     <plugin>
440       <groupId>org.apache.maven.plugins</groupId>
441       <artifactId>maven-surefire-report-plugin</artifactId>
442       <version>${surefire.version}</version>
443       <reportSets>
444         <reportSet>
445           <id>integration-tests</id>
446           <reports>
447             <report>report-only</report>
448           </reports>
449           <configuration>
450             <outputName>failsafe-report</outputName>
451             <reportsDirectories>
452               <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
453             </reportsDirectories>
454           </configuration>
455         </reportSet>
456       </reportSets>
457     </plugin>
458   </plugins>
459   </reporting>
461 </project>