[RSGroup] Forward-port HBASE-22658 to master branch and branch-2.x (#1326)
[hbase.git] / hbase-client / pom.xml
blobff0e8fbd4ba5b2c7d99355e7f51b239cf8735e1f
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"
3          xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4   <!--
5   /**
6    * Licensed to the Apache Software Foundation (ASF) under one
7    * or more contributor license agreements.  See the NOTICE file
8    * distributed with this work for additional information
9    * regarding copyright ownership.  The ASF licenses this file
10    * to you under the Apache License, Version 2.0 (the
11    * "License"); you may not use this file except in compliance
12    * with the License.  You may obtain a copy of the License at
13    *
14    *     http://www.apache.org/licenses/LICENSE-2.0
15    *
16    * Unless required by applicable law or agreed to in writing, software
17    * distributed under the License is distributed on an "AS IS" BASIS,
18    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19    * See the License for the specific language governing permissions and
20    * limitations under the License.
21    */
22   -->
23   <modelVersion>4.0.0</modelVersion>
24   <parent>
25     <artifactId>hbase-build-configuration</artifactId>
26     <groupId>org.apache.hbase</groupId>
27     <version>3.0.0-SNAPSHOT</version>
28     <relativePath>../hbase-build-configuration</relativePath>
29   </parent>
31   <artifactId>hbase-client</artifactId>
32   <name>Apache HBase - Client</name>
33   <description>Client of HBase</description>
34 <!--REMOVE-->
36   <build>
37     <plugins>
38       <plugin>
39         <!--Make it so assembly:single does nothing in here-->
40         <artifactId>maven-assembly-plugin</artifactId>
41         <configuration>
42           <skipAssembly>true</skipAssembly>
43         </configuration>
44       </plugin>
45       <!-- Make a jar and put the sources in the jar -->
46       <plugin>
47         <groupId>org.apache.maven.plugins</groupId>
48         <artifactId>maven-source-plugin</artifactId>
49       </plugin>
50       <plugin>
51         <groupId>net.revelc.code</groupId>
52         <artifactId>warbucks-maven-plugin</artifactId>
53       </plugin>
54     </plugins>
55   </build>
57   <dependencies>
58     <dependency>
59       <groupId>org.apache.hbase.thirdparty</groupId>
60       <artifactId>hbase-shaded-protobuf</artifactId>
61     </dependency>
62     <!-- Intra-project dependencies -->
63     <dependency>
64       <groupId>org.apache.hbase</groupId>
65       <artifactId>hbase-annotations</artifactId>
66       <type>test-jar</type>
67       <scope>test</scope>
68     </dependency>
69     <dependency>
70       <groupId>org.apache.hbase</groupId>
71       <artifactId>hbase-common</artifactId>
72     </dependency>
73     <dependency>
74       <groupId>org.apache.hbase</groupId>
75       <artifactId>hbase-hadoop-compat</artifactId>
76     </dependency>
77     <dependency>
78       <groupId>org.apache.hbase</groupId>
79       <artifactId>hbase-hadoop2-compat</artifactId>
80       <exclusions>
81         <!-- We don't need MR support classes here. -->
82         <exclusion>
83           <groupId>org.apache.hadoop</groupId>
84           <artifactId>hadoop-mapreduce-client-core</artifactId>
85         </exclusion>
86       </exclusions>
87     </dependency>
88     <dependency>
89       <groupId>org.apache.hbase</groupId>
90       <artifactId>hbase-common</artifactId>
91       <type>test-jar</type>
92       <scope>test</scope>
93     </dependency>
94     <dependency>
95       <groupId>org.apache.hbase</groupId>
96       <artifactId>hbase-protocol-shaded</artifactId>
97     </dependency>
98     <dependency>
99       <groupId>org.apache.hbase</groupId>
100       <artifactId>hbase-protocol</artifactId>
101     </dependency>
102     <!-- General dependencies -->
103     <dependency>
104       <groupId>com.github.stephenc.findbugs</groupId>
105       <artifactId>findbugs-annotations</artifactId>
106       <scope>compile</scope>
107       <optional>true</optional>
108     </dependency>
109     <dependency>
110       <groupId>commons-codec</groupId>
111       <artifactId>commons-codec</artifactId>
112     </dependency>
113     <dependency>
114       <groupId>commons-io</groupId>
115       <artifactId>commons-io</artifactId>
116     </dependency>
117     <dependency>
118       <groupId>org.apache.commons</groupId>
119       <artifactId>commons-lang3</artifactId>
120     </dependency>
121     <dependency>
122       <groupId>org.slf4j</groupId>
123       <artifactId>slf4j-api</artifactId>
124     </dependency>
125     <dependency>
126       <groupId>org.apache.hbase.thirdparty</groupId>
127       <artifactId>hbase-shaded-miscellaneous</artifactId>
128     </dependency>
129     <dependency>
130       <groupId>com.google.protobuf</groupId>
131       <artifactId>protobuf-java</artifactId>
132     </dependency>
133     <dependency>
134       <groupId>org.apache.hbase.thirdparty</groupId>
135       <artifactId>hbase-shaded-netty</artifactId>
136     </dependency>
137     <dependency>
138       <groupId>org.apache.zookeeper</groupId>
139       <artifactId>zookeeper</artifactId>
140     </dependency>
141     <dependency>
142       <groupId>org.apache.htrace</groupId>
143       <artifactId>htrace-core4</artifactId>
144     </dependency>
145     <dependency>
146       <groupId>org.jruby.jcodings</groupId>
147       <artifactId>jcodings</artifactId>
148     </dependency>
149     <dependency>
150       <groupId>org.jruby.joni</groupId>
151       <artifactId>joni</artifactId>
152     </dependency>
153     <dependency>
154       <groupId>log4j</groupId>
155       <artifactId>log4j</artifactId>
156       <scope>test</scope>
157     </dependency>
158     <dependency>
159       <groupId>io.dropwizard.metrics</groupId>
160       <artifactId>metrics-core</artifactId>
161     </dependency>
162     <dependency>
163       <groupId>junit</groupId>
164       <artifactId>junit</artifactId>
165       <scope>test</scope>
166     </dependency>
167     <dependency>
168       <groupId>org.mockito</groupId>
169       <artifactId>mockito-core</artifactId>
170       <scope>test</scope>
171     </dependency>
172     <dependency>
173       <groupId>org.apache.commons</groupId>
174       <artifactId>commons-crypto</artifactId>
175       <exclusions>
176         <exclusion>
177           <groupId>net.java.dev.jna</groupId>
178           <artifactId>jna</artifactId>
179         </exclusion>
180       </exclusions>
181     </dependency>
182   </dependencies>
184   <profiles>
185     <!-- Skip the tests in this module -->
186     <profile>
187       <id>skipClientTests</id>
188       <activation>
189         <property>
190           <name>skipClientTests</name>
191         </property>
192       </activation>
193       <properties>
194         <surefire.skipFirstPart>true</surefire.skipFirstPart>
195         <surefire.skipSecondPart>true</surefire.skipSecondPart>
196       </properties>
197     </profile>
199     <!-- profile for building against Hadoop 2.x.  This is the default -->
200     <profile>
201       <id>hadoop-2.0</id>
202       <activation>
203         <property>
204             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
205             <!--h2--><name>!hadoop.profile</name>
206         </property>
207       </activation>
208       <dependencies>
209         <dependency>
210           <groupId>org.apache.hadoop</groupId>
211           <artifactId>hadoop-auth</artifactId>
212         </dependency>
213         <dependency>
214           <groupId>org.apache.hadoop</groupId>
215           <artifactId>hadoop-common</artifactId>
216           <exclusions>
217             <exclusion>
218               <groupId>net.java.dev.jets3t</groupId>
219               <artifactId>jets3t</artifactId>
220             </exclusion>
221             <exclusion>
222               <groupId>javax.servlet.jsp</groupId>
223               <artifactId>jsp-api</artifactId>
224             </exclusion>
225             <exclusion>
226               <groupId>org.mortbay.jetty</groupId>
227               <artifactId>jetty</artifactId>
228             </exclusion>
229             <exclusion>
230               <groupId>org.mortbay.jetty</groupId>
231               <artifactId>jetty-util</artifactId>
232             </exclusion>
233             <exclusion>
234               <groupId>com.sun.jersey</groupId>
235               <artifactId>jersey-server</artifactId>
236             </exclusion>
237             <exclusion>
238               <groupId>com.sun.jersey</groupId>
239               <artifactId>jersey-core</artifactId>
240             </exclusion>
241             <exclusion>
242               <groupId>com.sun.jersey</groupId>
243               <artifactId>jersey-json</artifactId>
244             </exclusion>
245             <exclusion>
246               <groupId>javax.servlet</groupId>
247               <artifactId>servlet-api</artifactId>
248             </exclusion>
249             <exclusion>
250               <groupId>tomcat</groupId>
251               <artifactId>jasper-compiler</artifactId>
252             </exclusion>
253             <exclusion>
254               <groupId>tomcat</groupId>
255               <artifactId>jasper-runtime</artifactId>
256             </exclusion>
257           </exclusions>
258         </dependency>
259       </dependencies>
260     </profile>
262     <!--
263       profile for building against Hadoop 3.0.x. Activate using:
264        mvn -Dhadoop.profile=3.0
265     -->
266     <profile>
267       <id>hadoop-3.0</id>
268       <activation>
269         <property>
270           <name>hadoop.profile</name>
271           <value>3.0</value>
272         </property>
273       </activation>
274       <properties>
275         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
276       </properties>
277       <dependencies>
278         <dependency>
279           <groupId>org.apache.hadoop</groupId>
280           <artifactId>hadoop-auth</artifactId>
281         </dependency>
282         <dependency>
283           <groupId>org.apache.hadoop</groupId>
284           <artifactId>hadoop-common</artifactId>
285           <exclusions>
286             <exclusion>
287               <groupId>net.java.dev.jets3t</groupId>
288               <artifactId>jets3t</artifactId>
289             </exclusion>
290             <exclusion>
291               <groupId>javax.servlet.jsp</groupId>
292               <artifactId>jsp-api</artifactId>
293             </exclusion>
294             <exclusion>
295               <groupId>org.eclipse.jetty</groupId>
296               <artifactId>jetty-server</artifactId>
297             </exclusion>
298             <exclusion>
299               <groupId>org.eclipse.jetty</groupId>
300               <artifactId>jetty-servlet</artifactId>
301             </exclusion>
302             <exclusion>
303               <groupId>org.eclipse.jetty</groupId>
304               <artifactId>jetty-webapp</artifactId>
305             </exclusion>
306             <exclusion>
307               <groupId>org.eclipse.jetty</groupId>
308               <artifactId>jetty-util</artifactId>
309             </exclusion>
310             <exclusion>
311               <groupId>com.sun.jersey</groupId>
312               <artifactId>jersey-server</artifactId>
313             </exclusion>
314             <exclusion>
315               <groupId>com.sun.jersey</groupId>
316               <artifactId>jersey-core</artifactId>
317             </exclusion>
318             <exclusion>
319               <groupId>com.sun.jersey</groupId>
320               <artifactId>jersey-json</artifactId>
321             </exclusion>
322             <exclusion>
323               <groupId>javax.servlet</groupId>
324               <artifactId>servlet-api</artifactId>
325             </exclusion>
326             <exclusion>
327               <groupId>tomcat</groupId>
328               <artifactId>jasper-compiler</artifactId>
329             </exclusion>
330             <exclusion>
331               <groupId>tomcat</groupId>
332               <artifactId>jasper-runtime</artifactId>
333             </exclusion>
334           </exclusions>
335         </dependency>
336       </dependencies>
337     </profile>
338     <profile>
339       <id>eclipse-specific</id>
340       <activation>
341         <property>
342           <name>m2e.version</name>
343         </property>
344       </activation>
345       <build>
346         <pluginManagement>
347           <plugins>
348             <!--This plugin's configuration is used to store Eclipse m2e settings
349                  only. It has no influence on the Maven build itself.-->
350             <plugin>
351               <groupId>org.eclipse.m2e</groupId>
352               <artifactId>lifecycle-mapping</artifactId>
353               <configuration>
354                 <lifecycleMappingMetadata>
355                   <pluginExecutions>
356                   </pluginExecutions>
357                 </lifecycleMappingMetadata>
358               </configuration>
359             </plugin>
360           </plugins>
361         </pluginManagement>
362       </build>
363     </profile>
364   </profiles>
365 </project>