HBASE-24458 release scripts using docker should specify needed disk consistency
[hbase.git] / hbase-rest / pom.xml
blob391f061e84857c9b74040dea5977928ffc9a1f77
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-rest</artifactId>
30   <name>Apache HBase - Rest</name>
31   <description>HBase Rest Server</description>
32   <build>
33     <!-- Makes sure the resources get added before they are processed
34       by placing this first -->
35     <resources>
36       <!-- Add the build webabpps to the classpth -->
37       <resource>
38         <directory>${project.build.directory}</directory>
39         <includes>
40           <include>hbase-webapps/**</include>
41         </includes>
42       </resource>
43     </resources>
44     <testResources>
45       <testResource>
46         <directory>src/test/resources</directory>
47         <includes>
48           <include>**/**</include>
49         </includes>
50       </testResource>
51     </testResources>
52     <plugins>
53       <plugin>
54         <!--Make it so assembly:single does nothing in here-->
55         <artifactId>maven-assembly-plugin</artifactId>
56         <configuration>
57           <skipAssembly>true</skipAssembly>
58         </configuration>
59       </plugin>
60       <!-- Make a jar and put the sources in the jar -->
61       <plugin>
62         <groupId>org.apache.maven.plugins</groupId>
63         <artifactId>maven-source-plugin</artifactId>
64       </plugin>
65       <!-- General ant tasks, bound to different build phases -->
66       <plugin>
67         <artifactId>maven-antrun-plugin</artifactId>
68         <executions>
69           <!-- Generate web app sources -->
70           <execution>
71             <id>generate</id>
72             <phase>generate-sources</phase>
73             <configuration>
74               <target>
75                 <property name="build.webapps" location="${project.build.directory}/hbase-webapps"/>
76                 <property name="src.webapps" location="${basedir}/src/main/resources/hbase-webapps"/>
77                 <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
78                 <mkdir dir="${build.webapps}"/>
79                 <copy todir="${build.webapps}">
80                   <fileset dir="${src.webapps}">
81                     <exclude name="**/*.jsp"/>
82                     <exclude name="**/.*"/>
83                     <exclude name="**/*~"/>
84                   </fileset>
85                 </copy>
86                 <!--The compile.classpath is passed in by maven -->
87                 <taskdef classname="org.apache.jasper.JspC" name="jspcompiler" classpathref="maven.compile.classpath"/>
88                 <mkdir dir="${build.webapps}/rest/WEB-INF"/>
89                 <jspcompiler uriroot="${src.webapps}/rest" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.rest" webxml="${build.webapps}/rest/WEB-INF/web.xml"/>
90               </target>
91             </configuration>
92             <goals>
93               <goal>run</goal>
94             </goals>
95           </execution>
96         </executions>
97       </plugin>
98       <plugin>
99         <groupId>org.codehaus.mojo</groupId>
100         <artifactId>build-helper-maven-plugin</artifactId>
101         <executions>
102           <!-- Add the generated sources -->
103           <execution>
104             <id>jspcSource-packageInfo-source</id>
105             <phase>generate-sources</phase>
106             <goals>
107               <goal>add-source</goal>
108             </goals>
109             <configuration>
110               <sources>
111                 <source>${project.build.directory}/generated-sources/java</source>
112               </sources>
113             </configuration>
114           </execution>
115         </executions>
116       </plugin>
117       <!-- Testing plugins -->
118       <plugin>
119         <artifactId>maven-surefire-plugin</artifactId>
120         <configuration>
121           <systemPropertyVariables>
122             <test.build.webapps>target/test-classes/webapps</test.build.webapps>
123           </systemPropertyVariables>
124         </configuration>
125       </plugin>
126       <plugin>
127         <groupId>net.revelc.code</groupId>
128         <artifactId>warbucks-maven-plugin</artifactId>
129       </plugin>
130     </plugins>
131   </build>
132   <dependencies>
133     <!--This one is upfront to get in front of
134          any dependency that pulls in jersey-core.
135          Jersey-core has implemented version 1
136          Interfaces of what is in this dependency
137          which does version 2.-->
138     <dependency>
139       <groupId>javax.ws.rs</groupId>
140       <artifactId>javax.ws.rs-api</artifactId>
141     </dependency>
142     <!-- Intra-project dependencies -->
143     <dependency>
144       <groupId>org.apache.hbase</groupId>
145       <artifactId>hbase-logging</artifactId>
146       <type>test-jar</type>
147       <scope>test</scope>
148     </dependency>
149     <dependency>
150       <groupId>org.apache.hbase</groupId>
151       <artifactId>hbase-common</artifactId>
152       <type>jar</type>
153     </dependency>
154     <dependency>
155       <groupId>org.apache.hbase</groupId>
156       <artifactId>hbase-common</artifactId>
157       <type>test-jar</type>
158       <scope>test</scope>
159     </dependency>
160     <dependency>
161       <groupId>org.apache.hbase</groupId>
162       <artifactId>hbase-protocol-shaded</artifactId>
163       <type>jar</type>
164     </dependency>
165     <dependency>
166       <groupId>org.apache.hbase</groupId>
167       <artifactId>hbase-client</artifactId>
168     </dependency>
169     <dependency>
170       <groupId>org.apache.hbase</groupId>
171       <artifactId>hbase-server</artifactId>
172     </dependency>
173     <dependency>
174       <groupId>org.apache.hbase</groupId>
175       <artifactId>hbase-asyncfs</artifactId>
176       <type>test-jar</type>
177       <scope>test</scope>
178     </dependency>
179     <dependency>
180       <groupId>org.apache.hbase</groupId>
181       <artifactId>hbase-hadoop-compat</artifactId>
182     </dependency>
183     <!--Below MR wanted by PE-->
184     <dependency>
185       <groupId>org.apache.hbase</groupId>
186       <artifactId>hbase-mapreduce</artifactId>
187     </dependency>
188     <dependency>
189       <groupId>org.apache.hbase</groupId>
190       <artifactId>hbase-mapreduce</artifactId>
191       <type>test-jar</type>
192       <scope>test</scope>
193     </dependency>
194     <dependency>
195       <groupId>org.apache.hbase</groupId>
196       <artifactId>hbase-server</artifactId>
197       <type>test-jar</type>
198       <scope>test</scope>
199     </dependency>
200     <dependency>
201       <groupId>org.apache.hbase</groupId>
202       <artifactId>hbase-testing-util</artifactId>
203       <scope>test</scope>
204       <exclusions>
205         <!--This dependency pulls in hadoop-minicluster
206              which pulls in the below. It messes up
207         this build at assembly time. See HBASE-22029 -->
208         <exclusion>
209          <groupId>com.sun.jersey</groupId>
210          <artifactId>jersey-core</artifactId>
211         </exclusion>
212       </exclusions>
213     </dependency>
214     <dependency>
215       <groupId>org.apache.hbase</groupId>
216       <artifactId>hbase-annotations</artifactId>
217       <type>test-jar</type>
218       <scope>test</scope>
219     </dependency>
220     <dependency>
221       <groupId>org.apache.hbase</groupId>
222       <artifactId>hbase-http</artifactId>
223       <type>test-jar</type>
224       <scope>test</scope>
225     </dependency>
226     <!-- REST dependencies -->
227     <dependency>
228       <groupId>org.apache.hbase.thirdparty</groupId>
229       <artifactId>hbase-shaded-miscellaneous</artifactId>
230     </dependency>
231     <dependency>
232       <groupId>org.apache.hbase.thirdparty</groupId>
233       <artifactId>hbase-shaded-protobuf</artifactId>
234     </dependency>
235     <dependency>
236       <groupId>org.apache.httpcomponents</groupId>
237       <artifactId>httpclient</artifactId>
238     </dependency>
239     <dependency>
240       <groupId>org.apache.httpcomponents</groupId>
241       <artifactId>httpcore</artifactId>
242     </dependency>
243     <dependency>
244       <groupId>org.apache.commons</groupId>
245       <artifactId>commons-lang3</artifactId>
246     </dependency>
247     <dependency>
248       <groupId>org.slf4j</groupId>
249       <artifactId>slf4j-api</artifactId>
250     </dependency>
251     <dependency>
252       <groupId>javax.xml.bind</groupId>
253       <artifactId>jaxb-api</artifactId>
254     </dependency>
255     <dependency>
256       <groupId>javax.servlet</groupId>
257       <artifactId>javax.servlet-api</artifactId>
258     </dependency>
259     <dependency>
260       <groupId>com.sun.activation</groupId>
261       <artifactId>javax.activation</artifactId>
262     </dependency>
263     <dependency>
264       <groupId>org.eclipse.jetty</groupId>
265       <artifactId>jetty-server</artifactId>
266     </dependency>
267     <dependency>
268       <groupId>org.eclipse.jetty</groupId>
269       <artifactId>jetty-servlet</artifactId>
270     </dependency>
271     <dependency>
272       <groupId>org.eclipse.jetty</groupId>
273       <artifactId>jetty-util</artifactId>
274     </dependency>
275     <dependency>
276       <groupId>org.eclipse.jetty</groupId>
277       <artifactId>jetty-http</artifactId>
278     </dependency>
279     <dependency>
280       <groupId>org.eclipse.jetty</groupId>
281       <artifactId>jetty-jmx</artifactId>
282     </dependency>
283     <dependency>
284       <groupId>org.glassfish.jersey.containers</groupId>
285       <artifactId>jersey-container-servlet-core</artifactId>
286     </dependency>
287     <dependency>
288       <groupId>com.fasterxml.jackson.jaxrs</groupId>
289       <artifactId>jackson-jaxrs-json-provider</artifactId>
290     </dependency>
291     <dependency>
292       <groupId>com.fasterxml.jackson.core</groupId>
293       <artifactId>jackson-annotations</artifactId>
294     </dependency>
295     <dependency>
296       <groupId>com.fasterxml.jackson.core</groupId>
297       <artifactId>jackson-core</artifactId>
298     </dependency>
299     <dependency>
300       <groupId>com.fasterxml.jackson.core</groupId>
301       <artifactId>jackson-databind</artifactId>
302     </dependency>
303     <dependency>
304       <!-- We *might* need this for XMLStreamReader use in RemoteAdmin
305            TODO figure out if we can remove it.
306         -->
307       <groupId>org.codehaus.jettison</groupId>
308       <artifactId>jettison</artifactId>
309         <exclusions>
310           <exclusion>
311             <groupId>stax</groupId>
312             <artifactId>stax-api</artifactId>
313           </exclusion>
314         </exclusions>
315     </dependency>
316     <dependency>
317       <!--For JspC used in ant task-->
318       <groupId>org.glassfish.web</groupId>
319       <artifactId>javax.servlet.jsp</artifactId>
320     </dependency>
321     <!-- Specifically needed for jetty-jsp, included
322          to bypass version scanning that hits a bad repo
323          see HBASE-18831 -->
324     <dependency>
325       <groupId>org.glassfish</groupId>
326       <artifactId>javax.el</artifactId>
327     </dependency>
328     <dependency>
329       <groupId>org.apache.kerby</groupId>
330       <artifactId>kerb-simplekdc</artifactId>
331       <scope>test</scope>
332     </dependency>
333     <dependency>
334       <groupId>org.apache.hadoop</groupId>
335       <artifactId>hadoop-minikdc</artifactId>
336       <scope>test</scope>
337     </dependency>
338     <dependency>
339       <groupId>org.apache.kerby</groupId>
340       <artifactId>kerb-core</artifactId>
341       <scope>test</scope>
342     </dependency>
343     <dependency>
344       <groupId>commons-io</groupId>
345       <artifactId>commons-io</artifactId>
346       <scope>test</scope>
347     </dependency>
348     <dependency>
349       <groupId>junit</groupId>
350       <artifactId>junit</artifactId>
351       <scope>test</scope>
352     </dependency>
353     <dependency>
354       <groupId>org.mockito</groupId>
355       <artifactId>mockito-core</artifactId>
356       <scope>test</scope>
357     </dependency>
358     <dependency>
359       <groupId>com.github.stephenc.findbugs</groupId>
360       <artifactId>findbugs-annotations</artifactId>
361       <scope>compile</scope>
362       <optional>true</optional>
363     </dependency>
364     <!--Test-->
365     <dependency>
366       <groupId>org.bouncycastle</groupId>
367       <artifactId>bcprov-jdk15on</artifactId>
368       <scope>test</scope>
369     </dependency>
370     <dependency>
371       <groupId>org.slf4j</groupId>
372       <artifactId>jcl-over-slf4j</artifactId>
373       <scope>test</scope>
374     </dependency>
375     <dependency>
376       <groupId>org.slf4j</groupId>
377       <artifactId>jul-to-slf4j</artifactId>
378       <scope>test</scope>
379     </dependency>
380     <dependency>
381       <groupId>org.slf4j</groupId>
382       <artifactId>slf4j-log4j12</artifactId>
383       <scope>test</scope>
384     </dependency>
385     <dependency>
386       <groupId>log4j</groupId>
387       <artifactId>log4j</artifactId>
388       <scope>test</scope>
389     </dependency>
390   </dependencies>
391   <profiles>
392     <!-- Skip the tests in this module -->
393     <profile>
394       <id>skipRestTests</id>
395       <activation>
396         <property>
397           <name>skipRestTests</name>
398         </property>
399       </activation>
400       <properties>
401         <surefire.skipFirstPart>true</surefire.skipFirstPart>
402         <surefire.skipSecondPart>true</surefire.skipSecondPart>
403       </properties>
404     </profile>
405     <!-- Hadoop-specific dependencies -->
406     <profile>
407       <id>hadoop-3.0</id>
408       <activation>
409         <property><name>!hadoop.profile</name></property>
410       </activation>
411       <dependencyManagement>
412         <dependencies>
413           <dependency>
414             <groupId>org.apache.hadoop</groupId>
415             <artifactId>hadoop-yarn-server-nodemanager</artifactId>
416             <exclusions>
417               <exclusion>
418                 <groupId>com.sun.jersey</groupId>
419                 <artifactId>jersey-core</artifactId>
420               </exclusion>
421             </exclusions>
422           </dependency>
423           <dependency>
424             <groupId>org.apache.hadoop</groupId>
425             <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
426             <exclusions>
427               <exclusion>
428                 <groupId>com.sun.jersey</groupId>
429                 <artifactId>jersey-core</artifactId>
430               </exclusion>
431             </exclusions>
432           </dependency>
433           <dependency>
434             <groupId>org.apache.hadoop</groupId>
435             <artifactId>hadoop-yarn-server-timelineservice</artifactId>
436             <exclusions>
437               <exclusion>
438                 <groupId>javax.ws.rs</groupId>
439                 <artifactId>jsr311-api</artifactId>
440               </exclusion>
441             </exclusions>
442           </dependency>
443           <dependency>
444             <groupId>org.apache.hadoop</groupId>
445             <artifactId>hadoop-yarn-common</artifactId>
446             <exclusions>
447               <exclusion>
448                 <groupId>com.sun.jersey</groupId>
449                 <artifactId>jersey-core</artifactId>
450               </exclusion>
451             </exclusions>
452           </dependency>
453         </dependencies>
454       </dependencyManagement>
455       <dependencies>
456         <dependency>
457           <groupId>org.apache.hadoop</groupId>
458           <artifactId>hadoop-mapreduce-client-core</artifactId>
459           <scope>test</scope>
460           <exclusions>
461             <exclusion>
462              <groupId>com.google.guava</groupId>
463              <artifactId>guava</artifactId>
464             </exclusion>
465           </exclusions>
466         </dependency>
467         <dependency>
468           <groupId>org.apache.hadoop</groupId>
469           <artifactId>hadoop-annotations</artifactId>
470         </dependency>
471         <dependency>
472           <groupId>org.apache.hadoop</groupId>
473           <artifactId>hadoop-common</artifactId>
474         </dependency>
475         <dependency>
476           <groupId>org.apache.hadoop</groupId>
477           <artifactId>hadoop-auth</artifactId>
478         </dependency>
479         <!--Needed when jdk11/hadoop3 else complaint about
480           NoSuchMethodError: 'java.util.Map javax.ws.rs.core.Application.getProperties()'
481           when REST server is started.
482           -->
483         <dependency>
484           <groupId>org.glassfish.jaxb</groupId>
485           <artifactId>jaxb-runtime</artifactId>
486           <version>2.3.2</version>
487         </dependency>
488       </dependencies>
489     </profile>
490     <profile>
491       <id>eclipse-specific</id>
492       <activation>
493         <property>
494           <name>m2e.version</name>
495         </property>
496       </activation>
497       <build>
498         <pluginManagement>
499           <plugins>
500             <!--This plugin's configuration is used to store Eclipse m2e settings
501                  only. It has no influence on the Maven build itself.-->
502             <plugin>
503               <groupId>org.eclipse.m2e</groupId>
504               <artifactId>lifecycle-mapping</artifactId>
505               <configuration>
506                 <lifecycleMappingMetadata>
507                   <pluginExecutions>
508                     <pluginExecution>
509                       <pluginExecutionFilter>
510                         <groupId>org.apache.maven.plugins</groupId>
511                         <artifactId>maven-antrun-plugin</artifactId>
512                         <versionRange>[1.6,)</versionRange>
513                         <goals>
514                           <goal>run</goal>
515                         </goals>
516                       </pluginExecutionFilter>
517                       <action>
518                         <ignore/>
519                       </action>
520                     </pluginExecution>
521                   </pluginExecutions>
522                 </lifecycleMappingMetadata>
523               </configuration>
524             </plugin>
525           </plugins>
526         </pluginManagement>
527       </build>
528     </profile>
529   </profiles>
530 </project>