Preparing hbase release 2.4.3RC1; tagging and updates to CHANGES.md and RELEASENOTES.md
[hbase.git] / hbase-http / pom.xml
blob8ad9fef4812161dd261438dc5a1590dec2c71460
1 <?xml version="1.0"?>
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">
3   <!--
4 /**
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
12  *
13  *     http://www.apache.org/licenses/LICENSE-2.0
14  *
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.
20  */
21 -->
22   <modelVersion>4.0.0</modelVersion>
23   <parent>
24     <artifactId>hbase-build-configuration</artifactId>
25     <groupId>org.apache.hbase</groupId>
26     <version>2.4.3</version>
27     <relativePath>../hbase-build-configuration</relativePath>
28   </parent>
29   <artifactId>hbase-http</artifactId>
30   <name>Apache HBase - HTTP</name>
31   <description>HTTP functionality for HBase Servers</description>
33   <build>
34     <!-- Makes sure the resources get added before they are processed
35       by placing this first -->
36     <testResources>
37       <!-- Our test artifact has different license info than our source/bin ones -->
38       <testResource>
39         <directory>src/test/resources/META-INF/</directory>
40         <targetPath>META-INF/</targetPath>
41         <includes>
42           <include>NOTICE</include>
43         </includes>
44         <filtering>true</filtering>
45       </testResource>
46       <testResource>
47         <directory>src/test/resources</directory>
48         <includes>
49           <include>**/**</include>
50         </includes>
51       </testResource>
52     </testResources>
53     <plugins>
54       <!-- licensing info from our bundled works -->
55       <plugin>
56         <groupId>org.apache.maven.plugins</groupId>
57         <artifactId>maven-remote-resources-plugin</artifactId>
58         <executions>
59           <execution>
60             <id>default</id>
61             <configuration>
62               <attachToTest>false</attachToTest>
63               <properties>
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>
70               </properties>
71               <resourceBundles>
72                 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
73               </resourceBundles>
74               <supplementalModelArtifacts>
75                 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
76               </supplementalModelArtifacts>
77               <supplementalModels>
78                 <supplementalModel>supplemental-models.xml</supplementalModel>
79               </supplementalModels>
80             </configuration>
81           </execution>
82         </executions>
83       </plugin>
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
86         compilation) -->
87       <plugin>
88         <!--Make it so assembly:single does nothing in here-->
89         <artifactId>maven-assembly-plugin</artifactId>
90         <configuration>
91           <skipAssembly>true</skipAssembly>
92         </configuration>
93       </plugin>
94       <!-- Make a jar and put the sources in the jar -->
95       <plugin>
96         <groupId>org.apache.maven.plugins</groupId>
97         <artifactId>maven-source-plugin</artifactId>
98         <executions>
99           <execution>
100             <phase>package</phase>
101             <goals>
102               <goal>jar</goal>
103               <goal>test-jar</goal>
104             </goals>
105           </execution>
106         </executions>
107       </plugin>
108       <!-- Testing plugins -->
109       <plugin>
110         <artifactId>maven-surefire-plugin</artifactId>
111         <configuration>
112           <systemPropertyVariables>
113             <test.build.webapps>target/test-classes/webapps</test.build.webapps>
114           </systemPropertyVariables>
115         </configuration>
116       </plugin>
117       <plugin>
118         <groupId>org.apache.maven.plugins</groupId>
119         <artifactId>maven-checkstyle-plugin</artifactId>
120         <configuration>
121           <failOnViolation>true</failOnViolation>
122         </configuration>
123       </plugin>
124       <plugin>
125         <groupId>net.revelc.code</groupId>
126         <artifactId>warbucks-maven-plugin</artifactId>
127       </plugin>
128     </plugins>
129     <!-- General Resources -->
130   </build>
131   <dependencies>
132     <dependency>
133       <groupId>org.apache.hbase.thirdparty</groupId>
134       <artifactId>hbase-shaded-miscellaneous</artifactId>
135     </dependency>
136     <!-- Intra-project dependencies -->
137     <dependency>
138       <groupId>org.apache.hbase</groupId>
139       <artifactId>hbase-logging</artifactId>
140       <type>test-jar</type>
141       <scope>test</scope>
142     </dependency>
143     <dependency>
144       <groupId>org.apache.hbase</groupId>
145       <artifactId>hbase-common</artifactId>
146     </dependency>
147     <dependency>
148       <groupId>org.apache.hbase</groupId>
149       <artifactId>hbase-common</artifactId>
150       <type>test-jar</type>
151       <scope>test</scope>
152     </dependency>
153     <dependency>
154       <groupId>org.apache.hbase</groupId>
155       <artifactId>hbase-annotations</artifactId>
156       <type>test-jar</type>
157       <scope>test</scope>
158     </dependency>
159     <!-- resource bundle only needed at build time -->
160     <dependency>
161       <groupId>org.apache.hbase</groupId>
162       <artifactId>hbase-resource-bundle</artifactId>
163       <optional>true</optional>
164     </dependency>
165     <dependency>
166       <groupId>org.apache.hbase.thirdparty</groupId>
167       <artifactId>hbase-shaded-jetty</artifactId>
168     </dependency>
169     <dependency>
170       <groupId>org.apache.hbase.thirdparty</groupId>
171       <artifactId>hbase-shaded-jersey</artifactId>
172     </dependency>
173     <!-- General dependencies -->
174     <dependency>
175       <groupId>org.slf4j</groupId>
176       <artifactId>slf4j-api</artifactId>
177     </dependency>
178     <dependency>
179       <groupId>javax.servlet</groupId>
180       <artifactId>javax.servlet-api</artifactId>
181     </dependency>
182     <dependency>
183       <groupId>javax.ws.rs</groupId>
184       <artifactId>javax.ws.rs-api</artifactId>
185     </dependency>
186     <dependency>
187       <groupId>com.github.stephenc.findbugs</groupId>
188       <artifactId>findbugs-annotations</artifactId>
189       <scope>compile</scope>
190       <optional>true</optional>
191     </dependency>
192     <!-- Test dependencies -->
193     <dependency>
194       <groupId>org.apache.kerby</groupId>
195       <artifactId>kerb-simplekdc</artifactId>
196       <scope>test</scope>
197     </dependency>
198     <dependency>
199       <groupId>org.bouncycastle</groupId>
200       <artifactId>bcprov-jdk15on</artifactId>
201       <scope>test</scope>
202     </dependency>
203     <dependency>
204       <groupId>org.apache.kerby</groupId>
205       <artifactId>kerb-core</artifactId>
206       <scope>test</scope>
207     </dependency>
208     <dependency>
209       <groupId>org.apache.httpcomponents</groupId>
210       <artifactId>httpclient</artifactId>
211       <scope>test</scope>
212     </dependency>
213     <dependency>
214       <groupId>org.apache.httpcomponents</groupId>
215       <artifactId>httpcore</artifactId>
216       <scope>test</scope>
217     </dependency>
218     <dependency>
219       <groupId>junit</groupId>
220       <artifactId>junit</artifactId>
221       <scope>test</scope>
222     </dependency>
223     <dependency>
224       <groupId>org.hamcrest</groupId>
225       <artifactId>hamcrest-library</artifactId>
226       <scope>test</scope>
227     </dependency>
228     <dependency>
229       <groupId>org.mockito</groupId>
230       <artifactId>mockito-core</artifactId>
231       <scope>test</scope>
232     </dependency>
233     <dependency>
234       <groupId>org.apache.hadoop</groupId>
235       <artifactId>hadoop-minikdc</artifactId>
236       <scope>test</scope>
237     </dependency>
238     <dependency>
239       <groupId>org.slf4j</groupId>
240       <artifactId>jcl-over-slf4j</artifactId>
241       <scope>test</scope>
242     </dependency>
243     <dependency>
244       <groupId>org.slf4j</groupId>
245       <artifactId>jul-to-slf4j</artifactId>
246       <scope>test</scope>
247     </dependency>
248     <dependency>
249       <groupId>org.slf4j</groupId>
250       <artifactId>slf4j-log4j12</artifactId>
251       <scope>test</scope>
252     </dependency>
253     <dependency>
254       <groupId>log4j</groupId>
255       <artifactId>log4j</artifactId>
256       <scope>test</scope>
257     </dependency>
258   </dependencies>
259   <profiles>
260     <profile>
261       <id>build-with-jdk11</id>
262       <activation>
263         <jdk>[1.11,)</jdk>
264       </activation>
265       <dependencies>
266         <dependency>
267           <groupId>javax.xml.bind</groupId>
268           <artifactId>jaxb-api</artifactId>
269         </dependency>
270       </dependencies>
271     </profile>
272     <!-- Needs to make the profile in apache parent pom -->
273     <profile>
274       <id>apache-release</id>
275       <build>
276         <plugins>
277           <plugin>
278             <groupId>org.apache.maven.plugins</groupId>
279             <artifactId>maven-resources-plugin</artifactId>
280             <executions>
281               <execution>
282                 <id>license-javadocs</id>
283                 <phase>prepare-package</phase>
284                 <goals>
285                   <goal>copy-resources</goal>
286                 </goals>
287                 <configuration>
288                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
289                   <resources>
290                     <resource>
291                       <directory>src/main/javadoc/META-INF/</directory>
292                       <targetPath>META-INF/</targetPath>
293                       <includes>
294                         <include>LICENSE</include>
295                         <include>NOTICE</include>
296                       </includes>
297                       <filtering>true</filtering>
298                     </resource>
299                   </resources>
300                 </configuration>
301               </execution>
302             </executions>
303           </plugin>
304         </plugins>
305       </build>
306     </profile>
307     <!-- Skip the tests in this module -->
308     <profile>
309       <id>skipServerTests</id>
310       <activation>
311         <property>
312           <name>skipServerTests</name>
313         </property>
314       </activation>
315       <properties>
316         <surefire.skipFirstPart>true</surefire.skipFirstPart>
317         <surefire.skipSecondPart>true</surefire.skipSecondPart>
318       </properties>
319     </profile>
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.  -->
326     <profile>
327       <id>hadoop-2.0</id>
328       <activation>
329         <property>
330             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
331             <!--h2--><name>!hadoop.profile</name>
332         </property>
333       </activation>
334       <dependencies>
335         <dependency>
336           <groupId>org.apache.hadoop</groupId>
337           <artifactId>hadoop-common</artifactId>
338         </dependency>
339         <dependency>
340           <groupId>org.apache.hadoop</groupId>
341           <artifactId>hadoop-minicluster</artifactId>
342           <exclusions>
343             <exclusion>
344               <groupId>com.google.guava</groupId>
345               <artifactId>guava</artifactId>
346             </exclusion>
347             <exclusion>
348               <groupId>org.apache.zookeeper</groupId>
349               <artifactId>zookeeper</artifactId>
350             </exclusion>
351           </exclusions>
352           <scope>test</scope>
353         </dependency>
354         <dependency>
355           <groupId>org.apache.hadoop</groupId>
356           <artifactId>hadoop-auth</artifactId>
357         </dependency>
358         <dependency>
359           <groupId>org.codehaus.jackson</groupId>
360           <artifactId>jackson-core-asl</artifactId>
361           <version>1.9.13</version>
362         </dependency>
363       </dependencies>
364       <build>
365         <plugins>
366           <plugin>
367             <artifactId>maven-dependency-plugin</artifactId>
368             <executions>
369               <execution>
370                 <id>create-mrapp-generated-classpath</id>
371                 <phase>generate-test-resources</phase>
372                 <goals>
373                   <goal>build-classpath</goal>
374                 </goals>
375                 <configuration>
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
379                   -->
380                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
381                 </configuration>
382               </execution>
383             </executions>
384           </plugin>
385         </plugins>
386       </build>
387     </profile>
388     <!--
389       profile for building against Hadoop 3.0.x. Activate using:
390        mvn -Dhadoop.profile=3.0
391     -->
392     <profile>
393       <id>hadoop-3.0</id>
394       <activation>
395         <property>
396           <name>hadoop.profile</name>
397           <value>3.0</value>
398         </property>
399       </activation>
400       <dependencies>
401         <dependency>
402           <groupId>org.apache.hadoop</groupId>
403           <artifactId>hadoop-common</artifactId>
404         </dependency>
405         <dependency>
406           <groupId>org.apache.hadoop</groupId>
407           <artifactId>hadoop-minicluster</artifactId>
408           <exclusions>
409             <exclusion>
410               <groupId>com.google.guava</groupId>
411               <artifactId>guava</artifactId>
412             </exclusion>
413             <exclusion>
414               <groupId>javax.xml.bind</groupId>
415               <artifactId>jaxb-api</artifactId>
416             </exclusion>
417             <exclusion>
418               <groupId>javax.ws.rs</groupId>
419               <artifactId>jsr311-api</artifactId>
420             </exclusion>
421           </exclusions>
422           <scope>test</scope>
423         </dependency>
424         <dependency>
425           <groupId>com.fasterxml.jackson.core</groupId>
426           <artifactId>jackson-core</artifactId>
427         </dependency>
428       </dependencies>
429       <build>
430         <plugins>
431           <plugin>
432             <artifactId>maven-dependency-plugin</artifactId>
433             <executions>
434               <execution>
435                 <id>create-mrapp-generated-classpath</id>
436                 <phase>generate-test-resources</phase>
437                 <goals>
438                   <goal>build-classpath</goal>
439                 </goals>
440                 <configuration>
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
444                   -->
445                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
446                 </configuration>
447               </execution>
448             </executions>
449           </plugin>
450         </plugins>
451       </build>
452     </profile>
453     <profile>
454       <id>eclipse-specific</id>
455       <activation>
456         <property>
457           <name>m2e.version</name>
458         </property>
459       </activation>
460       <build>
461         <pluginManagement>
462            <plugins>
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. -->
466             <plugin>
467               <groupId>org.eclipse.m2e</groupId>
468               <artifactId>lifecycle-mapping</artifactId>
469               <configuration>
470                 <lifecycleMappingMetadata>
471                   <pluginExecutions>
472                     <pluginExecution>
473                       <pluginExecutionFilter>
474                         <groupId>org.apache.maven.plugins</groupId>
475                         <artifactId>maven-antrun-plugin</artifactId>
476                         <versionRange>[1.6,)</versionRange>
477                         <goals>
478                           <goal>run</goal>
479                         </goals>
480                       </pluginExecutionFilter>
481                       <action>
482                         <execute>
483                           <runOnIncremental>false</runOnIncremental>
484                           <runOnConfiguration>true</runOnConfiguration>
485                         </execute>
486                       </action>
487                     </pluginExecution>
488                     <pluginExecution>
489                       <pluginExecutionFilter>
490                         <groupId>org.apache.maven.plugins</groupId>
491                         <artifactId>maven-dependency-plugin</artifactId>
492                         <versionRange>[2.8,)</versionRange>
493                         <goals>
494                           <goal>build-classpath</goal>
495                         </goals>
496                       </pluginExecutionFilter>
497                       <action>
498                         <ignore></ignore>
499                       </action>
500                     </pluginExecution>
501                   </pluginExecutions>
502                 </lifecycleMappingMetadata>
503               </configuration>
504             </plugin>
505           </plugins>
506         </pluginManagement>
507       </build>
508     </profile>
509   </profiles>
510 </project>