2 <project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 <modelVersion>4.0.0</modelVersion>
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>
29 <artifactId>hbase-examples</artifactId>
30 <name>Apache HBase - Examples</name>
31 <description>Examples of HBase usage</description>
36 <!--Make it so assembly:single does nothing in here-->
37 <artifactId>maven-assembly-plugin</artifactId>
39 <skipAssembly>true</skipAssembly>
43 <artifactId>maven-surefire-plugin</artifactId>
45 <!-- Have to set the groups here because we only do
46 split tests in this package, so groups on live in this module -->
47 <groups>${surefire.firstPartGroups}</groups>
50 <!-- Make a jar and put the sources in the jar -->
52 <groupId>org.apache.maven.plugins</groupId>
53 <artifactId>maven-source-plugin</artifactId>
56 <groupId>org.xolstice.maven.plugins</groupId>
57 <artifactId>protobuf-maven-plugin</artifactId>
60 <id>compile-protoc</id>
61 <phase>generate-sources</phase>
69 <groupId>net.revelc.code</groupId>
70 <artifactId>warbucks-maven-plugin</artifactId>
73 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-checkstyle-plugin</artifactId>
76 <failOnViolation>true</failOnViolation>
83 <groupId>org.apache.hbase.thirdparty</groupId>
84 <artifactId>hbase-shaded-miscellaneous</artifactId>
87 <groupId>org.apache.hbase.thirdparty</groupId>
88 <artifactId>hbase-shaded-netty</artifactId>
91 <groupId>org.apache.hbase</groupId>
92 <artifactId>hbase-common</artifactId>
95 <groupId>org.apache.hbase</groupId>
96 <artifactId>hbase-protocol</artifactId>
99 <groupId>org.apache.hbase</groupId>
100 <artifactId>hbase-client</artifactId>
103 <groupId>org.apache.hbase</groupId>
104 <artifactId>hbase-server</artifactId>
107 <groupId>org.apache.hbase</groupId>
108 <artifactId>hbase-mapreduce</artifactId>
111 <groupId>org.apache.hbase</groupId>
112 <artifactId>hbase-endpoint</artifactId>
115 <groupId>org.apache.hbase</groupId>
116 <artifactId>hbase-thrift</artifactId>
119 <groupId>org.apache.hbase</groupId>
120 <artifactId>hbase-metrics-api</artifactId>
123 <groupId>org.apache.hbase</groupId>
124 <artifactId>hbase-testing-util</artifactId>
128 <groupId>org.apache.thrift</groupId>
129 <artifactId>libthrift</artifactId>
132 <groupId>commons-io</groupId>
133 <artifactId>commons-io</artifactId>
136 <groupId>org.slf4j</groupId>
137 <artifactId>slf4j-api</artifactId>
140 <groupId>org.apache.zookeeper</groupId>
141 <artifactId>zookeeper</artifactId>
144 <groupId>com.google.protobuf</groupId>
145 <artifactId>protobuf-java</artifactId>
148 <groupId>org.apache.curator</groupId>
149 <artifactId>curator-framework</artifactId>
152 <groupId>org.apache.curator</groupId>
153 <artifactId>curator-client</artifactId>
156 <groupId>org.apache.curator</groupId>
157 <artifactId>curator-recipes</artifactId>
160 <groupId>com.github.stephenc.findbugs</groupId>
161 <artifactId>findbugs-annotations</artifactId>
164 <groupId>org.apache.hbase</groupId>
165 <artifactId>hbase-rest</artifactId>
168 <groupId>junit</groupId>
169 <artifactId>junit</artifactId>
173 <groupId>org.mockito</groupId>
174 <artifactId>mockito-core</artifactId>
179 <!-- Skip the tests in this module -->
181 <id>skipExamplesTests</id>
184 <name>skipExamplesTests</name>
188 <surefire.skipFirstPart>true</surefire.skipFirstPart>
189 <surefire.skipSecondPart>true</surefire.skipSecondPart>
192 <!-- Profiles for building against different hadoop versions -->
193 <!-- There are a lot of common dependencies used here, should investigate
194 if we can combine these profiles somehow -->
195 <!-- profile for building against Hadoop 2.x. This is the default -->
200 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
202 <name>!hadoop.profile</name>
207 <groupId>org.apache.hadoop</groupId>
208 <artifactId>hadoop-mapreduce-client-core</artifactId>
211 <groupId>org.apache.hadoop</groupId>
212 <artifactId>hadoop-common</artifactId>
218 <artifactId>maven-dependency-plugin</artifactId>
221 <id>create-mrapp-generated-classpath</id>
222 <phase>generate-test-resources</phase>
224 <goal>build-classpath</goal>
227 <!-- needed to run the unit test for DS to generate
228 the required classpath that is required in the env
229 of the launch container in the mini mr/yarn cluster
231 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
240 profile for building against Hadoop 3.0.x. Activate using:
241 mvn -Dhadoop.profile=3.0
247 <name>hadoop.profile</name>
252 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
256 <groupId>org.apache.hadoop</groupId>
257 <artifactId>hadoop-common</artifactId>
260 <groupId>org.apache.hadoop</groupId>
261 <artifactId>hadoop-minicluster</artifactId>
267 <artifactId>maven-dependency-plugin</artifactId>
270 <id>create-mrapp-generated-classpath</id>
271 <phase>generate-test-resources</phase>
273 <goal>build-classpath</goal>
276 <!-- needed to run the unit test for DS to generate
277 the required classpath that is required in the env
278 of the launch container in the mini mr/yarn cluster
280 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
289 <id>eclipse-specific</id>
292 <name>m2e.version</name>
298 <!--This plugin's configuration is used to store Eclipse m2e settings
299 only. It has no influence on the Maven build itself.-->
301 <groupId>org.eclipse.m2e</groupId>
302 <artifactId>lifecycle-mapping</artifactId>
304 <lifecycleMappingMetadata>
307 <pluginExecutionFilter>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-dependency-plugin</artifactId>
310 <versionRange>[2.8,)</versionRange>
312 <goal>build-classpath</goal>
314 </pluginExecutionFilter>
320 </lifecycleMappingMetadata>