Preparing for Bigtop 0.7.0 release
[bigtop.git] / bigtop-tests / test-execution / smokes / hbase / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 -->
18 <project xmlns="http://maven.apache.org/POM/4.0.0"
19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21
22 <parent>
23 <groupId>org.apache.bigtop.itest</groupId>
24 <artifactId>smoke-tests</artifactId>
25 <version>0.7.0</version>
26 <relativePath>../pom.xml</relativePath>
27 </parent>
28
29 <modelVersion>4.0.0</modelVersion>
30 <groupId>org.apache.bigtop.itest</groupId>
31 <artifactId>hbase-smoke-execution</artifactId>
32 <version>0.7.0</version>
33 <name>HBase smoke test execution</name>
34
35 <properties>
36 <org.apache.maven-dependency-plugin.groupId>org.apache.bigtop.itest</org.apache.maven-dependency-plugin.groupId>
37 <org.apache.maven-dependency-plugin.artifactId>hbase-smoke</org.apache.maven-dependency-plugin.artifactId>
38 <org.apache.maven-dependency-plugin.version>${hbase-smoke.version}</org.apache.maven-dependency-plugin.version>
39 <org.apache.maven-dependency-plugin.type>jar</org.apache.maven-dependency-plugin.type>
40
41 <HBASE_HOME>${env.HBASE_HOME}</HBASE_HOME>
42 <ZOOKEEPER_HOME>${env.ZOOKEEPER_HOME}</ZOOKEEPER_HOME>
43 <HBASE_CONF_DIR>${env.HBASE_CONF_DIR}</HBASE_CONF_DIR>
44 </properties>
45
46 <dependencies>
47 <dependency>
48 <groupId>org.apache.bigtop.itest</groupId>
49 <artifactId>hbase-smoke</artifactId>
50 </dependency>
51 <dependency>
52 <groupId>org.apache.hadoop</groupId>
53 <artifactId>hadoop-client</artifactId>
54 </dependency>
55 </dependencies>
56
57 <build>
58 <plugins>
59 <plugin>
60 <groupId>org.apache.maven.plugins</groupId>
61 <artifactId>maven-install-plugin</artifactId>
62 <executions>
63 <execution>
64 <id>install-hbase</id>
65 <phase>initialize</phase>
66 <goals>
67 <goal>install-file</goal>
68 </goals>
69 <configuration>
70 <file>${HBASE_HOME}/${hbase.jar}</file>
71 <groupId>org.apache.hbase</groupId>
72 <artifactId>hbase</artifactId>
73 <version>${hbase.version}</version>
74 <packaging>jar</packaging>
75 </configuration>
76 </execution>
77 <execution>
78 <id>install-hbase-test</id>
79 <phase>initialize</phase>
80 <goals>
81 <goal>install-file</goal>
82 </goals>
83 <configuration>
84 <file>${HBASE_HOME}/${hbase.tests.jar}</file>
85 <groupId>org.apache.hbase</groupId>
86 <artifactId>hbase</artifactId>
87 <version>${hbase.version}</version>
88 <packaging>jar</packaging>
89 <classifier>tests</classifier>
90 </configuration>
91 </execution>
92 </executions>
93 </plugin>
94
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-enforcer-plugin</artifactId>
98 <version>1.0</version>
99 <executions>
100 <execution>
101 <id>enforce-property</id>
102 <phase>validate</phase>
103 <goals>
104 <goal>enforce</goal>
105 </goals>
106 <configuration>
107 <rules>
108 <requireProperty>
109 <property>HBASE_HOME</property>
110 <message>HBASE_HOME env. variable has to be set</message>
111 </requireProperty>
112 <requireProperty>
113 <property>HBASE_CONF_DIR</property>
114 <message>HBASE_CONF_DIR env. variable has to be set</message>
115 </requireProperty>
116 <requireProperty>
117 <property>ZOOKEEPER_HOME</property>
118 <message>ZOOKEEPER_HOME env. variable has to be set</message>
119 </requireProperty>
120 </rules>
121 <fail>true</fail>
122 </configuration>
123 </execution>
124 </executions>
125 </plugin>
126
127 <plugin>
128 <groupId>org.apache.maven.plugins</groupId>
129 <artifactId>maven-dependency-plugin</artifactId>
130 </plugin>
131 <plugin>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-failsafe-plugin</artifactId>
134 <version>2.11</version>
135 <configuration>
136 <systemPropertyVariables>
137 <org.apache.bigtop.itest.hbasesmoke.TestHbasePigSmoke.extra_jars>
138 ${ZOOKEEPER_HOME}/${zookeeper.jar}:${HBASE_HOME}/${hbase.jar}:${HBASE_HOME}/lib/guava-r06.jar
139 </org.apache.bigtop.itest.hbasesmoke.TestHbasePigSmoke.extra_jars>
140 <loadmapper.num_to_write>
141 10
142 </loadmapper.num_to_write>
143 </systemPropertyVariables>
144 <additionalClasspathElements>
145 <additionalClasspathElement>${HBASE_CONF_DIR}</additionalClasspathElement>
146 <additionalClasspathElement>${HADOOP_CONF_DIR}</additionalClasspathElement>
147 </additionalClasspathElements>
148 </configuration>
149 </plugin>
150 <plugin>
151 <groupId>org.codehaus.groovy.maven</groupId>
152 <artifactId>gmaven-plugin</artifactId>
153 <version>1.0</version>
154 <executions>
155 <execution>
156 <id>find-versioned-jar</id>
157 <phase>validate</phase>
158 <goals>
159 <goal>execute</goal>
160 </goals>
161 <configuration>
162 <source>
163 if (!System.getProperties().keySet().contains('enforcer.skip')) {
164 project.properties['zookeeper.jar'] =
165 org.apache.bigtop.itest.JarContent.getJarName(
166 "${ZOOKEEPER_HOME}", 'zookeeper-.*.jar');
167 if ( project.properties['zookeeper.jar'] == null ) {
168 throw new IOException ("zookeeper*.jar isn't found");
169 }
170 project.properties['hbase.jar'] =
171 org.apache.bigtop.itest.JarContent.getJarName(
172 "${HBASE_HOME}", 'hbase-[0-9.-]*.jar');
173 if ( project.properties['hbase.jar'] == null ) {
174 throw new IOException ("hbase*.jar isn't found");
175 }
176
177 project.properties['hbase.tests.jar'] =
178 org.apache.bigtop.itest.JarContent.getJarName(
179 "${HBASE_HOME}", 'hbase-.*tests.jar');
180 if ( project.properties['hbase.tests.jar'] == null ) {
181 throw new IOException ("hbase*tests.jar isn't found");
182 }
183 }
184 </source>
185 </configuration>
186 </execution>
187 </executions>
188 </plugin>
189 </plugins>
190 </build>
191 </project>