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-zookeeper</artifactId>
30 <name>Apache HBase - Zookeeper</name>
31 <description>Zookeeper Helpers for HBase</description>
34 <!-- Makes sure the resources get added before they are processed
35 by placing this first -->
37 <!-- Our test artifact has different license info than our source/bin ones -->
39 <directory>src/test/resources/META-INF/</directory>
40 <targetPath>META-INF/</targetPath>
42 <include>NOTICE</include>
44 <filtering>true</filtering>
47 <directory>src/test/resources</directory>
49 <include>**/**</include>
54 <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
55 tests (this is needed for upstream projects whose tests need this jar simply for
58 <!--Make it so assembly:single does nothing in here-->
59 <artifactId>maven-assembly-plugin</artifactId>
61 <skipAssembly>true</skipAssembly>
66 <groupId>org.codehaus.mojo</groupId>
67 <artifactId>findbugs-maven-plugin</artifactId>
70 <groupId>org.apache.maven.plugins</groupId>
71 <artifactId>maven-checkstyle-plugin</artifactId>
73 <failOnViolation>true</failOnViolation>
77 <groupId>net.revelc.code</groupId>
78 <artifactId>warbucks-maven-plugin</artifactId>
84 <groupId>org.apache.hbase.thirdparty</groupId>
85 <artifactId>hbase-shaded-protobuf</artifactId>
88 <groupId>org.apache.hbase.thirdparty</groupId>
89 <artifactId>hbase-shaded-miscellaneous</artifactId>
91 <!-- Intra-project dependencies -->
93 <groupId>org.apache.hbase</groupId>
94 <artifactId>hbase-common</artifactId>
97 <groupId>org.apache.hbase</groupId>
98 <artifactId>hbase-common</artifactId>
103 <groupId>org.apache.hbase</groupId>
104 <artifactId>hbase-client</artifactId>
107 <groupId>org.apache.hbase</groupId>
108 <artifactId>hbase-annotations</artifactId>
109 <type>test-jar</type>
113 <groupId>org.apache.hbase</groupId>
114 <artifactId>hbase-protocol-shaded</artifactId>
117 <groupId>org.apache.hbase</groupId>
118 <artifactId>hbase-hadoop-compat</artifactId>
121 <groupId>org.apache.hbase</groupId>
122 <artifactId>hbase-hadoop2-compat</artifactId>
124 <!-- We don't need MR support classes here. -->
126 <groupId>org.apache.hadoop</groupId>
127 <artifactId>hadoop-mapreduce-client-core</artifactId>
131 <!-- General dependencies -->
133 <groupId>com.github.stephenc.findbugs</groupId>
134 <artifactId>findbugs-annotations</artifactId>
135 <optional>true</optional>
138 <groupId>org.apache.commons</groupId>
139 <artifactId>commons-lang3</artifactId>
142 <groupId>org.slf4j</groupId>
143 <artifactId>slf4j-api</artifactId>
146 <groupId>log4j</groupId>
147 <artifactId>log4j</artifactId>
150 <groupId>org.apache.zookeeper</groupId>
151 <artifactId>zookeeper</artifactId>
153 <!-- Test dependencies -->
155 <groupId>junit</groupId>
156 <artifactId>junit</artifactId>
160 <groupId>org.mockito</groupId>
161 <artifactId>mockito-core</artifactId>
166 <!-- Needs to make the profile in apache parent pom -->
168 <id>apache-release</id>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-resources-plugin</artifactId>
176 <id>license-javadocs</id>
177 <phase>prepare-package</phase>
179 <goal>copy-resources</goal>
182 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
185 <directory>src/main/javadoc/META-INF/</directory>
186 <targetPath>META-INF/</targetPath>
188 <include>LICENSE</include>
189 <include>NOTICE</include>
191 <filtering>true</filtering>
201 <!-- Skip the tests in this module -->
203 <id>skipZooKeeperTests</id>
206 <name>skipZooKeeperTests</name>
210 <surefire.skipFirstPart>true</surefire.skipFirstPart>
211 <surefire.skipSecondPart>true</surefire.skipSecondPart>
214 <!-- Profiles for building against different hadoop versions -->
215 <!-- There are a lot of common dependencies used here, should investigate
216 if we can combine these profiles somehow -->
218 <!-- profile for building against Hadoop 2.x. This is the default. -->
223 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
224 <!--h2--><name>!hadoop.profile</name>
229 <groupId>org.apache.hadoop</groupId>
230 <artifactId>hadoop-common</artifactId>
233 <groupId>org.apache.hadoop</groupId>
234 <artifactId>hadoop-auth</artifactId>
240 <artifactId>maven-dependency-plugin</artifactId>
243 <id>create-mrapp-generated-classpath</id>
244 <phase>generate-test-resources</phase>
246 <goal>build-classpath</goal>
249 <!-- needed to run the unit test for DS to generate
250 the required classpath that is required in the env
251 of the launch container in the mini mr/yarn cluster
253 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
262 profile for building against Hadoop 3.0.x. Activate using:
263 mvn -Dhadoop.profile=3.0
269 <name>hadoop.profile</name>
275 <groupId>org.apache.hadoop</groupId>
276 <artifactId>hadoop-common</artifactId>
279 <groupId>org.apache.hadoop</groupId>
280 <artifactId>hadoop-auth</artifactId>
286 <artifactId>maven-dependency-plugin</artifactId>
289 <id>create-mrapp-generated-classpath</id>
290 <phase>generate-test-resources</phase>
292 <goal>build-classpath</goal>
295 <!-- needed to run the unit test for DS to generate
296 the required classpath that is required in the env
297 of the launch container in the mini mr/yarn cluster
299 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
308 <id>eclipse-specific</id>
311 <name>m2e.version</name>
317 <groupId>org.apache.maven.plugins</groupId>
318 <artifactId>maven-eclipse-plugin</artifactId>
320 <additionalProjectnatures>
321 <projectnature>org.jamon.project.jamonnature</projectnature>
322 </additionalProjectnatures>
324 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
325 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
326 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
330 <name>.settings/org.jamon.prefs</name>
332 eclipse.preferences.version=1
333 templateSourceDir=src/main/jamon
334 templateOutputDir=target/generated-jamon
343 <!--This plugin's configuration is used to store Eclipse m2e settings
344 only. It has no influence on the Maven build itself and needs to
345 be kept in plugin management, not in the actual plugins. -->
347 <groupId>org.eclipse.m2e</groupId>
348 <artifactId>lifecycle-mapping</artifactId>
350 <lifecycleMappingMetadata>
353 <pluginExecutionFilter>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-antrun-plugin</artifactId>
356 <versionRange>[1.6,)</versionRange>
360 </pluginExecutionFilter>
363 <runOnIncremental>false</runOnIncremental>
364 <runOnConfiguration>true</runOnConfiguration>
369 <pluginExecutionFilter>
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-dependency-plugin</artifactId>
372 <versionRange>[2.8,)</versionRange>
374 <goal>build-classpath</goal>
376 </pluginExecutionFilter>
382 </lifecycleMappingMetadata>