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>
33 <!--Version of protobuf that hbase uses internally (we shade our pb)
34 Must match what is out in hbase-thirdparty include.
36 <internal.protobuf.version>3.11.4</internal.protobuf.version>
41 <!--Make it so assembly:single does nothing in here-->
42 <artifactId>maven-assembly-plugin</artifactId>
44 <skipAssembly>true</skipAssembly>
48 <artifactId>maven-surefire-plugin</artifactId>
50 <!-- Have to set the groups here because we only do
51 split tests in this package, so groups on live in this module -->
52 <groups>${surefire.firstPartGroups}</groups>
55 <!-- Make a jar and put the sources in the jar -->
57 <groupId>org.apache.maven.plugins</groupId>
58 <artifactId>maven-source-plugin</artifactId>
61 <groupId>org.xolstice.maven.plugins</groupId>
62 <artifactId>protobuf-maven-plugin</artifactId>
65 <id>compile-protoc</id>
66 <phase>generate-sources</phase>
71 <protocArtifact>com.google.protobuf:protoc:${internal.protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
72 <checkStaleness>true</checkStaleness>
78 <groupId>com.google.code.maven-replacer-plugin</groupId>
79 <artifactId>replacer</artifactId>
80 <version>1.5.3</version>
83 <phase>process-sources</phase>
90 <basedir>${basedir}/target/generated-sources/</basedir>
92 <include>**/*.java</include>
94 <!-- Ignore errors when missing files, because it means this build
95 was run with -Dprotoc.skip and there is no -Dreplacer.skip -->
96 <ignoreErrors>true</ignoreErrors>
99 <token>([^\.])com.google.protobuf</token>
100 <value>$1org.apache.hbase.thirdparty.com.google.protobuf</value>
103 <token>(public)(\W+static)?(\W+final)?(\W+class)</token>
104 <value>@javax.annotation.Generated("proto") $1$2$3$4</value>
106 <!-- replacer doesn't support anchoring or negative lookbehind -->
108 <token>(@javax.annotation.Generated\("proto"\) ){2}</token>
115 <groupId>net.revelc.code</groupId>
116 <artifactId>warbucks-maven-plugin</artifactId>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-checkstyle-plugin</artifactId>
122 <failOnViolation>true</failOnViolation>
129 <groupId>org.apache.hbase.thirdparty</groupId>
130 <artifactId>hbase-shaded-miscellaneous</artifactId>
133 <groupId>org.apache.hbase.thirdparty</groupId>
134 <artifactId>hbase-shaded-netty</artifactId>
137 <groupId>org.apache.hbase</groupId>
138 <artifactId>hbase-protocol-shaded</artifactId>
141 <groupId>org.apache.hbase</groupId>
142 <artifactId>hbase-common</artifactId>
145 <groupId>org.apache.hbase</groupId>
146 <artifactId>hbase-client</artifactId>
149 <groupId>org.apache.hbase</groupId>
150 <artifactId>hbase-server</artifactId>
153 <groupId>org.apache.hbase</groupId>
154 <artifactId>hbase-mapreduce</artifactId>
157 <groupId>org.apache.hbase</groupId>
158 <artifactId>hbase-endpoint</artifactId>
161 <groupId>org.apache.hbase</groupId>
162 <artifactId>hbase-thrift</artifactId>
165 <groupId>org.apache.hbase</groupId>
166 <artifactId>hbase-metrics-api</artifactId>
169 <groupId>org.apache.hbase</groupId>
170 <artifactId>hbase-testing-util</artifactId>
174 <groupId>org.apache.thrift</groupId>
175 <artifactId>libthrift</artifactId>
178 <groupId>commons-io</groupId>
179 <artifactId>commons-io</artifactId>
182 <groupId>org.slf4j</groupId>
183 <artifactId>slf4j-api</artifactId>
186 <groupId>org.apache.zookeeper</groupId>
187 <artifactId>zookeeper</artifactId>
190 <groupId>com.google.protobuf</groupId>
191 <artifactId>protobuf-java</artifactId>
194 <groupId>org.apache.curator</groupId>
195 <artifactId>curator-framework</artifactId>
198 <groupId>org.apache.curator</groupId>
199 <artifactId>curator-client</artifactId>
202 <groupId>org.apache.curator</groupId>
203 <artifactId>curator-recipes</artifactId>
206 <groupId>com.github.stephenc.findbugs</groupId>
207 <artifactId>findbugs-annotations</artifactId>
208 <scope>compile</scope>
209 <optional>true</optional>
212 <groupId>org.apache.hbase</groupId>
213 <artifactId>hbase-rest</artifactId>
216 <groupId>junit</groupId>
217 <artifactId>junit</artifactId>
221 <groupId>org.mockito</groupId>
222 <artifactId>mockito-core</artifactId>
226 <groupId>org.apache.hadoop</groupId>
227 <artifactId>hadoop-minikdc</artifactId>
231 <groupId>bouncycastle</groupId>
232 <artifactId>bcprov-jdk15</artifactId>
237 <groupId>org.bouncycastle</groupId>
238 <artifactId>bcprov-jdk15on</artifactId>
242 <groupId>org.apache.hbase</groupId>
243 <artifactId>hbase-http</artifactId>
245 <type>test-jar</type>
249 <!-- Skip the tests in this module -->
251 <id>skipExamplesTests</id>
254 <name>skipExamplesTests</name>
258 <surefire.skipFirstPart>true</surefire.skipFirstPart>
259 <surefire.skipSecondPart>true</surefire.skipSecondPart>
262 <!-- Profiles for building against different hadoop versions -->
263 <!-- There are a lot of common dependencies used here, should investigate
264 if we can combine these profiles somehow -->
265 <!-- profile for building against Hadoop 2.x. This is the default -->
270 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
272 <name>!hadoop.profile</name>
277 <groupId>org.apache.hadoop</groupId>
278 <artifactId>hadoop-mapreduce-client-core</artifactId>
281 <groupId>org.apache.hadoop</groupId>
282 <artifactId>hadoop-common</artifactId>
288 <artifactId>maven-dependency-plugin</artifactId>
291 <id>create-mrapp-generated-classpath</id>
292 <phase>generate-test-resources</phase>
294 <goal>build-classpath</goal>
297 <!-- needed to run the unit test for DS to generate
298 the required classpath that is required in the env
299 of the launch container in the mini mr/yarn cluster
301 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
310 profile for building against Hadoop 3.0.x. Activate using:
311 mvn -Dhadoop.profile=3.0
317 <name>hadoop.profile</name>
322 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
326 <groupId>org.apache.hadoop</groupId>
327 <artifactId>hadoop-common</artifactId>
330 <groupId>org.apache.hadoop</groupId>
331 <artifactId>hadoop-minicluster</artifactId>
337 <artifactId>maven-dependency-plugin</artifactId>
340 <id>create-mrapp-generated-classpath</id>
341 <phase>generate-test-resources</phase>
343 <goal>build-classpath</goal>
346 <!-- needed to run the unit test for DS to generate
347 the required classpath that is required in the env
348 of the launch container in the mini mr/yarn cluster
350 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
359 <id>eclipse-specific</id>
362 <name>m2e.version</name>
368 <!--This plugin's configuration is used to store Eclipse m2e settings
369 only. It has no influence on the Maven build itself.-->
371 <groupId>org.eclipse.m2e</groupId>
372 <artifactId>lifecycle-mapping</artifactId>
374 <lifecycleMappingMetadata>
377 <pluginExecutionFilter>
378 <groupId>org.apache.maven.plugins</groupId>
379 <artifactId>maven-dependency-plugin</artifactId>
380 <versionRange>[2.8,)</versionRange>
382 <goal>build-classpath</goal>
384 </pluginExecutionFilter>
390 </lifecycleMappingMetadata>