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.6-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>
65 <groupId>org.apache.maven.plugins</groupId>
66 <artifactId>maven-checkstyle-plugin</artifactId>
68 <failOnViolation>true</failOnViolation>
72 <groupId>net.revelc.code</groupId>
73 <artifactId>warbucks-maven-plugin</artifactId>
79 <groupId>org.apache.hbase.thirdparty</groupId>
80 <artifactId>hbase-shaded-protobuf</artifactId>
83 <groupId>org.apache.hbase.thirdparty</groupId>
84 <artifactId>hbase-shaded-miscellaneous</artifactId>
86 <!-- Intra-project dependencies -->
88 <groupId>org.apache.hbase</groupId>
89 <artifactId>hbase-common</artifactId>
92 <groupId>org.apache.hbase</groupId>
93 <artifactId>hbase-common</artifactId>
98 <groupId>org.apache.hbase</groupId>
99 <artifactId>hbase-client</artifactId>
102 <groupId>org.apache.hbase</groupId>
103 <artifactId>hbase-annotations</artifactId>
104 <type>test-jar</type>
108 <groupId>org.apache.hbase</groupId>
109 <artifactId>hbase-logging</artifactId>
110 <type>test-jar</type>
114 <groupId>org.apache.hbase</groupId>
115 <artifactId>hbase-protocol-shaded</artifactId>
118 <groupId>org.apache.hbase</groupId>
119 <artifactId>hbase-hadoop-compat</artifactId>
122 <groupId>org.apache.hbase</groupId>
123 <artifactId>hbase-hadoop2-compat</artifactId>
125 <!-- We don't need MR support classes here. -->
127 <groupId>org.apache.hadoop</groupId>
128 <artifactId>hadoop-mapreduce-client-core</artifactId>
132 <!-- General dependencies -->
134 <groupId>com.github.stephenc.findbugs</groupId>
135 <artifactId>findbugs-annotations</artifactId>
136 <scope>compile</scope>
137 <optional>true</optional>
140 <groupId>org.apache.commons</groupId>
141 <artifactId>commons-lang3</artifactId>
144 <groupId>org.slf4j</groupId>
145 <artifactId>slf4j-api</artifactId>
148 <groupId>org.apache.zookeeper</groupId>
149 <artifactId>zookeeper</artifactId>
151 <!-- Test dependencies -->
153 <groupId>junit</groupId>
154 <artifactId>junit</artifactId>
158 <groupId>org.mockito</groupId>
159 <artifactId>mockito-core</artifactId>
163 <groupId>org.slf4j</groupId>
164 <artifactId>jcl-over-slf4j</artifactId>
168 <groupId>org.slf4j</groupId>
169 <artifactId>jul-to-slf4j</artifactId>
173 <groupId>org.slf4j</groupId>
174 <artifactId>slf4j-log4j12</artifactId>
178 <groupId>log4j</groupId>
179 <artifactId>log4j</artifactId>
184 <!-- Needs to make the profile in apache parent pom -->
186 <id>apache-release</id>
190 <groupId>org.apache.maven.plugins</groupId>
191 <artifactId>maven-resources-plugin</artifactId>
194 <id>license-javadocs</id>
195 <phase>prepare-package</phase>
197 <goal>copy-resources</goal>
200 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
203 <directory>src/main/javadoc/META-INF/</directory>
204 <targetPath>META-INF/</targetPath>
206 <include>LICENSE</include>
207 <include>NOTICE</include>
209 <filtering>true</filtering>
219 <!-- Skip the tests in this module -->
221 <id>skipZooKeeperTests</id>
224 <name>skipZooKeeperTests</name>
228 <surefire.skipFirstPart>true</surefire.skipFirstPart>
229 <surefire.skipSecondPart>true</surefire.skipSecondPart>
232 <!-- Profiles for building against different hadoop versions -->
233 <!-- There are a lot of common dependencies used here, should investigate
234 if we can combine these profiles somehow -->
236 <!-- profile for building against Hadoop 2.x. This is the default. -->
241 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
242 <!--h2--><name>!hadoop.profile</name>
247 <groupId>org.apache.hadoop</groupId>
248 <artifactId>hadoop-common</artifactId>
251 <groupId>org.apache.hadoop</groupId>
252 <artifactId>hadoop-auth</artifactId>
258 <artifactId>maven-dependency-plugin</artifactId>
261 <id>create-mrapp-generated-classpath</id>
262 <phase>generate-test-resources</phase>
264 <goal>build-classpath</goal>
267 <!-- needed to run the unit test for DS to generate
268 the required classpath that is required in the env
269 of the launch container in the mini mr/yarn cluster
271 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
280 profile for building against Hadoop 3.0.x. Activate using:
281 mvn -Dhadoop.profile=3.0
287 <name>hadoop.profile</name>
293 <groupId>org.apache.hadoop</groupId>
294 <artifactId>hadoop-common</artifactId>
297 <groupId>org.apache.hadoop</groupId>
298 <artifactId>hadoop-auth</artifactId>
304 <artifactId>maven-dependency-plugin</artifactId>
307 <id>create-mrapp-generated-classpath</id>
308 <phase>generate-test-resources</phase>
310 <goal>build-classpath</goal>
313 <!-- needed to run the unit test for DS to generate
314 the required classpath that is required in the env
315 of the launch container in the mini mr/yarn cluster
317 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
326 <id>eclipse-specific</id>
329 <name>m2e.version</name>
335 <groupId>org.apache.maven.plugins</groupId>
336 <artifactId>maven-eclipse-plugin</artifactId>
338 <additionalProjectnatures>
339 <projectnature>org.jamon.project.jamonnature</projectnature>
340 </additionalProjectnatures>
342 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
343 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
344 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
348 <name>.settings/org.jamon.prefs</name>
350 eclipse.preferences.version=1
351 templateSourceDir=src/main/jamon
352 templateOutputDir=target/generated-jamon
361 <!--This plugin's configuration is used to store Eclipse m2e settings
362 only. It has no influence on the Maven build itself and needs to
363 be kept in plugin management, not in the actual plugins. -->
365 <groupId>org.eclipse.m2e</groupId>
366 <artifactId>lifecycle-mapping</artifactId>
368 <lifecycleMappingMetadata>
371 <pluginExecutionFilter>
372 <groupId>org.apache.maven.plugins</groupId>
373 <artifactId>maven-antrun-plugin</artifactId>
374 <versionRange>[1.6,)</versionRange>
378 </pluginExecutionFilter>
381 <runOnIncremental>false</runOnIncremental>
382 <runOnConfiguration>true</runOnConfiguration>
387 <pluginExecutionFilter>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-dependency-plugin</artifactId>
390 <versionRange>[2.8,)</versionRange>
392 <goal>build-classpath</goal>
394 </pluginExecutionFilter>
400 </lifecycleMappingMetadata>