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.2-SNAPSHOT</version>
27 <relativePath>../hbase-build-configuration</relativePath>
29 <artifactId>hbase-http</artifactId>
30 <name>Apache HBase - HTTP</name>
31 <description>HTTP functionality for HBase Servers</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 <!-- licensing info from our bundled works -->
56 <groupId>org.apache.maven.plugins</groupId>
57 <artifactId>maven-remote-resources-plugin</artifactId>
62 <attachToTest>false</attachToTest>
64 <copyright-end-year>${build.year}</copyright-end-year>
65 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
66 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
67 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
68 <bundled-logo>${license.bundles.logo}</bundled-logo>
69 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
72 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
74 <supplementalModelArtifacts>
75 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
76 </supplementalModelArtifacts>
78 <supplementalModel>supplemental-models.xml</supplementalModel>
84 <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
85 tests (this is needed for upstream projects whose tests need this jar simply for
88 <!--Make it so assembly:single does nothing in here-->
89 <artifactId>maven-assembly-plugin</artifactId>
91 <skipAssembly>true</skipAssembly>
94 <!-- Make a jar and put the sources in the jar -->
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-source-plugin</artifactId>
100 <phase>package</phase>
103 <goal>test-jar</goal>
108 <!-- Testing plugins -->
110 <artifactId>maven-surefire-plugin</artifactId>
112 <systemPropertyVariables>
113 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
114 </systemPropertyVariables>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-checkstyle-plugin</artifactId>
121 <failOnViolation>true</failOnViolation>
125 <groupId>net.revelc.code</groupId>
126 <artifactId>warbucks-maven-plugin</artifactId>
129 <!-- General Resources -->
133 <groupId>org.apache.hbase.thirdparty</groupId>
134 <artifactId>hbase-shaded-miscellaneous</artifactId>
136 <!-- Intra-project dependencies -->
138 <groupId>org.apache.hbase</groupId>
139 <artifactId>hbase-logging</artifactId>
140 <type>test-jar</type>
144 <groupId>org.apache.hbase</groupId>
145 <artifactId>hbase-common</artifactId>
148 <groupId>org.apache.hbase</groupId>
149 <artifactId>hbase-common</artifactId>
150 <type>test-jar</type>
154 <groupId>org.apache.hbase</groupId>
155 <artifactId>hbase-annotations</artifactId>
156 <type>test-jar</type>
159 <!-- resource bundle only needed at build time -->
161 <groupId>org.apache.hbase</groupId>
162 <artifactId>hbase-resource-bundle</artifactId>
163 <optional>true</optional>
166 <groupId>org.apache.hbase.thirdparty</groupId>
167 <artifactId>hbase-shaded-jetty</artifactId>
170 <groupId>org.apache.hbase.thirdparty</groupId>
171 <artifactId>hbase-shaded-jersey</artifactId>
173 <!-- General dependencies -->
175 <groupId>org.slf4j</groupId>
176 <artifactId>slf4j-api</artifactId>
179 <groupId>javax.servlet</groupId>
180 <artifactId>javax.servlet-api</artifactId>
183 <groupId>javax.ws.rs</groupId>
184 <artifactId>javax.ws.rs-api</artifactId>
187 <groupId>com.github.stephenc.findbugs</groupId>
188 <artifactId>findbugs-annotations</artifactId>
189 <scope>compile</scope>
190 <optional>true</optional>
192 <!-- Test dependencies -->
194 <groupId>org.apache.kerby</groupId>
195 <artifactId>kerb-simplekdc</artifactId>
199 <groupId>org.bouncycastle</groupId>
200 <artifactId>bcprov-jdk15on</artifactId>
204 <groupId>org.apache.kerby</groupId>
205 <artifactId>kerb-core</artifactId>
209 <groupId>org.apache.httpcomponents</groupId>
210 <artifactId>httpclient</artifactId>
214 <groupId>org.apache.httpcomponents</groupId>
215 <artifactId>httpcore</artifactId>
219 <groupId>junit</groupId>
220 <artifactId>junit</artifactId>
224 <groupId>org.mockito</groupId>
225 <artifactId>mockito-core</artifactId>
229 <groupId>org.apache.hadoop</groupId>
230 <artifactId>hadoop-minikdc</artifactId>
234 <groupId>org.slf4j</groupId>
235 <artifactId>jcl-over-slf4j</artifactId>
239 <groupId>org.slf4j</groupId>
240 <artifactId>jul-to-slf4j</artifactId>
244 <groupId>org.slf4j</groupId>
245 <artifactId>slf4j-log4j12</artifactId>
249 <groupId>log4j</groupId>
250 <artifactId>log4j</artifactId>
256 <id>build-with-jdk11</id>
262 <groupId>javax.xml.bind</groupId>
263 <artifactId>jaxb-api</artifactId>
267 <!-- Needs to make the profile in apache parent pom -->
269 <id>apache-release</id>
273 <groupId>org.apache.maven.plugins</groupId>
274 <artifactId>maven-resources-plugin</artifactId>
277 <id>license-javadocs</id>
278 <phase>prepare-package</phase>
280 <goal>copy-resources</goal>
283 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
286 <directory>src/main/javadoc/META-INF/</directory>
287 <targetPath>META-INF/</targetPath>
289 <include>LICENSE</include>
290 <include>NOTICE</include>
292 <filtering>true</filtering>
302 <!-- Skip the tests in this module -->
304 <id>skipServerTests</id>
307 <name>skipServerTests</name>
311 <surefire.skipFirstPart>true</surefire.skipFirstPart>
312 <surefire.skipSecondPart>true</surefire.skipSecondPart>
315 <!-- Special builds -->
316 <!-- Profiles for building against different hadoop versions -->
317 <!-- There are a lot of common dependencies used here, should investigate
318 if we can combine these profiles somehow -->
320 <!-- profile for building against Hadoop 2.x. This is the default. -->
325 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
326 <!--h2--><name>!hadoop.profile</name>
331 <groupId>org.apache.hadoop</groupId>
332 <artifactId>hadoop-common</artifactId>
335 <groupId>org.apache.hadoop</groupId>
336 <artifactId>hadoop-minicluster</artifactId>
339 <groupId>com.google.guava</groupId>
340 <artifactId>guava</artifactId>
343 <groupId>org.apache.zookeeper</groupId>
344 <artifactId>zookeeper</artifactId>
350 <groupId>org.apache.hadoop</groupId>
351 <artifactId>hadoop-auth</artifactId>
354 <groupId>org.codehaus.jackson</groupId>
355 <artifactId>jackson-core-asl</artifactId>
356 <version>1.9.13</version>
362 <artifactId>maven-dependency-plugin</artifactId>
365 <id>create-mrapp-generated-classpath</id>
366 <phase>generate-test-resources</phase>
368 <goal>build-classpath</goal>
371 <!-- needed to run the unit test for DS to generate
372 the required classpath that is required in the env
373 of the launch container in the mini mr/yarn cluster
375 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
384 profile for building against Hadoop 3.0.x. Activate using:
385 mvn -Dhadoop.profile=3.0
391 <name>hadoop.profile</name>
397 <groupId>org.apache.hadoop</groupId>
398 <artifactId>hadoop-common</artifactId>
401 <groupId>org.apache.hadoop</groupId>
402 <artifactId>hadoop-minicluster</artifactId>
405 <groupId>com.google.guava</groupId>
406 <artifactId>guava</artifactId>
409 <groupId>javax.xml.bind</groupId>
410 <artifactId>jaxb-api</artifactId>
413 <groupId>javax.ws.rs</groupId>
414 <artifactId>jsr311-api</artifactId>
420 <groupId>com.fasterxml.jackson.core</groupId>
421 <artifactId>jackson-core</artifactId>
427 <artifactId>maven-dependency-plugin</artifactId>
430 <id>create-mrapp-generated-classpath</id>
431 <phase>generate-test-resources</phase>
433 <goal>build-classpath</goal>
436 <!-- needed to run the unit test for DS to generate
437 the required classpath that is required in the env
438 of the launch container in the mini mr/yarn cluster
440 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
449 <id>eclipse-specific</id>
452 <name>m2e.version</name>
458 <!--This plugin's configuration is used to store Eclipse m2e settings
459 only. It has no influence on the Maven build itself and needs to
460 be kept in plugin management, not in the actual plugins. -->
462 <groupId>org.eclipse.m2e</groupId>
463 <artifactId>lifecycle-mapping</artifactId>
465 <lifecycleMappingMetadata>
468 <pluginExecutionFilter>
469 <groupId>org.apache.maven.plugins</groupId>
470 <artifactId>maven-antrun-plugin</artifactId>
471 <versionRange>[1.6,)</versionRange>
475 </pluginExecutionFilter>
478 <runOnIncremental>false</runOnIncremental>
479 <runOnConfiguration>true</runOnConfiguration>
484 <pluginExecutionFilter>
485 <groupId>org.apache.maven.plugins</groupId>
486 <artifactId>maven-dependency-plugin</artifactId>
487 <versionRange>[2.8,)</versionRange>
489 <goal>build-classpath</goal>
491 </pluginExecutionFilter>
497 </lifecycleMappingMetadata>