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.3</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.hamcrest</groupId>
225 <artifactId>hamcrest-library</artifactId>
229 <groupId>org.mockito</groupId>
230 <artifactId>mockito-core</artifactId>
234 <groupId>org.apache.hadoop</groupId>
235 <artifactId>hadoop-minikdc</artifactId>
239 <groupId>org.slf4j</groupId>
240 <artifactId>jcl-over-slf4j</artifactId>
244 <groupId>org.slf4j</groupId>
245 <artifactId>jul-to-slf4j</artifactId>
249 <groupId>org.slf4j</groupId>
250 <artifactId>slf4j-log4j12</artifactId>
254 <groupId>log4j</groupId>
255 <artifactId>log4j</artifactId>
261 <id>build-with-jdk11</id>
267 <groupId>javax.xml.bind</groupId>
268 <artifactId>jaxb-api</artifactId>
272 <!-- Needs to make the profile in apache parent pom -->
274 <id>apache-release</id>
278 <groupId>org.apache.maven.plugins</groupId>
279 <artifactId>maven-resources-plugin</artifactId>
282 <id>license-javadocs</id>
283 <phase>prepare-package</phase>
285 <goal>copy-resources</goal>
288 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
291 <directory>src/main/javadoc/META-INF/</directory>
292 <targetPath>META-INF/</targetPath>
294 <include>LICENSE</include>
295 <include>NOTICE</include>
297 <filtering>true</filtering>
307 <!-- Skip the tests in this module -->
309 <id>skipServerTests</id>
312 <name>skipServerTests</name>
316 <surefire.skipFirstPart>true</surefire.skipFirstPart>
317 <surefire.skipSecondPart>true</surefire.skipSecondPart>
320 <!-- Special builds -->
321 <!-- Profiles for building against different hadoop versions -->
322 <!-- There are a lot of common dependencies used here, should investigate
323 if we can combine these profiles somehow -->
325 <!-- profile for building against Hadoop 2.x. This is the default. -->
330 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
331 <!--h2--><name>!hadoop.profile</name>
336 <groupId>org.apache.hadoop</groupId>
337 <artifactId>hadoop-common</artifactId>
340 <groupId>org.apache.hadoop</groupId>
341 <artifactId>hadoop-minicluster</artifactId>
344 <groupId>com.google.guava</groupId>
345 <artifactId>guava</artifactId>
348 <groupId>org.apache.zookeeper</groupId>
349 <artifactId>zookeeper</artifactId>
355 <groupId>org.apache.hadoop</groupId>
356 <artifactId>hadoop-auth</artifactId>
359 <groupId>org.codehaus.jackson</groupId>
360 <artifactId>jackson-core-asl</artifactId>
361 <version>1.9.13</version>
367 <artifactId>maven-dependency-plugin</artifactId>
370 <id>create-mrapp-generated-classpath</id>
371 <phase>generate-test-resources</phase>
373 <goal>build-classpath</goal>
376 <!-- needed to run the unit test for DS to generate
377 the required classpath that is required in the env
378 of the launch container in the mini mr/yarn cluster
380 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
389 profile for building against Hadoop 3.0.x. Activate using:
390 mvn -Dhadoop.profile=3.0
396 <name>hadoop.profile</name>
402 <groupId>org.apache.hadoop</groupId>
403 <artifactId>hadoop-common</artifactId>
406 <groupId>org.apache.hadoop</groupId>
407 <artifactId>hadoop-minicluster</artifactId>
410 <groupId>com.google.guava</groupId>
411 <artifactId>guava</artifactId>
414 <groupId>javax.xml.bind</groupId>
415 <artifactId>jaxb-api</artifactId>
418 <groupId>javax.ws.rs</groupId>
419 <artifactId>jsr311-api</artifactId>
425 <groupId>com.fasterxml.jackson.core</groupId>
426 <artifactId>jackson-core</artifactId>
432 <artifactId>maven-dependency-plugin</artifactId>
435 <id>create-mrapp-generated-classpath</id>
436 <phase>generate-test-resources</phase>
438 <goal>build-classpath</goal>
441 <!-- needed to run the unit test for DS to generate
442 the required classpath that is required in the env
443 of the launch container in the mini mr/yarn cluster
445 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
454 <id>eclipse-specific</id>
457 <name>m2e.version</name>
463 <!--This plugin's configuration is used to store Eclipse m2e settings
464 only. It has no influence on the Maven build itself and needs to
465 be kept in plugin management, not in the actual plugins. -->
467 <groupId>org.eclipse.m2e</groupId>
468 <artifactId>lifecycle-mapping</artifactId>
470 <lifecycleMappingMetadata>
473 <pluginExecutionFilter>
474 <groupId>org.apache.maven.plugins</groupId>
475 <artifactId>maven-antrun-plugin</artifactId>
476 <versionRange>[1.6,)</versionRange>
480 </pluginExecutionFilter>
483 <runOnIncremental>false</runOnIncremental>
484 <runOnConfiguration>true</runOnConfiguration>
489 <pluginExecutionFilter>
490 <groupId>org.apache.maven.plugins</groupId>
491 <artifactId>maven-dependency-plugin</artifactId>
492 <versionRange>[2.8,)</versionRange>
494 <goal>build-classpath</goal>
496 </pluginExecutionFilter>
502 </lifecycleMappingMetadata>