HBASE-21671 Rewrite RegionReplicaReplicationEndpoint to use AsyncClusterConnection
[hbase.git] / hbase-rest / pom.xml
blob6a0c7e3ab73b911b132ef2fc1a0c91ee0458e10e
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>org.xolstice.maven.plugins</groupId>
128         <artifactId>protobuf-maven-plugin</artifactId>
129         <executions>
130           <execution>
131             <id>compile-protoc</id>
132             <phase>generate-sources</phase>
133             <goals>
134               <goal>compile</goal>
135             </goals>
136           </execution>
137         </executions>
138       </plugin>
139       <plugin>
140         <groupId>net.revelc.code</groupId>
141         <artifactId>warbucks-maven-plugin</artifactId>
142       </plugin>
143     </plugins>
144   </build>
145   <dependencies>
146     <!--This one is upfront to get in front of
147          any dependency that pulls in jersey-core.
148          Jersey-core has implemented version 1
149          Interfaces of what is in this dependency
150          which does version 2.-->
151     <dependency>
152       <groupId>javax.ws.rs</groupId>
153       <artifactId>javax.ws.rs-api</artifactId>
154     </dependency>
155     <!-- Intra-project dependencies -->
156     <dependency>
157       <groupId>org.apache.hbase</groupId>
158       <artifactId>hbase-common</artifactId>
159       <type>jar</type>
160     </dependency>
161     <dependency>
162       <groupId>org.apache.hbase</groupId>
163       <artifactId>hbase-common</artifactId>
164       <type>test-jar</type>
165       <scope>test</scope>
166     </dependency>
167     <dependency>
168       <groupId>org.apache.hbase</groupId>
169       <artifactId>hbase-protocol</artifactId>
170       <type>jar</type>
171     </dependency>
172     <dependency>
173       <groupId>org.apache.hbase</groupId>
174       <artifactId>hbase-client</artifactId>
175     </dependency>
176     <dependency>
177       <groupId>org.apache.hbase</groupId>
178       <artifactId>hbase-server</artifactId>
179     </dependency>
180     <dependency>
181       <groupId>org.apache.hbase</groupId>
182       <artifactId>hbase-hadoop-compat</artifactId>
183     </dependency>
184     <dependency>
185       <groupId>org.apache.hbase</groupId>
186       <artifactId>${compat.module}</artifactId>
187       <version>${project.version}</version>
188     </dependency>
189     <!--Below MR wanted by PE-->
190     <dependency>
191       <groupId>org.apache.hbase</groupId>
192       <artifactId>hbase-mapreduce</artifactId>
193     </dependency>
194     <dependency>
195       <groupId>org.apache.hbase</groupId>
196       <artifactId>hbase-mapreduce</artifactId>
197       <type>test-jar</type>
198       <scope>test</scope>
199     </dependency>
200     <dependency>
201       <groupId>org.apache.hbase</groupId>
202       <artifactId>hbase-server</artifactId>
203       <type>test-jar</type>
204       <scope>test</scope>
205     </dependency>
206     <dependency>
207       <groupId>org.apache.hbase</groupId>
208       <artifactId>hbase-testing-util</artifactId>
209       <scope>test</scope>
210       <exclusions>
211         <!--This dependency pulls in hadoop-minicluster
212              which pulls in the below. It messes up
213              this build at assembly time. See HBASE-22029-->
214         <exclusion>
215          <groupId>com.sun.jersey</groupId>
216          <artifactId>jersey-core</artifactId>
217         </exclusion>
218       </exclusions>
219     </dependency>
220     <dependency>
221       <groupId>org.apache.hbase</groupId>
222       <artifactId>hbase-annotations</artifactId>
223       <type>test-jar</type>
224       <scope>test</scope>
225     </dependency>
226     <dependency>
227       <groupId>org.apache.hbase</groupId>
228       <artifactId>hbase-http</artifactId>
229       <type>test-jar</type>
230       <scope>test</scope>
231     </dependency>
232     <!-- REST dependencies -->
233     <dependency>
234       <groupId>org.apache.hbase.thirdparty</groupId>
235       <artifactId>hbase-shaded-miscellaneous</artifactId>
236     </dependency>
237     <dependency>
238       <groupId>com.google.protobuf</groupId>
239       <artifactId>protobuf-java</artifactId>
240     </dependency>
241     <dependency>
242       <groupId>org.apache.httpcomponents</groupId>
243       <artifactId>httpclient</artifactId>
244     </dependency>
245     <dependency>
246       <groupId>org.apache.httpcomponents</groupId>
247       <artifactId>httpcore</artifactId>
248     </dependency>
249     <dependency>
250       <groupId>org.apache.commons</groupId>
251       <artifactId>commons-lang3</artifactId>
252     </dependency>
253     <dependency>
254       <groupId>org.slf4j</groupId>
255       <artifactId>slf4j-api</artifactId>
256     </dependency>
257     <dependency>
258       <groupId>javax.xml.bind</groupId>
259       <artifactId>jaxb-api</artifactId>
260     </dependency>
261     <dependency>
262       <groupId>javax.servlet</groupId>
263       <artifactId>javax.servlet-api</artifactId>
264     </dependency>
265     <dependency>
266       <groupId>com.sun.activation</groupId>
267       <artifactId>javax.activation</artifactId>
268     </dependency>
269     <dependency>
270       <groupId>org.eclipse.jetty</groupId>
271       <artifactId>jetty-server</artifactId>
272     </dependency>
273     <dependency>
274       <groupId>org.eclipse.jetty</groupId>
275       <artifactId>jetty-servlet</artifactId>
276     </dependency>
277     <dependency>
278       <groupId>org.eclipse.jetty</groupId>
279       <artifactId>jetty-util</artifactId>
280     </dependency>
281     <dependency>
282       <groupId>org.eclipse.jetty</groupId>
283       <artifactId>jetty-http</artifactId>
284     </dependency>
285     <dependency>
286       <groupId>org.eclipse.jetty</groupId>
287       <artifactId>jetty-jmx</artifactId>
288     </dependency>
289     <dependency>
290       <groupId>org.glassfish.jersey.containers</groupId>
291       <artifactId>jersey-container-servlet-core</artifactId>
292     </dependency>
293     <dependency>
294       <groupId>com.fasterxml.jackson.jaxrs</groupId>
295       <artifactId>jackson-jaxrs-json-provider</artifactId>
296     </dependency>
297     <dependency>
298       <groupId>com.fasterxml.jackson.core</groupId>
299       <artifactId>jackson-annotations</artifactId>
300     </dependency>
301     <dependency>
302       <groupId>com.fasterxml.jackson.core</groupId>
303       <artifactId>jackson-core</artifactId>
304     </dependency>
305     <dependency>
306       <groupId>com.fasterxml.jackson.core</groupId>
307       <artifactId>jackson-databind</artifactId>
308     </dependency>
309     <dependency>
310       <!-- We *might* need this for XMLStreamReader use in RemoteAdmin
311            TODO figure out if we can remove it.
312         -->
313       <groupId>org.codehaus.jettison</groupId>
314       <artifactId>jettison</artifactId>
315         <exclusions>
316           <exclusion>
317             <groupId>stax</groupId>
318             <artifactId>stax-api</artifactId>
319           </exclusion>
320         </exclusions>
321     </dependency>
322     <dependency>
323       <!--For JspC used in ant task-->
324       <groupId>org.glassfish.web</groupId>
325       <artifactId>javax.servlet.jsp</artifactId>
326     </dependency>
327     <!-- Specifically needed for jetty-jsp, included
328          to bypass version scanning that hits a bad repo
329          see HBASE-18831 -->
330     <dependency>
331       <groupId>org.glassfish</groupId>
332       <artifactId>javax.el</artifactId>
333     </dependency>
334     <dependency>
335       <groupId>org.apache.kerby</groupId>
336       <artifactId>kerb-simplekdc</artifactId>
337       <scope>test</scope>
338     </dependency>
339     <dependency>
340       <groupId>org.apache.hadoop</groupId>
341       <artifactId>hadoop-minikdc</artifactId>
342       <scope>test</scope>
343     </dependency>
344     <dependency>
345       <groupId>org.apache.kerby</groupId>
346       <artifactId>kerb-core</artifactId>
347       <scope>test</scope>
348     </dependency>
349     <dependency>
350       <groupId>commons-io</groupId>
351       <artifactId>commons-io</artifactId>
352       <scope>test</scope>
353     </dependency>
354     <dependency>
355       <groupId>junit</groupId>
356       <artifactId>junit</artifactId>
357       <scope>test</scope>
358     </dependency>
359     <dependency>
360       <groupId>org.mockito</groupId>
361       <artifactId>mockito-core</artifactId>
362       <scope>test</scope>
363     </dependency>
364     <dependency>
365        <groupId>com.github.stephenc.findbugs</groupId>
366        <artifactId>findbugs-annotations</artifactId>
367        <optional>true</optional>
368     </dependency>
369     <!--Test-->
370     <dependency>
371       <groupId>org.bouncycastle</groupId>
372       <artifactId>bcprov-jdk15on</artifactId>
373       <scope>test</scope>
374     </dependency>
375   </dependencies>
376   <profiles>
377     <!-- Skip the tests in this module -->
378     <profile>
379       <id>skipRestTests</id>
380       <activation>
381         <property>
382           <name>skipRestTests</name>
383         </property>
384       </activation>
385       <properties>
386         <surefire.skipFirstPart>true</surefire.skipFirstPart>
387         <surefire.skipSecondPart>true</surefire.skipSecondPart>
388       </properties>
389     </profile>
390     <!-- Hadoop-specific dependencies -->
391     <!-- profile for building against Hadoop 2.0.x
392          This is the default.
393          -->
394     <profile>
395       <id>hadoop-2.0</id>
396       <activation>
397         <property>
398           <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
399           <!--h2-->
400           <name>!hadoop.profile</name>
401         </property>
402       </activation>
403       <dependencies>
404         <dependency>
405           <groupId>org.apache.hadoop</groupId>
406           <artifactId>hadoop-mapreduce-client-core</artifactId>
407           <scope>test</scope>
408           <exclusions>
409             <exclusion>
410               <groupId>com.google.guava</groupId>
411               <artifactId>guava</artifactId>
412             </exclusion>
413           </exclusions>
414         </dependency>
415         <dependency>
416           <groupId>org.apache.hadoop</groupId>
417           <artifactId>hadoop-annotations</artifactId>
418         </dependency>
419         <dependency>
420           <groupId>org.apache.hadoop</groupId>
421           <artifactId>hadoop-common</artifactId>
422         </dependency>
423         <dependency>
424           <groupId>org.apache.hadoop</groupId>
425           <artifactId>hadoop-auth</artifactId>
426         </dependency>
427       </dependencies>
428     </profile>
429     <!--
430       profile for building against Hadoop 3.0.0. Activate using:
431        mvn -Dhadoop.profile=3.0
432     -->
433     <profile>
434       <id>hadoop-3.0</id>
435       <activation>
436         <property>
437           <name>hadoop.profile</name>
438           <value>3.0</value>
439         </property>
440       </activation>
441       <dependencyManagement>
442         <dependencies>
443           <dependency>
444             <groupId>org.apache.hadoop</groupId>
445             <artifactId>hadoop-yarn-server-nodemanager</artifactId>
446             <exclusions>
447               <exclusion>
448                 <groupId>com.sun.jersey</groupId>
449                 <artifactId>jersey-core</artifactId>
450               </exclusion>
451             </exclusions>
452           </dependency>
453           <dependency>
454             <groupId>org.apache.hadoop</groupId>
455             <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
456             <exclusions>
457               <exclusion>
458                 <groupId>com.sun.jersey</groupId>
459                 <artifactId>jersey-core</artifactId>
460               </exclusion>
461             </exclusions>
462           </dependency>
463           <dependency>
464             <groupId>org.apache.hadoop</groupId>
465             <artifactId>hadoop-yarn-server-timelineservice</artifactId>
466             <exclusions>
467               <exclusion>
468                 <groupId>javax.ws.rs</groupId>
469                 <artifactId>jsr311-api</artifactId>
470               </exclusion>
471             </exclusions>
472           </dependency>
473           <dependency>
474             <groupId>org.apache.hadoop</groupId>
475             <artifactId>hadoop-yarn-common</artifactId>
476             <exclusions>
477               <exclusion>
478                 <groupId>com.sun.jersey</groupId>
479                 <artifactId>jersey-core</artifactId>
480               </exclusion>
481             </exclusions>
482           </dependency>
483         </dependencies>
484       </dependencyManagement>
485       <dependencies>
486         <dependency>
487           <groupId>org.apache.hadoop</groupId>
488           <artifactId>hadoop-mapreduce-client-core</artifactId>
489           <scope>test</scope>
490         </dependency>
491         <dependency>
492           <groupId>org.apache.hadoop</groupId>
493           <artifactId>hadoop-annotations</artifactId>
494         </dependency>
495         <dependency>
496           <groupId>org.apache.hadoop</groupId>
497           <artifactId>hadoop-common</artifactId>
498         </dependency>
499         <dependency>
500           <groupId>org.apache.hadoop</groupId>
501           <artifactId>hadoop-auth</artifactId>
502         </dependency>
503       </dependencies>
504     </profile>
505     <profile>
506       <id>eclipse-specific</id>
507       <activation>
508         <property>
509           <name>m2e.version</name>
510         </property>
511       </activation>
512       <build>
513         <pluginManagement>
514           <plugins>
515             <!--This plugin's configuration is used to store Eclipse m2e settings
516                  only. It has no influence on the Maven build itself.-->
517             <plugin>
518               <groupId>org.eclipse.m2e</groupId>
519               <artifactId>lifecycle-mapping</artifactId>
520               <configuration>
521                 <lifecycleMappingMetadata>
522                   <pluginExecutions>
523                     <pluginExecution>
524                       <pluginExecutionFilter>
525                         <groupId>org.apache.maven.plugins</groupId>
526                         <artifactId>maven-antrun-plugin</artifactId>
527                         <versionRange>[1.6,)</versionRange>
528                         <goals>
529                           <goal>run</goal>
530                         </goals>
531                       </pluginExecutionFilter>
532                       <action>
533                         <ignore/>
534                       </action>
535                     </pluginExecution>
536                   </pluginExecutions>
537                 </lifecycleMappingMetadata>
538               </configuration>
539             </plugin>
540           </plugins>
541         </pluginManagement>
542       </build>
543     </profile>
544   </profiles>
545 </project>