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-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>
58 <version>1.5</version>
63 <attachToTest>false</attachToTest>
65 <copyright-end-year>${build.year}</copyright-end-year>
66 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
67 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
68 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
69 <bundled-logo>${license.bundles.logo}</bundled-logo>
70 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
73 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
75 <supplementalModelArtifacts>
76 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
77 </supplementalModelArtifacts>
79 <supplementalModel>supplemental-models.xml</supplementalModel>
85 <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
86 tests (this is needed for upstream projects whose tests need this jar simply for
89 <!--Make it so assembly:single does nothing in here-->
90 <artifactId>maven-assembly-plugin</artifactId>
92 <skipAssembly>true</skipAssembly>
95 <!-- Make a jar and put the sources in the jar -->
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-source-plugin</artifactId>
101 <phase>package</phase>
104 <goal>test-jar</goal>
109 <!-- Run findbugs -->
111 <groupId>org.codehaus.mojo</groupId>
112 <artifactId>findbugs-maven-plugin</artifactId>
114 <!-- Testing plugins -->
116 <artifactId>maven-surefire-plugin</artifactId>
118 <systemPropertyVariables>
119 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
120 </systemPropertyVariables>
124 <groupId>net.revelc.code</groupId>
125 <artifactId>warbucks-maven-plugin</artifactId>
128 <!-- General Resources -->
131 <!--This plugin's configuration is used to store Eclipse m2e settings
132 only. It has no influence on the Maven build itself and needs to
133 be kept in plugin management, not in the actual plugins. -->
135 <groupId>org.eclipse.m2e</groupId>
136 <artifactId>lifecycle-mapping</artifactId>
138 <lifecycleMappingMetadata>
141 <pluginExecutionFilter>
142 <groupId>org.apache.maven.plugins</groupId>
143 <artifactId>maven-antrun-plugin</artifactId>
144 <versionRange>[1.6,)</versionRange>
148 </pluginExecutionFilter>
151 <runOnIncremental>false</runOnIncremental>
152 <runOnConfiguration>true</runOnConfiguration>
157 <pluginExecutionFilter>
158 <groupId>org.apache.maven.plugins</groupId>
159 <artifactId>maven-dependency-plugin</artifactId>
160 <versionRange>[2.8,)</versionRange>
162 <goal>build-classpath</goal>
164 </pluginExecutionFilter>
170 </lifecycleMappingMetadata>
178 <groupId>org.apache.hbase.thirdparty</groupId>
179 <artifactId>hbase-shaded-miscellaneous</artifactId>
181 <!-- Intra-project dependencies -->
183 <groupId>org.apache.hbase</groupId>
184 <artifactId>hbase-common</artifactId>
187 <groupId>org.apache.hbase</groupId>
188 <artifactId>hbase-common</artifactId>
189 <type>test-jar</type>
193 <groupId>org.apache.hbase</groupId>
194 <artifactId>hbase-annotations</artifactId>
195 <type>test-jar</type>
198 <!-- resource bundle only needed at build time -->
200 <groupId>org.apache.hbase</groupId>
201 <artifactId>hbase-resource-bundle</artifactId>
202 <optional>true</optional>
205 <groupId>org.eclipse.jetty</groupId>
206 <artifactId>jetty-server</artifactId>
209 <groupId>org.eclipse.jetty</groupId>
210 <artifactId>jetty-servlet</artifactId>
213 <groupId>org.eclipse.jetty</groupId>
214 <artifactId>jetty-util</artifactId>
217 <groupId>org.eclipse.jetty</groupId>
218 <artifactId>jetty-util-ajax</artifactId>
221 <groupId>org.eclipse.jetty</groupId>
222 <artifactId>jetty-webapp</artifactId>
225 <groupId>org.eclipse.jetty</groupId>
226 <artifactId>jetty-http</artifactId>
229 <groupId>org.eclipse.jetty</groupId>
230 <artifactId>jetty-security</artifactId>
233 <groupId>org.glassfish.jersey.core</groupId>
234 <artifactId>jersey-server</artifactId>
237 <groupId>org.glassfish.jersey.containers</groupId>
238 <artifactId>jersey-container-servlet-core</artifactId>
240 <!-- General dependencies -->
242 <groupId>org.slf4j</groupId>
243 <artifactId>slf4j-api</artifactId>
246 <groupId>log4j</groupId>
247 <artifactId>log4j</artifactId>
250 <groupId>javax.servlet</groupId>
251 <artifactId>javax.servlet-api</artifactId>
254 <groupId>javax.ws.rs</groupId>
255 <artifactId>javax.ws.rs-api</artifactId>
258 <!-- Test dependencies -->
260 <groupId>org.apache.kerby</groupId>
261 <artifactId>kerb-simplekdc</artifactId>
265 <groupId>org.bouncycastle</groupId>
266 <artifactId>bcprov-jdk16</artifactId>
270 <groupId>org.apache.kerby</groupId>
271 <artifactId>kerb-core</artifactId>
275 <groupId>org.apache.httpcomponents</groupId>
276 <artifactId>httpclient</artifactId>
280 <groupId>org.apache.httpcomponents</groupId>
281 <artifactId>httpcore</artifactId>
285 <groupId>junit</groupId>
286 <artifactId>junit</artifactId>
290 <groupId>org.mockito</groupId>
291 <artifactId>mockito-core</artifactId>
296 <!-- Needs to make the profile in apache parent pom -->
298 <id>apache-release</id>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-resources-plugin</artifactId>
306 <id>license-javadocs</id>
307 <phase>prepare-package</phase>
309 <goal>copy-resources</goal>
312 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
315 <directory>src/main/javadoc/META-INF/</directory>
316 <targetPath>META-INF/</targetPath>
318 <include>LICENSE</include>
319 <include>NOTICE</include>
321 <filtering>true</filtering>
331 <!-- Skip the tests in this module -->
333 <id>skipServerTests</id>
336 <name>skipServerTests</name>
340 <surefire.skipFirstPart>true</surefire.skipFirstPart>
341 <surefire.skipSecondPart>true</surefire.skipSecondPart>
344 <!-- Special builds -->
345 <!-- Profiles for building against different hadoop versions -->
346 <!-- There are a lot of common dependencies used here, should investigate
347 if we can combine these profiles somehow -->
349 <!-- profile for building against Hadoop 2.x. This is the default. -->
354 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
355 <!--h2--><name>!hadoop.profile</name>
360 <groupId>org.apache.hadoop</groupId>
361 <artifactId>hadoop-common</artifactId>
364 <groupId>org.apache.hadoop</groupId>
365 <artifactId>hadoop-minicluster</artifactId>
368 <groupId>com.google.guava</groupId>
369 <artifactId>guava</artifactId>
372 <groupId>org.apache.zookeeper</groupId>
373 <artifactId>zookeeper</artifactId>
379 <groupId>org.apache.hadoop</groupId>
380 <artifactId>hadoop-auth</artifactId>
386 <artifactId>maven-dependency-plugin</artifactId>
389 <id>create-mrapp-generated-classpath</id>
390 <phase>generate-test-resources</phase>
392 <goal>build-classpath</goal>
395 <!-- needed to run the unit test for DS to generate
396 the required classpath that is required in the env
397 of the launch container in the mini mr/yarn cluster
399 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
408 profile for building against Hadoop 3.0.x. Activate using:
409 mvn -Dhadoop.profile=3.0
415 <name>hadoop.profile</name>
420 <hadoop.version>${hadoop-three.version}</hadoop.version>
424 <groupId>org.apache.hadoop</groupId>
425 <artifactId>hadoop-common</artifactId>
428 <groupId>org.apache.hadoop</groupId>
429 <artifactId>hadoop-minicluster</artifactId>
432 <groupId>com.google.guava</groupId>
433 <artifactId>guava</artifactId>
442 <artifactId>maven-dependency-plugin</artifactId>
445 <id>create-mrapp-generated-classpath</id>
446 <phase>generate-test-resources</phase>
448 <goal>build-classpath</goal>
451 <!-- needed to run the unit test for DS to generate
452 the required classpath that is required in the env
453 of the launch container in the mini mr/yarn cluster
455 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>