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