HBASE-22220 Release hbase-connectors-1.0.0
[hbase.git] / hbase-http / pom.xml
blobd2875f8d8b0af5b7670975b242f4f76f3b0d0a3f
1 <?xml version="1.0"?>
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">
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>3.0.0-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         <version>1.5</version>
59         <executions>
60           <execution>
61             <id>default</id>
62             <configuration>
63               <attachToTest>false</attachToTest>
64               <properties>
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>
71               </properties>
72               <resourceBundles>
73                 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
74               </resourceBundles>
75               <supplementalModelArtifacts>
76                 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
77               </supplementalModelArtifacts>
78               <supplementalModels>
79                 <supplementalModel>supplemental-models.xml</supplementalModel>
80               </supplementalModels>
81             </configuration>
82           </execution>
83         </executions>
84       </plugin>
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
87         compilation) -->
88       <plugin>
89         <!--Make it so assembly:single does nothing in here-->
90         <artifactId>maven-assembly-plugin</artifactId>
91         <configuration>
92           <skipAssembly>true</skipAssembly>
93         </configuration>
94       </plugin>
95       <!-- Make a jar and put the sources in the jar -->
96       <plugin>
97         <groupId>org.apache.maven.plugins</groupId>
98         <artifactId>maven-source-plugin</artifactId>
99         <executions>
100           <execution>
101             <phase>package</phase>
102             <goals>
103               <goal>jar</goal>
104               <goal>test-jar</goal>
105             </goals>
106           </execution>
107         </executions>
108       </plugin>
109       <!-- Run findbugs -->
110       <plugin>
111         <groupId>org.codehaus.mojo</groupId>
112         <artifactId>findbugs-maven-plugin</artifactId>
113       </plugin>
114       <!-- Testing plugins -->
115       <plugin>
116         <artifactId>maven-surefire-plugin</artifactId>
117         <configuration>
118           <systemPropertyVariables>
119             <test.build.webapps>target/test-classes/webapps</test.build.webapps>
120           </systemPropertyVariables>
121         </configuration>
122       </plugin>
123       <plugin>
124         <groupId>org.apache.maven.plugins</groupId>
125         <artifactId>maven-checkstyle-plugin</artifactId>
126         <configuration>
127           <failOnViolation>true</failOnViolation>
128         </configuration>
129       </plugin>
130       <plugin>
131         <groupId>net.revelc.code</groupId>
132         <artifactId>warbucks-maven-plugin</artifactId>
133       </plugin>
134     </plugins>
135     <!-- General Resources -->
136   </build>
137   <dependencies>
138     <dependency>
139       <groupId>org.apache.hbase.thirdparty</groupId>
140       <artifactId>hbase-shaded-miscellaneous</artifactId>
141     </dependency>
142     <!-- Intra-project dependencies -->
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.eclipse.jetty</groupId>
167       <artifactId>jetty-server</artifactId>
168     </dependency>
169     <dependency>
170       <groupId>org.eclipse.jetty</groupId>
171       <artifactId>jetty-servlet</artifactId>
172     </dependency>
173     <dependency>
174       <groupId>org.eclipse.jetty</groupId>
175       <artifactId>jetty-util</artifactId>
176     </dependency>
177     <dependency>
178       <groupId>org.eclipse.jetty</groupId>
179       <artifactId>jetty-util-ajax</artifactId>
180     </dependency>
181     <dependency>
182       <groupId>org.eclipse.jetty</groupId>
183       <artifactId>jetty-webapp</artifactId>
184     </dependency>
185     <dependency>
186       <groupId>org.eclipse.jetty</groupId>
187       <artifactId>jetty-http</artifactId>
188     </dependency>
189     <dependency>
190       <groupId>org.eclipse.jetty</groupId>
191       <artifactId>jetty-security</artifactId>
192     </dependency>
193     <dependency>
194       <groupId>org.glassfish.jersey.core</groupId>
195       <artifactId>jersey-server</artifactId>
196     </dependency>
197     <dependency>
198       <groupId>org.glassfish.jersey.containers</groupId>
199       <artifactId>jersey-container-servlet-core</artifactId>
200     </dependency>
201     <!-- General dependencies -->
202     <dependency>
203       <groupId>org.slf4j</groupId>
204       <artifactId>slf4j-api</artifactId>
205     </dependency>
206     <dependency>
207       <groupId>log4j</groupId>
208       <artifactId>log4j</artifactId>
209     </dependency>
210     <dependency>
211       <groupId>javax.servlet</groupId>
212       <artifactId>javax.servlet-api</artifactId>
213     </dependency>
214     <dependency>
215       <groupId>javax.ws.rs</groupId>
216       <artifactId>javax.ws.rs-api</artifactId>
217     </dependency>
219     <!-- Test dependencies -->
220     <dependency>
221       <groupId>org.apache.kerby</groupId>
222       <artifactId>kerb-simplekdc</artifactId>
223       <scope>test</scope>
224     </dependency>
225     <dependency>
226       <groupId>org.bouncycastle</groupId>
227       <artifactId>bcprov-jdk15on</artifactId>
228       <scope>test</scope>
229     </dependency>
230     <dependency>
231       <groupId>org.apache.kerby</groupId>
232       <artifactId>kerb-core</artifactId>
233       <scope>test</scope>
234     </dependency>
235     <dependency>
236       <groupId>org.apache.httpcomponents</groupId>
237       <artifactId>httpclient</artifactId>
238       <scope>test</scope>
239     </dependency>
240     <dependency>
241       <groupId>org.apache.httpcomponents</groupId>
242       <artifactId>httpcore</artifactId>
243       <scope>test</scope>
244     </dependency>
245     <dependency>
246       <groupId>junit</groupId>
247       <artifactId>junit</artifactId>
248       <scope>test</scope>
249     </dependency>
250     <dependency>
251       <groupId>org.mockito</groupId>
252       <artifactId>mockito-core</artifactId>
253       <scope>test</scope>
254     </dependency>
255     <dependency>
256       <groupId>org.apache.hadoop</groupId>
257       <artifactId>hadoop-minikdc</artifactId>
258       <scope>test</scope>
259     </dependency>
260   </dependencies>
261   <profiles>
262     <!-- Needs to make the profile in apache parent pom -->
263     <profile>
264       <id>apache-release</id>
265       <build>
266         <plugins>
267           <plugin>
268             <groupId>org.apache.maven.plugins</groupId>
269             <artifactId>maven-resources-plugin</artifactId>
270             <executions>
271               <execution>
272                 <id>license-javadocs</id>
273                 <phase>prepare-package</phase>
274                 <goals>
275                   <goal>copy-resources</goal>
276                 </goals>
277                 <configuration>
278                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
279                   <resources>
280                     <resource>
281                       <directory>src/main/javadoc/META-INF/</directory>
282                       <targetPath>META-INF/</targetPath>
283                       <includes>
284                         <include>LICENSE</include>
285                         <include>NOTICE</include>
286                       </includes>
287                       <filtering>true</filtering>
288                     </resource>
289                   </resources>
290                 </configuration>
291               </execution>
292             </executions>
293           </plugin>
294         </plugins>
295       </build>
296     </profile>
297     <!-- Skip the tests in this module -->
298     <profile>
299       <id>skipServerTests</id>
300       <activation>
301         <property>
302           <name>skipServerTests</name>
303         </property>
304       </activation>
305       <properties>
306         <surefire.skipFirstPart>true</surefire.skipFirstPart>
307         <surefire.skipSecondPart>true</surefire.skipSecondPart>
308       </properties>
309     </profile>
310     <!-- Special builds -->
311     <!-- Profiles for building against different hadoop versions -->
312     <!-- There are a lot of common dependencies used here, should investigate
313     if we can combine these profiles somehow -->
315     <!-- profile for building against Hadoop 2.x.  This is the default.  -->
316     <profile>
317       <id>hadoop-2.0</id>
318       <activation>
319         <property>
320             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
321             <!--h2--><name>!hadoop.profile</name>
322         </property>
323       </activation>
324       <dependencies>
325         <dependency>
326           <groupId>org.apache.hadoop</groupId>
327           <artifactId>hadoop-common</artifactId>
328         </dependency>
329         <dependency>
330           <groupId>org.apache.hadoop</groupId>
331           <artifactId>hadoop-minicluster</artifactId>
332           <exclusions>
333             <exclusion>
334               <groupId>com.google.guava</groupId>
335               <artifactId>guava</artifactId>
336             </exclusion>
337             <exclusion>
338               <groupId>org.apache.zookeeper</groupId>
339               <artifactId>zookeeper</artifactId>
340             </exclusion>
341           </exclusions>
342           <scope>test</scope>
343         </dependency>
344         <dependency>
345           <groupId>org.apache.hadoop</groupId>
346           <artifactId>hadoop-auth</artifactId>
347         </dependency>
348       </dependencies>
349       <build>
350         <plugins>
351           <plugin>
352             <artifactId>maven-dependency-plugin</artifactId>
353             <executions>
354               <execution>
355                 <id>create-mrapp-generated-classpath</id>
356                 <phase>generate-test-resources</phase>
357                 <goals>
358                   <goal>build-classpath</goal>
359                 </goals>
360                 <configuration>
361                   <!-- needed to run the unit test for DS to generate
362                   the required classpath that is required in the env
363                   of the launch container in the mini mr/yarn cluster
364                   -->
365                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
366                 </configuration>
367               </execution>
368             </executions>
369           </plugin>
370         </plugins>
371       </build>
372     </profile>
373     <!--
374       profile for building against Hadoop 3.0.x. Activate using:
375        mvn -Dhadoop.profile=3.0
376     -->
377     <profile>
378       <id>hadoop-3.0</id>
379       <activation>
380         <property>
381           <name>hadoop.profile</name>
382           <value>3.0</value>
383         </property>
384       </activation>
385       <dependencies>
386         <dependency>
387           <groupId>org.apache.hadoop</groupId>
388           <artifactId>hadoop-common</artifactId>
389         </dependency>
390         <dependency>
391           <groupId>org.apache.hadoop</groupId>
392           <artifactId>hadoop-minicluster</artifactId>
393           <exclusions>
394             <exclusion>
395               <groupId>com.google.guava</groupId>
396               <artifactId>guava</artifactId>
397             </exclusion>
398           </exclusions>
399           <scope>test</scope>
400         </dependency>
401       </dependencies>
402       <build>
403         <plugins>
404           <plugin>
405             <artifactId>maven-dependency-plugin</artifactId>
406             <executions>
407               <execution>
408                 <id>create-mrapp-generated-classpath</id>
409                 <phase>generate-test-resources</phase>
410                 <goals>
411                   <goal>build-classpath</goal>
412                 </goals>
413                 <configuration>
414                   <!-- needed to run the unit test for DS to generate
415                   the required classpath that is required in the env
416                   of the launch container in the mini mr/yarn cluster
417                   -->
418                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
419                 </configuration>
420               </execution>
421             </executions>
422           </plugin>
423         </plugins>
424       </build>
425     </profile>
426     <profile>
427       <id>eclipse-specific</id>
428       <activation>
429         <property>
430           <name>m2e.version</name>
431         </property>
432       </activation>
433       <build>
434         <pluginManagement>
435            <plugins>
436              <!--This plugin's configuration is used to store Eclipse m2e settings
437                  only. It has no influence on the Maven build itself and needs to
438                  be kept in plugin management, not in the actual plugins. -->
439             <plugin>
440               <groupId>org.eclipse.m2e</groupId>
441               <artifactId>lifecycle-mapping</artifactId>
442               <configuration>
443                 <lifecycleMappingMetadata>
444                   <pluginExecutions>
445                     <pluginExecution>
446                       <pluginExecutionFilter>
447                         <groupId>org.apache.maven.plugins</groupId>
448                         <artifactId>maven-antrun-plugin</artifactId>
449                         <versionRange>[1.6,)</versionRange>
450                         <goals>
451                           <goal>run</goal>
452                         </goals>
453                       </pluginExecutionFilter>
454                       <action>
455                         <execute>
456                           <runOnIncremental>false</runOnIncremental>
457                           <runOnConfiguration>true</runOnConfiguration>
458                         </execute>
459                       </action>
460                     </pluginExecution>
461                     <pluginExecution>
462                       <pluginExecutionFilter>
463                         <groupId>org.apache.maven.plugins</groupId>
464                         <artifactId>maven-dependency-plugin</artifactId>
465                         <versionRange>[2.8,)</versionRange>
466                         <goals>
467                           <goal>build-classpath</goal>
468                         </goals>
469                       </pluginExecutionFilter>
470                       <action>
471                         <ignore></ignore>
472                       </action>
473                     </pluginExecution>
474                   </pluginExecutions>
475                 </lifecycleMappingMetadata>
476               </configuration>
477             </plugin>
478           </plugins>
479         </pluginManagement>
480       </build>
481     </profile>
482   </profiles>
483 </project>