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