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-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 <!-- Run findbugs -->
110 <groupId>org.codehaus.mojo</groupId>
111 <artifactId>findbugs-maven-plugin</artifactId>
113 <!-- Testing plugins -->
115 <artifactId>maven-surefire-plugin</artifactId>
117 <systemPropertyVariables>
118 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
119 </systemPropertyVariables>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-checkstyle-plugin</artifactId>
126 <failOnViolation>true</failOnViolation>
130 <groupId>net.revelc.code</groupId>
131 <artifactId>warbucks-maven-plugin</artifactId>
134 <!-- General Resources -->
138 <groupId>org.apache.hbase.thirdparty</groupId>
139 <artifactId>hbase-shaded-miscellaneous</artifactId>
141 <!-- Intra-project dependencies -->
143 <groupId>org.apache.hbase</groupId>
144 <artifactId>hbase-common</artifactId>
147 <groupId>org.apache.hbase</groupId>
148 <artifactId>hbase-common</artifactId>
149 <type>test-jar</type>
153 <groupId>org.apache.hbase</groupId>
154 <artifactId>hbase-annotations</artifactId>
155 <type>test-jar</type>
158 <!-- resource bundle only needed at build time -->
160 <groupId>org.apache.hbase</groupId>
161 <artifactId>hbase-resource-bundle</artifactId>
162 <optional>true</optional>
165 <groupId>org.eclipse.jetty</groupId>
166 <artifactId>jetty-server</artifactId>
169 <groupId>org.eclipse.jetty</groupId>
170 <artifactId>jetty-servlet</artifactId>
173 <groupId>org.eclipse.jetty</groupId>
174 <artifactId>jetty-util</artifactId>
177 <groupId>org.eclipse.jetty</groupId>
178 <artifactId>jetty-util-ajax</artifactId>
181 <groupId>org.eclipse.jetty</groupId>
182 <artifactId>jetty-webapp</artifactId>
185 <groupId>org.eclipse.jetty</groupId>
186 <artifactId>jetty-http</artifactId>
189 <groupId>org.eclipse.jetty</groupId>
190 <artifactId>jetty-security</artifactId>
193 <groupId>org.glassfish.jersey.core</groupId>
194 <artifactId>jersey-server</artifactId>
197 <groupId>org.glassfish.jersey.containers</groupId>
198 <artifactId>jersey-container-servlet-core</artifactId>
200 <!-- General dependencies -->
202 <groupId>org.slf4j</groupId>
203 <artifactId>slf4j-api</artifactId>
206 <groupId>log4j</groupId>
207 <artifactId>log4j</artifactId>
210 <groupId>javax.servlet</groupId>
211 <artifactId>javax.servlet-api</artifactId>
214 <groupId>javax.ws.rs</groupId>
215 <artifactId>javax.ws.rs-api</artifactId>
218 <!-- Test dependencies -->
220 <groupId>org.apache.kerby</groupId>
221 <artifactId>kerb-simplekdc</artifactId>
225 <groupId>org.bouncycastle</groupId>
226 <artifactId>bcprov-jdk15on</artifactId>
230 <groupId>org.apache.kerby</groupId>
231 <artifactId>kerb-core</artifactId>
235 <groupId>org.apache.httpcomponents</groupId>
236 <artifactId>httpclient</artifactId>
240 <groupId>org.apache.httpcomponents</groupId>
241 <artifactId>httpcore</artifactId>
245 <groupId>junit</groupId>
246 <artifactId>junit</artifactId>
250 <groupId>org.mockito</groupId>
251 <artifactId>mockito-core</artifactId>
255 <groupId>org.apache.hadoop</groupId>
256 <artifactId>hadoop-minikdc</artifactId>
261 <!-- Needs to make the profile in apache parent pom -->
263 <id>apache-release</id>
267 <groupId>org.apache.maven.plugins</groupId>
268 <artifactId>maven-resources-plugin</artifactId>
271 <id>license-javadocs</id>
272 <phase>prepare-package</phase>
274 <goal>copy-resources</goal>
277 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
280 <directory>src/main/javadoc/META-INF/</directory>
281 <targetPath>META-INF/</targetPath>
283 <include>LICENSE</include>
284 <include>NOTICE</include>
286 <filtering>true</filtering>
296 <!-- Skip the tests in this module -->
298 <id>skipServerTests</id>
301 <name>skipServerTests</name>
305 <surefire.skipFirstPart>true</surefire.skipFirstPart>
306 <surefire.skipSecondPart>true</surefire.skipSecondPart>
309 <!-- Special builds -->
310 <!-- Profiles for building against different hadoop versions -->
311 <!-- There are a lot of common dependencies used here, should investigate
312 if we can combine these profiles somehow -->
314 <!-- profile for building against Hadoop 2.x. This is the default. -->
319 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
320 <!--h2--><name>!hadoop.profile</name>
325 <groupId>org.apache.hadoop</groupId>
326 <artifactId>hadoop-common</artifactId>
329 <groupId>org.apache.hadoop</groupId>
330 <artifactId>hadoop-minicluster</artifactId>
333 <groupId>com.google.guava</groupId>
334 <artifactId>guava</artifactId>
337 <groupId>org.apache.zookeeper</groupId>
338 <artifactId>zookeeper</artifactId>
344 <groupId>org.apache.hadoop</groupId>
345 <artifactId>hadoop-auth</artifactId>
348 <groupId>org.codehaus.jackson</groupId>
349 <artifactId>jackson-core-asl</artifactId>
350 <version>1.9.13</version>
356 <artifactId>maven-dependency-plugin</artifactId>
359 <id>create-mrapp-generated-classpath</id>
360 <phase>generate-test-resources</phase>
362 <goal>build-classpath</goal>
365 <!-- needed to run the unit test for DS to generate
366 the required classpath that is required in the env
367 of the launch container in the mini mr/yarn cluster
369 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
378 profile for building against Hadoop 3.0.x. Activate using:
379 mvn -Dhadoop.profile=3.0
385 <name>hadoop.profile</name>
391 <groupId>org.apache.hadoop</groupId>
392 <artifactId>hadoop-common</artifactId>
395 <groupId>org.apache.hadoop</groupId>
396 <artifactId>hadoop-minicluster</artifactId>
399 <groupId>com.google.guava</groupId>
400 <artifactId>guava</artifactId>
406 <groupId>com.fasterxml.jackson.core</groupId>
407 <artifactId>jackson-core</artifactId>
413 <artifactId>maven-dependency-plugin</artifactId>
416 <id>create-mrapp-generated-classpath</id>
417 <phase>generate-test-resources</phase>
419 <goal>build-classpath</goal>
422 <!-- needed to run the unit test for DS to generate
423 the required classpath that is required in the env
424 of the launch container in the mini mr/yarn cluster
426 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
435 <id>eclipse-specific</id>
438 <name>m2e.version</name>
444 <!--This plugin's configuration is used to store Eclipse m2e settings
445 only. It has no influence on the Maven build itself and needs to
446 be kept in plugin management, not in the actual plugins. -->
448 <groupId>org.eclipse.m2e</groupId>
449 <artifactId>lifecycle-mapping</artifactId>
451 <lifecycleMappingMetadata>
454 <pluginExecutionFilter>
455 <groupId>org.apache.maven.plugins</groupId>
456 <artifactId>maven-antrun-plugin</artifactId>
457 <versionRange>[1.6,)</versionRange>
461 </pluginExecutionFilter>
464 <runOnIncremental>false</runOnIncremental>
465 <runOnConfiguration>true</runOnConfiguration>
470 <pluginExecutionFilter>
471 <groupId>org.apache.maven.plugins</groupId>
472 <artifactId>maven-dependency-plugin</artifactId>
473 <versionRange>[2.8,)</versionRange>
475 <goal>build-classpath</goal>
477 </pluginExecutionFilter>
483 </lifecycleMappingMetadata>