2012-06-28 22:57:29 -04:00
|
|
|
<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">
|
|
|
|
<!--
|
|
|
|
/**
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
-->
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
|
|
<artifactId>hbase</artifactId>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<version>0.95-SNAPSHOT</version>
|
|
|
|
<relativePath>..</relativePath>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<artifactId>hbase-it</artifactId>
|
|
|
|
<name>HBase - Integration Tests</name>
|
|
|
|
<description>Integration and System tests for HBase</description>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<!-- Test inclusion patterns used by failsafe configuration -->
|
|
|
|
<unittest.include>**/Test*.java</unittest.include>
|
|
|
|
<integrationtest.include>**/IntegrationTest*.java</integrationtest.include>
|
|
|
|
<!-- To run a single integration test, use -Dit.test=IntegrationTestXXX -->
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
2012-09-15 03:01:15 -04:00
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<!-- We depend on hbase-server test resources -->
|
|
|
|
<directory>../hbase-server/src/test/resources</directory>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
2012-06-28 22:57:29 -04:00
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
<version>${surefire.version}</version>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven.surefire</groupId>
|
|
|
|
<artifactId>surefire-junit4</artifactId>
|
|
|
|
<version>${surefire.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<configuration>
|
2012-09-15 03:01:15 -04:00
|
|
|
<includes>
|
2012-06-28 22:57:29 -04:00
|
|
|
<include>${integrationtest.include}</include>
|
|
|
|
</includes>
|
|
|
|
<excludes>
|
|
|
|
<exclude>${unittest.include}</exclude>
|
|
|
|
<exclude>**/*$*</exclude>
|
|
|
|
<!--<exclude>${test.exclude.pattern}</exclude>-->
|
|
|
|
</excludes>
|
|
|
|
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
|
|
|
|
<environmentVariables>
|
|
|
|
<LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${project.build.directory}/nativelib</LD_LIBRARY_PATH>
|
|
|
|
<DYLD_LIBRARY_PATH>${env.DYLD_LIBRARY_PATH}:${project.build.directory}/nativelib</DYLD_LIBRARY_PATH>
|
|
|
|
<MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
|
|
|
|
</environmentVariables>
|
2012-09-15 03:01:15 -04:00
|
|
|
<failIfNoTests>false</failIfNoTests>
|
|
|
|
<testFailureIgnore>false</testFailureIgnore>
|
2012-06-28 22:57:29 -04:00
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>integration-test</id>
|
2012-09-15 03:01:15 -04:00
|
|
|
<phase>integration-test</phase>
|
2012-06-28 22:57:29 -04:00
|
|
|
<goals>
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>verify</id>
|
2012-09-15 03:01:15 -04:00
|
|
|
<phase>verify</phase>
|
2012-06-28 22:57:29 -04:00
|
|
|
<goals>
|
|
|
|
<goal>verify</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
|
|
|
|
<plugins>
|
2012-12-07 09:38:42 -05:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<!-- generates the file that will be used by the bin/hbase script in the dev env -->
|
|
|
|
<id>create-hbase-generated-classpath</id>
|
2013-01-23 18:45:36 -05:00
|
|
|
<phase>test</phase>
|
2012-12-07 09:38:42 -05:00
|
|
|
<goals>
|
|
|
|
<goal>build-classpath</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputFile>${project.build.directory}/../../target/cached_classpath.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2012-06-28 22:57:29 -04:00
|
|
|
<!-- Run integration tests with mvn verify -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skip>false</skip>
|
|
|
|
<forkMode>always</forkMode>
|
2012-09-15 03:01:15 -04:00
|
|
|
<!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
|
|
|
|
I believe it is a failsafe bug, we may consider using surefire -->
|
|
|
|
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
|
|
|
|
<argLine>-enableassertions -Xmx1900m
|
|
|
|
-Djava.security.egd=file:/dev/./urandom</argLine>
|
|
|
|
<testFailureIgnore>false</testFailureIgnore>
|
2012-06-28 22:57:29 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<!-- Intra-project dependencies -->
|
2012-09-26 08:23:43 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-common</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
2012-09-15 03:01:15 -04:00
|
|
|
<dependency>
|
2012-06-28 22:57:29 -04:00
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-server</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-server</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<!-- General dependencies -->
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<!-- Skip the tests in this module -->
|
|
|
|
<profile>
|
2012-12-03 18:17:29 -05:00
|
|
|
<id>skipIntegrationTests</id>
|
2012-06-28 22:57:29 -04:00
|
|
|
<activation>
|
|
|
|
<property>
|
2012-12-03 18:17:29 -05:00
|
|
|
<name>skipIntegrationTests</name>
|
2012-06-28 22:57:29 -04:00
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<skipTests>true</skipTests>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- profile against Hadoop 1.0.x: This is the default. It has to have the same
|
|
|
|
activation property as the parent Hadoop 1.0.x profile to make sure it gets run at
|
|
|
|
the same time. -->
|
|
|
|
<profile>
|
|
|
|
<id>hadoop-1.0</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>!hadoop.profile</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-test</artifactId>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
profile for building against Hadoop 2.0.0-alpha. Activate using:
|
|
|
|
mvn -Dhadoop.profile=2.0
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>hadoop-2.0</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>hadoop.profile</name>
|
|
|
|
<value>2.0</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-client</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-annotations</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-minicluster</artifactId>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>create-mrapp-generated-classpath</id>
|
|
|
|
<phase>generate-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>build-classpath</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<!-- needed to run the unit test for DS to generate
|
|
|
|
the required classpath that is required in the env
|
|
|
|
of the launch container in the mini mr/yarn cluster
|
|
|
|
-->
|
|
|
|
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
profile for building against Hadoop 3.0.x. Activate using:
|
|
|
|
mvn -Dhadoop.profile=3.0
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>hadoop-3.0</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>hadoop.profile</name>
|
|
|
|
<value>3.0</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<hadoop.version>3.0-SNAPSHOT</hadoop.version>
|
|
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-annotations</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-minicluster</artifactId>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>create-mrapp-generated-classpath</id>
|
|
|
|
<phase>generate-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>build-classpath</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<!-- needed to run the unit test for DS to generate
|
|
|
|
the required classpath that is required in the env
|
|
|
|
of the launch container in the mini mr/yarn cluster
|
|
|
|
-->
|
|
|
|
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
<reporting>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-report-plugin</artifactId>
|
|
|
|
<version>2.7.2</version>
|
|
|
|
<reportSets>
|
|
|
|
<reportSet>
|
|
|
|
<id>integration-tests</id>
|
|
|
|
<reports>
|
|
|
|
<report>report-only</report>
|
|
|
|
</reports>
|
|
|
|
<configuration>
|
|
|
|
<outputName>failsafe-report</outputName>
|
|
|
|
<reportsDirectories>
|
|
|
|
<reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
|
|
|
|
</reportsDirectories>
|
|
|
|
</configuration>
|
|
|
|
</reportSet>
|
|
|
|
</reportSets>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</reporting>
|
|
|
|
|
|
|
|
</project>
|