HBASE-20710 extra cloneFamily() in Mutation.add(Cell); ADDENDUM checkstyle
[hbase.git] / hbase-http / pom.xml
blob667b3f58872e97d1bd0c6163c73121627b1b1c9f
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>net.revelc.code</groupId>
125         <artifactId>warbucks-maven-plugin</artifactId>
126       </plugin>
127     </plugins>
128     <!-- General Resources -->
129     <pluginManagement>
130        <plugins>
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. -->
134         <plugin>
135           <groupId>org.eclipse.m2e</groupId>
136           <artifactId>lifecycle-mapping</artifactId>
137           <configuration>
138             <lifecycleMappingMetadata>
139               <pluginExecutions>
140                 <pluginExecution>
141                   <pluginExecutionFilter>
142                     <groupId>org.apache.maven.plugins</groupId>
143                     <artifactId>maven-antrun-plugin</artifactId>
144                     <versionRange>[1.6,)</versionRange>
145                     <goals>
146                       <goal>run</goal>
147                     </goals>
148                   </pluginExecutionFilter>
149                   <action>
150                     <execute>
151                       <runOnIncremental>false</runOnIncremental>
152                       <runOnConfiguration>true</runOnConfiguration>
153                     </execute>
154                   </action>
155                 </pluginExecution>
156                 <pluginExecution>
157                   <pluginExecutionFilter>
158                     <groupId>org.apache.maven.plugins</groupId>
159                     <artifactId>maven-dependency-plugin</artifactId>
160                     <versionRange>[2.8,)</versionRange>
161                     <goals>
162                       <goal>build-classpath</goal>
163                     </goals>
164                   </pluginExecutionFilter>
165                   <action>
166                     <ignore></ignore>
167                   </action>
168                 </pluginExecution>
169               </pluginExecutions>
170             </lifecycleMappingMetadata>
171           </configuration>
172         </plugin>
173       </plugins>
174     </pluginManagement>
175   </build>
176   <dependencies>
177     <dependency>
178       <groupId>org.apache.hbase.thirdparty</groupId>
179       <artifactId>hbase-shaded-miscellaneous</artifactId>
180     </dependency>
181     <!-- Intra-project dependencies -->
182     <dependency>
183       <groupId>org.apache.hbase</groupId>
184       <artifactId>hbase-common</artifactId>
185     </dependency>
186     <dependency>
187       <groupId>org.apache.hbase</groupId>
188       <artifactId>hbase-common</artifactId>
189       <type>test-jar</type>
190       <scope>test</scope>
191     </dependency>
192     <dependency>
193       <groupId>org.apache.hbase</groupId>
194       <artifactId>hbase-annotations</artifactId>
195       <type>test-jar</type>
196       <scope>test</scope>
197     </dependency>
198     <!-- resource bundle only needed at build time -->
199     <dependency>
200       <groupId>org.apache.hbase</groupId>
201       <artifactId>hbase-resource-bundle</artifactId>
202       <optional>true</optional>
203     </dependency>
204     <dependency>
205       <groupId>org.eclipse.jetty</groupId>
206       <artifactId>jetty-server</artifactId>
207     </dependency>
208     <dependency>
209       <groupId>org.eclipse.jetty</groupId>
210       <artifactId>jetty-servlet</artifactId>
211     </dependency>
212     <dependency>
213       <groupId>org.eclipse.jetty</groupId>
214       <artifactId>jetty-util</artifactId>
215     </dependency>
216     <dependency>
217       <groupId>org.eclipse.jetty</groupId>
218       <artifactId>jetty-util-ajax</artifactId>
219     </dependency>
220     <dependency>
221       <groupId>org.eclipse.jetty</groupId>
222       <artifactId>jetty-webapp</artifactId>
223     </dependency>
224     <dependency>
225       <groupId>org.eclipse.jetty</groupId>
226       <artifactId>jetty-http</artifactId>
227     </dependency>
228     <dependency>
229       <groupId>org.eclipse.jetty</groupId>
230       <artifactId>jetty-security</artifactId>
231     </dependency>
232     <dependency>
233       <groupId>org.glassfish.jersey.core</groupId>
234       <artifactId>jersey-server</artifactId>
235     </dependency>
236     <dependency>
237       <groupId>org.glassfish.jersey.containers</groupId>
238       <artifactId>jersey-container-servlet-core</artifactId>
239     </dependency>
240     <!-- General dependencies -->
241     <dependency>
242       <groupId>org.slf4j</groupId>
243       <artifactId>slf4j-api</artifactId>
244     </dependency>
245     <dependency>
246       <groupId>log4j</groupId>
247       <artifactId>log4j</artifactId>
248     </dependency>
249     <dependency>
250       <groupId>javax.servlet</groupId>
251       <artifactId>javax.servlet-api</artifactId>
252     </dependency>
253     <dependency>
254       <groupId>javax.ws.rs</groupId>
255       <artifactId>javax.ws.rs-api</artifactId>
256     </dependency>
258     <!-- Test dependencies -->
259     <dependency>
260       <groupId>org.apache.kerby</groupId>
261       <artifactId>kerb-simplekdc</artifactId>
262       <scope>test</scope>
263     </dependency>
264     <dependency>
265       <groupId>org.bouncycastle</groupId>
266       <artifactId>bcprov-jdk16</artifactId>
267       <scope>test</scope>
268     </dependency>
269     <dependency>
270       <groupId>org.apache.kerby</groupId>
271       <artifactId>kerb-core</artifactId>
272       <scope>test</scope>
273     </dependency>
274     <dependency>
275       <groupId>org.apache.httpcomponents</groupId>
276       <artifactId>httpclient</artifactId>
277       <scope>test</scope>
278     </dependency>
279     <dependency>
280       <groupId>org.apache.httpcomponents</groupId>
281       <artifactId>httpcore</artifactId>
282       <scope>test</scope>
283     </dependency>
284     <dependency>
285       <groupId>junit</groupId>
286       <artifactId>junit</artifactId>
287       <scope>test</scope>
288     </dependency>
289     <dependency>
290       <groupId>org.mockito</groupId>
291       <artifactId>mockito-core</artifactId>
292       <scope>test</scope>
293     </dependency>
294   </dependencies>
295   <profiles>
296     <!-- Needs to make the profile in apache parent pom -->
297     <profile>
298       <id>apache-release</id>
299       <build>
300         <plugins>
301           <plugin>
302             <groupId>org.apache.maven.plugins</groupId>
303             <artifactId>maven-resources-plugin</artifactId>
304             <executions>
305               <execution>
306                 <id>license-javadocs</id>
307                 <phase>prepare-package</phase>
308                 <goals>
309                   <goal>copy-resources</goal>
310                 </goals>
311                 <configuration>
312                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
313                   <resources>
314                     <resource>
315                       <directory>src/main/javadoc/META-INF/</directory>
316                       <targetPath>META-INF/</targetPath>
317                       <includes>
318                         <include>LICENSE</include>
319                         <include>NOTICE</include>
320                       </includes>
321                       <filtering>true</filtering>
322                     </resource>
323                   </resources>
324                 </configuration>
325               </execution>
326             </executions>
327           </plugin>
328         </plugins>
329       </build>
330     </profile>
331     <!-- Skip the tests in this module -->
332     <profile>
333       <id>skipServerTests</id>
334       <activation>
335         <property>
336           <name>skipServerTests</name>
337         </property>
338       </activation>
339       <properties>
340         <surefire.skipFirstPart>true</surefire.skipFirstPart>
341         <surefire.skipSecondPart>true</surefire.skipSecondPart>
342       </properties>
343     </profile>
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.  -->
350     <profile>
351       <id>hadoop-2.0</id>
352       <activation>
353         <property>
354             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
355             <!--h2--><name>!hadoop.profile</name>
356         </property>
357       </activation>
358       <dependencies>
359         <dependency>
360           <groupId>org.apache.hadoop</groupId>
361           <artifactId>hadoop-common</artifactId>
362         </dependency>
363         <dependency>
364           <groupId>org.apache.hadoop</groupId>
365           <artifactId>hadoop-minicluster</artifactId>
366           <exclusions>
367             <exclusion>
368               <groupId>com.google.guava</groupId>
369               <artifactId>guava</artifactId>
370             </exclusion>
371             <exclusion>
372               <groupId>org.apache.zookeeper</groupId>
373               <artifactId>zookeeper</artifactId>
374             </exclusion>
375           </exclusions>
376           <scope>test</scope>
377         </dependency>
378         <dependency>
379           <groupId>org.apache.hadoop</groupId>
380           <artifactId>hadoop-auth</artifactId>
381         </dependency>
382       </dependencies>
383       <build>
384         <plugins>
385           <plugin>
386             <artifactId>maven-dependency-plugin</artifactId>
387             <executions>
388               <execution>
389                 <id>create-mrapp-generated-classpath</id>
390                 <phase>generate-test-resources</phase>
391                 <goals>
392                   <goal>build-classpath</goal>
393                 </goals>
394                 <configuration>
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
398                   -->
399                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
400                 </configuration>
401               </execution>
402             </executions>
403           </plugin>
404         </plugins>
405       </build>
406     </profile>
407     <!--
408       profile for building against Hadoop 3.0.x. Activate using:
409        mvn -Dhadoop.profile=3.0
410     -->
411     <profile>
412       <id>hadoop-3.0</id>
413       <activation>
414         <property>
415           <name>hadoop.profile</name>
416           <value>3.0</value>
417         </property>
418       </activation>
419       <properties>
420         <hadoop.version>${hadoop-three.version}</hadoop.version>
421       </properties>
422       <dependencies>
423         <dependency>
424           <groupId>org.apache.hadoop</groupId>
425           <artifactId>hadoop-common</artifactId>
426         </dependency>
427         <dependency>
428           <groupId>org.apache.hadoop</groupId>
429           <artifactId>hadoop-minicluster</artifactId>
430           <exclusions>
431             <exclusion>
432               <groupId>com.google.guava</groupId>
433               <artifactId>guava</artifactId>
434             </exclusion>
435           </exclusions>
436           <scope>test</scope>
437         </dependency>
438       </dependencies>
439       <build>
440         <plugins>
441           <plugin>
442             <artifactId>maven-dependency-plugin</artifactId>
443             <executions>
444               <execution>
445                 <id>create-mrapp-generated-classpath</id>
446                 <phase>generate-test-resources</phase>
447                 <goals>
448                   <goal>build-classpath</goal>
449                 </goals>
450                 <configuration>
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
454                   -->
455                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
456                 </configuration>
457               </execution>
458             </executions>
459           </plugin>
460         </plugins>
461       </build>
462     </profile>
463   </profiles>
464 </project>