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