Preparing development version 2.4.2-SNAPSHOT
[hbase.git] / hbase-http / pom.xml
bloba9a14a907b171fee9c5c539a4de05ff70b21ba5c
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.2-SNAPSHOT</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.mockito</groupId>
225       <artifactId>mockito-core</artifactId>
226       <scope>test</scope>
227     </dependency>
228     <dependency>
229       <groupId>org.apache.hadoop</groupId>
230       <artifactId>hadoop-minikdc</artifactId>
231       <scope>test</scope>
232     </dependency>
233     <dependency>
234       <groupId>org.slf4j</groupId>
235       <artifactId>jcl-over-slf4j</artifactId>
236       <scope>test</scope>
237     </dependency>
238     <dependency>
239       <groupId>org.slf4j</groupId>
240       <artifactId>jul-to-slf4j</artifactId>
241       <scope>test</scope>
242     </dependency>
243     <dependency>
244       <groupId>org.slf4j</groupId>
245       <artifactId>slf4j-log4j12</artifactId>
246       <scope>test</scope>
247     </dependency>
248     <dependency>
249       <groupId>log4j</groupId>
250       <artifactId>log4j</artifactId>
251       <scope>test</scope>
252     </dependency>
253   </dependencies>
254   <profiles>
255     <profile>
256       <id>build-with-jdk11</id>
257       <activation>
258         <jdk>[1.11,)</jdk>
259       </activation>
260       <dependencies>
261         <dependency>
262           <groupId>javax.xml.bind</groupId>
263           <artifactId>jaxb-api</artifactId>
264         </dependency>
265       </dependencies>
266     </profile>
267     <!-- Needs to make the profile in apache parent pom -->
268     <profile>
269       <id>apache-release</id>
270       <build>
271         <plugins>
272           <plugin>
273             <groupId>org.apache.maven.plugins</groupId>
274             <artifactId>maven-resources-plugin</artifactId>
275             <executions>
276               <execution>
277                 <id>license-javadocs</id>
278                 <phase>prepare-package</phase>
279                 <goals>
280                   <goal>copy-resources</goal>
281                 </goals>
282                 <configuration>
283                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
284                   <resources>
285                     <resource>
286                       <directory>src/main/javadoc/META-INF/</directory>
287                       <targetPath>META-INF/</targetPath>
288                       <includes>
289                         <include>LICENSE</include>
290                         <include>NOTICE</include>
291                       </includes>
292                       <filtering>true</filtering>
293                     </resource>
294                   </resources>
295                 </configuration>
296               </execution>
297             </executions>
298           </plugin>
299         </plugins>
300       </build>
301     </profile>
302     <!-- Skip the tests in this module -->
303     <profile>
304       <id>skipServerTests</id>
305       <activation>
306         <property>
307           <name>skipServerTests</name>
308         </property>
309       </activation>
310       <properties>
311         <surefire.skipFirstPart>true</surefire.skipFirstPart>
312         <surefire.skipSecondPart>true</surefire.skipSecondPart>
313       </properties>
314     </profile>
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.  -->
321     <profile>
322       <id>hadoop-2.0</id>
323       <activation>
324         <property>
325             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
326             <!--h2--><name>!hadoop.profile</name>
327         </property>
328       </activation>
329       <dependencies>
330         <dependency>
331           <groupId>org.apache.hadoop</groupId>
332           <artifactId>hadoop-common</artifactId>
333         </dependency>
334         <dependency>
335           <groupId>org.apache.hadoop</groupId>
336           <artifactId>hadoop-minicluster</artifactId>
337           <exclusions>
338             <exclusion>
339               <groupId>com.google.guava</groupId>
340               <artifactId>guava</artifactId>
341             </exclusion>
342             <exclusion>
343               <groupId>org.apache.zookeeper</groupId>
344               <artifactId>zookeeper</artifactId>
345             </exclusion>
346           </exclusions>
347           <scope>test</scope>
348         </dependency>
349         <dependency>
350           <groupId>org.apache.hadoop</groupId>
351           <artifactId>hadoop-auth</artifactId>
352         </dependency>
353         <dependency>
354           <groupId>org.codehaus.jackson</groupId>
355           <artifactId>jackson-core-asl</artifactId>
356           <version>1.9.13</version>
357         </dependency>
358       </dependencies>
359       <build>
360         <plugins>
361           <plugin>
362             <artifactId>maven-dependency-plugin</artifactId>
363             <executions>
364               <execution>
365                 <id>create-mrapp-generated-classpath</id>
366                 <phase>generate-test-resources</phase>
367                 <goals>
368                   <goal>build-classpath</goal>
369                 </goals>
370                 <configuration>
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
374                   -->
375                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
376                 </configuration>
377               </execution>
378             </executions>
379           </plugin>
380         </plugins>
381       </build>
382     </profile>
383     <!--
384       profile for building against Hadoop 3.0.x. Activate using:
385        mvn -Dhadoop.profile=3.0
386     -->
387     <profile>
388       <id>hadoop-3.0</id>
389       <activation>
390         <property>
391           <name>hadoop.profile</name>
392           <value>3.0</value>
393         </property>
394       </activation>
395       <dependencies>
396         <dependency>
397           <groupId>org.apache.hadoop</groupId>
398           <artifactId>hadoop-common</artifactId>
399         </dependency>
400         <dependency>
401           <groupId>org.apache.hadoop</groupId>
402           <artifactId>hadoop-minicluster</artifactId>
403           <exclusions>
404             <exclusion>
405               <groupId>com.google.guava</groupId>
406               <artifactId>guava</artifactId>
407             </exclusion>
408             <exclusion>
409               <groupId>javax.xml.bind</groupId>
410               <artifactId>jaxb-api</artifactId>
411             </exclusion>
412             <exclusion>
413               <groupId>javax.ws.rs</groupId>
414               <artifactId>jsr311-api</artifactId>
415             </exclusion>
416           </exclusions>
417           <scope>test</scope>
418         </dependency>
419         <dependency>
420           <groupId>com.fasterxml.jackson.core</groupId>
421           <artifactId>jackson-core</artifactId>
422         </dependency>
423       </dependencies>
424       <build>
425         <plugins>
426           <plugin>
427             <artifactId>maven-dependency-plugin</artifactId>
428             <executions>
429               <execution>
430                 <id>create-mrapp-generated-classpath</id>
431                 <phase>generate-test-resources</phase>
432                 <goals>
433                   <goal>build-classpath</goal>
434                 </goals>
435                 <configuration>
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
439                   -->
440                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
441                 </configuration>
442               </execution>
443             </executions>
444           </plugin>
445         </plugins>
446       </build>
447     </profile>
448     <profile>
449       <id>eclipse-specific</id>
450       <activation>
451         <property>
452           <name>m2e.version</name>
453         </property>
454       </activation>
455       <build>
456         <pluginManagement>
457            <plugins>
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. -->
461             <plugin>
462               <groupId>org.eclipse.m2e</groupId>
463               <artifactId>lifecycle-mapping</artifactId>
464               <configuration>
465                 <lifecycleMappingMetadata>
466                   <pluginExecutions>
467                     <pluginExecution>
468                       <pluginExecutionFilter>
469                         <groupId>org.apache.maven.plugins</groupId>
470                         <artifactId>maven-antrun-plugin</artifactId>
471                         <versionRange>[1.6,)</versionRange>
472                         <goals>
473                           <goal>run</goal>
474                         </goals>
475                       </pluginExecutionFilter>
476                       <action>
477                         <execute>
478                           <runOnIncremental>false</runOnIncremental>
479                           <runOnConfiguration>true</runOnConfiguration>
480                         </execute>
481                       </action>
482                     </pluginExecution>
483                     <pluginExecution>
484                       <pluginExecutionFilter>
485                         <groupId>org.apache.maven.plugins</groupId>
486                         <artifactId>maven-dependency-plugin</artifactId>
487                         <versionRange>[2.8,)</versionRange>
488                         <goals>
489                           <goal>build-classpath</goal>
490                         </goals>
491                       </pluginExecutionFilter>
492                       <action>
493                         <ignore></ignore>
494                       </action>
495                     </pluginExecution>
496                   </pluginExecutions>
497                 </lifecycleMappingMetadata>
498               </configuration>
499             </plugin>
500           </plugins>
501         </pluginManagement>
502       </build>
503     </profile>
504   </profiles>
505 </project>