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