2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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>
64 <!-- General plugins -->
66 <groupId>org.apache.maven.plugins</groupId>
67 <artifactId>maven-eclipse-plugin</artifactId>
69 <additionalProjectnatures>
70 <projectnature>org.jamon.project.jamonnature</projectnature>
71 </additionalProjectnatures>
73 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
74 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
75 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
79 <name>.settings/org.jamon.prefs</name>
81 eclipse.preferences.version=1
82 templateSourceDir=src/main/jamon
83 templateOutputDir=target/generated-jamon
91 <groupId>org.codehaus.mojo</groupId>
92 <artifactId>findbugs-maven-plugin</artifactId>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-checkstyle-plugin</artifactId>
98 <failOnViolation>true</failOnViolation>
102 <groupId>net.revelc.code</groupId>
103 <artifactId>warbucks-maven-plugin</artifactId>
106 <!-- General Resources -->
109 <!--This plugin's configuration is used to store Eclipse m2e settings
110 only. It has no influence on the Maven build itself and needs to
111 be kept in plugin management, not in the actual plugins. -->
113 <groupId>org.eclipse.m2e</groupId>
114 <artifactId>lifecycle-mapping</artifactId>
116 <lifecycleMappingMetadata>
119 <pluginExecutionFilter>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-antrun-plugin</artifactId>
122 <versionRange>[1.6,)</versionRange>
126 </pluginExecutionFilter>
129 <runOnIncremental>false</runOnIncremental>
130 <runOnConfiguration>true</runOnConfiguration>
135 <pluginExecutionFilter>
136 <groupId>org.apache.maven.plugins</groupId>
137 <artifactId>maven-dependency-plugin</artifactId>
138 <versionRange>[2.8,)</versionRange>
140 <goal>build-classpath</goal>
142 </pluginExecutionFilter>
148 </lifecycleMappingMetadata>
156 <groupId>org.apache.hbase.thirdparty</groupId>
157 <artifactId>hbase-shaded-protobuf</artifactId>
160 <groupId>org.apache.hbase.thirdparty</groupId>
161 <artifactId>hbase-shaded-miscellaneous</artifactId>
163 <!-- Intra-project dependencies -->
165 <groupId>org.apache.hbase</groupId>
166 <artifactId>hbase-common</artifactId>
169 <groupId>org.apache.hbase</groupId>
170 <artifactId>hbase-common</artifactId>
171 <type>test-jar</type>
175 <groupId>org.apache.hbase</groupId>
176 <artifactId>hbase-client</artifactId>
179 <groupId>org.apache.hbase</groupId>
180 <artifactId>hbase-annotations</artifactId>
181 <type>test-jar</type>
185 <groupId>org.apache.hbase</groupId>
186 <artifactId>hbase-protocol-shaded</artifactId>
189 <groupId>org.apache.hbase</groupId>
190 <artifactId>hbase-hadoop-compat</artifactId>
193 <groupId>org.apache.hbase</groupId>
194 <artifactId>hbase-hadoop2-compat</artifactId>
196 <!-- We don't need MR support classes here. -->
198 <groupId>org.apache.hadoop</groupId>
199 <artifactId>hadoop-mapreduce-client-core</artifactId>
203 <!-- General dependencies -->
205 <groupId>com.github.stephenc.findbugs</groupId>
206 <artifactId>findbugs-annotations</artifactId>
207 <optional>true</optional>
210 <groupId>org.apache.commons</groupId>
211 <artifactId>commons-lang3</artifactId>
214 <groupId>org.slf4j</groupId>
215 <artifactId>slf4j-api</artifactId>
218 <groupId>log4j</groupId>
219 <artifactId>log4j</artifactId>
222 <groupId>org.apache.zookeeper</groupId>
223 <artifactId>zookeeper</artifactId>
225 <!-- Test dependencies -->
227 <groupId>junit</groupId>
228 <artifactId>junit</artifactId>
232 <groupId>org.mockito</groupId>
233 <artifactId>mockito-core</artifactId>
238 <!-- Needs to make the profile in apache parent pom -->
240 <id>apache-release</id>
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-resources-plugin</artifactId>
248 <id>license-javadocs</id>
249 <phase>prepare-package</phase>
251 <goal>copy-resources</goal>
254 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
257 <directory>src/main/javadoc/META-INF/</directory>
258 <targetPath>META-INF/</targetPath>
260 <include>LICENSE</include>
261 <include>NOTICE</include>
263 <filtering>true</filtering>
273 <!-- Skip the tests in this module -->
275 <id>skipZooKeeperTests</id>
278 <name>skipZooKeeperTests</name>
282 <surefire.skipFirstPart>true</surefire.skipFirstPart>
283 <surefire.skipSecondPart>true</surefire.skipSecondPart>
286 <!-- Profiles for building against different hadoop versions -->
287 <!-- There are a lot of common dependencies used here, should investigate
288 if we can combine these profiles somehow -->
290 <!-- profile for building against Hadoop 2.x. This is the default. -->
295 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
296 <!--h2--><name>!hadoop.profile</name>
301 <groupId>org.apache.hadoop</groupId>
302 <artifactId>hadoop-common</artifactId>
305 <groupId>org.apache.hadoop</groupId>
306 <artifactId>hadoop-auth</artifactId>
312 <artifactId>maven-dependency-plugin</artifactId>
315 <id>create-mrapp-generated-classpath</id>
316 <phase>generate-test-resources</phase>
318 <goal>build-classpath</goal>
321 <!-- needed to run the unit test for DS to generate
322 the required classpath that is required in the env
323 of the launch container in the mini mr/yarn cluster
325 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
334 profile for building against Hadoop 3.0.x. Activate using:
335 mvn -Dhadoop.profile=3.0
341 <name>hadoop.profile</name>
346 <hadoop.version>${hadoop-three.version}</hadoop.version>
350 <groupId>org.apache.hadoop</groupId>
351 <artifactId>hadoop-common</artifactId>
354 <groupId>org.apache.hadoop</groupId>
355 <artifactId>hadoop-auth</artifactId>
361 <artifactId>maven-dependency-plugin</artifactId>
364 <id>create-mrapp-generated-classpath</id>
365 <phase>generate-test-resources</phase>
367 <goal>build-classpath</goal>
370 <!-- needed to run the unit test for DS to generate
371 the required classpath that is required in the env
372 of the launch container in the mini mr/yarn cluster
374 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>