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>2.4.12-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-logging</artifactId>
101 <type>test-jar</type>
105 <groupId>org.apache.hbase</groupId>
106 <artifactId>hbase-client</artifactId>
109 <groupId>org.apache.hbase</groupId>
110 <artifactId>hbase-asyncfs</artifactId>
113 <groupId>org.apache.hbase</groupId>
114 <artifactId>hbase-asyncfs</artifactId>
115 <type>test-jar</type>
119 <groupId>org.apache.hbase</groupId>
120 <artifactId>hbase-server</artifactId>
123 <groupId>org.apache.hbase</groupId>
124 <artifactId>hbase-mapreduce</artifactId>
127 <groupId>org.apache.hbase</groupId>
128 <artifactId>hbase-endpoint</artifactId>
131 <groupId>org.apache.hbase</groupId>
132 <artifactId>hbase-thrift</artifactId>
135 <groupId>org.apache.hbase</groupId>
136 <artifactId>hbase-metrics-api</artifactId>
139 <groupId>org.apache.hbase</groupId>
140 <artifactId>hbase-testing-util</artifactId>
144 <groupId>org.apache.thrift</groupId>
145 <artifactId>libthrift</artifactId>
148 <groupId>commons-io</groupId>
149 <artifactId>commons-io</artifactId>
152 <groupId>org.slf4j</groupId>
153 <artifactId>slf4j-api</artifactId>
156 <groupId>org.apache.zookeeper</groupId>
157 <artifactId>zookeeper</artifactId>
160 <groupId>com.google.protobuf</groupId>
161 <artifactId>protobuf-java</artifactId>
164 <groupId>org.apache.curator</groupId>
165 <artifactId>curator-framework</artifactId>
168 <groupId>org.apache.curator</groupId>
169 <artifactId>curator-client</artifactId>
172 <groupId>org.apache.curator</groupId>
173 <artifactId>curator-recipes</artifactId>
176 <groupId>com.github.stephenc.findbugs</groupId>
177 <artifactId>findbugs-annotations</artifactId>
178 <scope>compile</scope>
179 <optional>true</optional>
182 <groupId>org.apache.hbase</groupId>
183 <artifactId>hbase-rest</artifactId>
186 <groupId>junit</groupId>
187 <artifactId>junit</artifactId>
191 <groupId>org.mockito</groupId>
192 <artifactId>mockito-core</artifactId>
196 <groupId>org.apache.hadoop</groupId>
197 <artifactId>hadoop-minikdc</artifactId>
201 <groupId>bouncycastle</groupId>
202 <artifactId>bcprov-jdk15</artifactId>
207 <groupId>org.bouncycastle</groupId>
208 <artifactId>bcprov-jdk15on</artifactId>
212 <groupId>org.apache.hbase</groupId>
213 <artifactId>hbase-http</artifactId>
215 <type>test-jar</type>
218 <groupId>org.slf4j</groupId>
219 <artifactId>jcl-over-slf4j</artifactId>
223 <groupId>org.slf4j</groupId>
224 <artifactId>jul-to-slf4j</artifactId>
228 <groupId>org.slf4j</groupId>
229 <artifactId>slf4j-reload4j</artifactId>
233 <groupId>ch.qos.reload4j</groupId>
234 <artifactId>reload4j</artifactId>
239 <!-- Skip the tests in this module -->
241 <id>skipExamplesTests</id>
244 <name>skipExamplesTests</name>
248 <surefire.skipFirstPart>true</surefire.skipFirstPart>
249 <surefire.skipSecondPart>true</surefire.skipSecondPart>
252 <!-- Profiles for building against different hadoop versions -->
253 <!-- There are a lot of common dependencies used here, should investigate
254 if we can combine these profiles somehow -->
255 <!-- profile for building against Hadoop 2.x. This is the default -->
260 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
262 <name>!hadoop.profile</name>
267 <groupId>org.apache.hadoop</groupId>
268 <artifactId>hadoop-mapreduce-client-core</artifactId>
271 <groupId>org.apache.hadoop</groupId>
272 <artifactId>hadoop-common</artifactId>
278 <artifactId>maven-dependency-plugin</artifactId>
281 <id>create-mrapp-generated-classpath</id>
282 <phase>generate-test-resources</phase>
284 <goal>build-classpath</goal>
287 <!-- needed to run the unit test for DS to generate
288 the required classpath that is required in the env
289 of the launch container in the mini mr/yarn cluster
291 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
300 profile for building against Hadoop 3.0.x. Activate using:
301 mvn -Dhadoop.profile=3.0
307 <name>hadoop.profile</name>
313 <groupId>org.apache.hadoop</groupId>
314 <artifactId>hadoop-common</artifactId>
317 <groupId>org.apache.hadoop</groupId>
318 <artifactId>hadoop-minicluster</artifactId>
321 <groupId>javax.xml.bind.</groupId>
322 <artifactId>jaxb-api</artifactId>
325 <groupId>javax.ws.rs</groupId>
326 <artifactId>jsr311-api</artifactId>
334 <artifactId>maven-dependency-plugin</artifactId>
337 <id>create-mrapp-generated-classpath</id>
338 <phase>generate-test-resources</phase>
340 <goal>build-classpath</goal>
343 <!-- needed to run the unit test for DS to generate
344 the required classpath that is required in the env
345 of the launch container in the mini mr/yarn cluster
347 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
356 <id>eclipse-specific</id>
359 <name>m2e.version</name>
365 <!--This plugin's configuration is used to store Eclipse m2e settings
366 only. It has no influence on the Maven build itself.-->
368 <groupId>org.eclipse.m2e</groupId>
369 <artifactId>lifecycle-mapping</artifactId>
371 <lifecycleMappingMetadata>
374 <pluginExecutionFilter>
375 <groupId>org.apache.maven.plugins</groupId>
376 <artifactId>maven-dependency-plugin</artifactId>
377 <versionRange>[2.8,)</versionRange>
379 <goal>build-classpath</goal>
381 </pluginExecutionFilter>
387 </lifecycleMappingMetadata>