HBASE-23845 Removed deprecated setMaxVersions from Scan (#1208)
[hbase.git] / hbase-shell / pom.xml
blobb6df681206772e143ec58818c8a9090dd98a98b1
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-shell</artifactId>
30   <name>Apache HBase - Shell</name>
31   <description>Shell for HBase</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       <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
54         tests (this is needed for upstream projects whose tests need this jar simply for
55         compilation) -->
56       <plugin>
57         <!--Make it so assembly:single does nothing in here-->
58         <artifactId>maven-assembly-plugin</artifactId>
59         <configuration>
60           <skipAssembly>true</skipAssembly>
61         </configuration>
62       </plugin>
63       <plugin>
64         <groupId>org.apache.maven.plugins</groupId>
65         <artifactId>maven-jar-plugin</artifactId>
66         <configuration>
67           <archive>
68             <manifest>
69               <mainClass>org/apache/hadoop/hbase/mapreduce/Driver</mainClass>
70             </manifest>
71           </archive>
72           <!-- Exclude these 2 packages, because their dependency _binary_ files
73             include the sources, and Maven 2.2 appears to add them to the sources to compile,
74             weird -->
75           <excludes>
76             <exclude>org/apache/jute/**</exclude>
77             <exclude>org/apache/zookeeper/**</exclude>
78             <exclude>**/*.jsp</exclude>
79             <exclude>hbase-site.xml</exclude>
80             <exclude>hdfs-site.xml</exclude>
81             <exclude>log4j.properties</exclude>
82             <exclude>mapred-queues.xml</exclude>
83             <exclude>mapred-site.xml</exclude>
84           </excludes>
85         </configuration>
86       </plugin>
87       <!-- Make a jar and put the sources in the jar -->
88       <plugin>
89         <groupId>org.apache.maven.plugins</groupId>
90         <artifactId>maven-source-plugin</artifactId>
91       </plugin>
92       <!-- General ant tasks, bound to different build phases -->
93       <plugin>
94         <groupId>org.codehaus.mojo</groupId>
95         <artifactId>build-helper-maven-plugin</artifactId>
96         <executions>
97           <!-- Add the generated sources -->
98           <execution>
99             <id>jspcSource-packageInfo-source</id>
100             <phase>generate-sources</phase>
101             <goals>
102               <goal>add-source</goal>
103             </goals>
104             <configuration>
105               <sources>
106                 <source>${project.build.directory}/generated-jamon</source>
107                 <source>${project.build.directory}/generated-sources/java</source>
108               </sources>
109             </configuration>
110           </execution>
111         </executions>
112       </plugin>
113       <!-- General plugins -->
114       <plugin>
115         <groupId>net.revelc.code</groupId>
116         <artifactId>warbucks-maven-plugin</artifactId>
117       </plugin>
118     </plugins>
119     <!-- General Resources -->
120     <pluginManagement>
121        <plugins>
122         <plugin>
123           <artifactId>maven-surefire-plugin</artifactId>
124           <version>${surefire.version}</version>
125           <configuration>
126             <!-- Have to set the groups here because we only do
127             split tests in this package, so groups on live in this module -->
128             <groups>${surefire.firstPartGroups}</groups>
129           </configuration>
130         </plugin>
131        </plugins>
132     </pluginManagement>
133   </build>
134   <dependencies>
135     <!-- Intra-project dependencies -->
136     <dependency>
137       <groupId>org.apache.hbase</groupId>
138       <artifactId>hbase-common</artifactId>
139     </dependency>
140     <dependency>
141       <groupId>org.apache.hbase</groupId>
142       <artifactId>hbase-annotations</artifactId>
143       <type>test-jar</type>
144       <scope>test</scope>
145     </dependency>
146     <dependency>
147       <groupId>org.apache.hbase</groupId>
148       <artifactId>hbase-client</artifactId>
149     </dependency>
150     <dependency>
151       <groupId>org.apache.hbase</groupId>
152       <artifactId>hbase-server</artifactId>
153     </dependency>
154     <dependency>
155       <groupId>org.apache.hbase</groupId>
156       <artifactId>hbase-hadoop-compat</artifactId>
157     </dependency>
158     <dependency>
159       <groupId>org.apache.hbase</groupId>
160       <artifactId>${compat.module}</artifactId>
161       <version>${project.version}</version>
162     </dependency>
163     <dependency>
164       <groupId>org.apache.hbase</groupId>
165       <artifactId>hbase-testing-util</artifactId>
166       <scope>test</scope>
167     </dependency>
168     <!-- General dependencies -->
169     <dependency>
170       <groupId>org.slf4j</groupId>
171       <artifactId>slf4j-api</artifactId>
172     </dependency>
173     <dependency>
174       <groupId>org.jruby</groupId>
175       <artifactId>jruby-complete</artifactId>
176     </dependency>
177     <!-- Test Dependencies -->
178     <dependency>
179       <groupId>junit</groupId>
180       <artifactId>junit</artifactId>
181       <scope>test</scope>
182     </dependency>
183   </dependencies>
184   <profiles>
185     <!-- Skip the tests in this module -->
186     <profile>
187       <id>skipShellTests</id>
188       <activation>
189         <property>
190           <name>skipShellTests</name>
191         </property>
192       </activation>
193       <properties>
194         <surefire.skipFirstPart>true</surefire.skipFirstPart>
195         <surefire.skipSecondPart>true</surefire.skipSecondPart>
196       </properties>
197     </profile>
198     <!-- Profiles for building against different hadoop versions -->
199     <!-- There are a lot of common dependencies used here, should investigate
200     if we can combine these profiles somehow -->
202     <!-- profile for building against Hadoop 2.x. This is the default. -->
203     <profile>
204       <id>hadoop-2.0</id>
205       <activation>
206         <property>
207             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
208             <!--h2--><name>!hadoop.profile</name>
209         </property>
210       </activation>
211       <dependencies>
212         <dependency>
213           <groupId>org.apache.hadoop</groupId>
214           <artifactId>hadoop-common</artifactId>
215         </dependency>
216         <dependency>
217           <groupId>org.apache.hadoop</groupId>
218           <artifactId>hadoop-auth</artifactId>
219           <exclusions>
220             <exclusion>
221               <groupId>com.google.guava</groupId>
222               <artifactId>guava</artifactId>
223             </exclusion>
224           </exclusions>
225         </dependency>
226         <dependency>
227           <groupId>org.apache.hadoop</groupId>
228           <artifactId>hadoop-client</artifactId>
229           <exclusions>
230             <exclusion>
231               <groupId>com.google.guava</groupId>
232               <artifactId>guava</artifactId>
233             </exclusion>
234           </exclusions>
235         </dependency>
236         <dependency>
237           <groupId>org.apache.hadoop</groupId>
238           <artifactId>hadoop-mapreduce-client-core</artifactId>
239           <exclusions>
240             <exclusion>
241               <groupId>com.google.guava</groupId>
242               <artifactId>guava</artifactId>
243             </exclusion>
244           </exclusions>
245         </dependency>
246         <dependency>
247           <groupId>org.apache.hadoop</groupId>
248           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
249           <type>test-jar</type>
250           <scope>test</scope>
251           <exclusions>
252             <exclusion>
253               <groupId>com.google.guava</groupId>
254               <artifactId>guava</artifactId>
255             </exclusion>
256           </exclusions>
257         </dependency>
258         <dependency>
259           <groupId>org.apache.hadoop</groupId>
260           <artifactId>hadoop-hdfs</artifactId>
261         </dependency>
262         <dependency>
263           <groupId>org.apache.hadoop</groupId>
264           <artifactId>hadoop-hdfs</artifactId>
265           <type>test-jar</type>
266           <scope>test</scope>
267         </dependency>
268         <dependency>
269           <groupId>org.apache.hadoop</groupId>
270           <artifactId>hadoop-minicluster</artifactId>
271           <scope>test</scope>
272           <exclusions>
273             <exclusion>
274               <groupId>com.google.guava</groupId>
275               <artifactId>guava</artifactId>
276             </exclusion>
277             <exclusion>
278               <groupId>org.apache.zookeeper</groupId>
279               <artifactId>zookeeper</artifactId>
280             </exclusion>
281           </exclusions>
282         </dependency>
283         <dependency>
284           <groupId>org.apache.hadoop</groupId>
285           <artifactId>hadoop-minikdc</artifactId>
286         </dependency>
287       </dependencies>
288       <build>
289         <plugins>
290           <plugin>
291             <artifactId>maven-dependency-plugin</artifactId>
292             <executions>
293               <execution>
294                 <id>create-mrapp-generated-classpath</id>
295                 <phase>generate-test-resources</phase>
296                 <goals>
297                   <goal>build-classpath</goal>
298                 </goals>
299                 <configuration>
300                   <!-- needed to run the unit test for DS to generate
301                   the required classpath that is required in the env
302                   of the launch container in the mini mr/yarn cluster
303                   -->
304                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
305                 </configuration>
306               </execution>
307             </executions>
308           </plugin>
309         </plugins>
310       </build>
311     </profile>
312     <!--
313       profile for building against Hadoop 3.0.x. Activate using:
314        mvn -Dhadoop.profile=3.0
315     -->
316     <profile>
317       <id>hadoop-3.0</id>
318       <activation>
319         <property>
320           <name>hadoop.profile</name>
321           <value>3.0</value>
322         </property>
323       </activation>
324       <properties>
325         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
326       </properties>
327       <dependencies>
328         <dependency>
329           <groupId>org.apache.hadoop</groupId>
330           <artifactId>hadoop-common</artifactId>
331         </dependency>
332         <dependency>
333           <groupId>org.apache.hadoop</groupId>
334           <artifactId>hadoop-minicluster</artifactId>
335           <exclusions>
336             <exclusion>
337               <groupId>com.google.guava</groupId>
338               <artifactId>guava</artifactId>
339             </exclusion>
340           </exclusions>
341         </dependency>
342         <dependency>
343           <groupId>org.apache.hadoop</groupId>
344           <artifactId>hadoop-minikdc</artifactId>
345         </dependency>
346       </dependencies>
347       <build>
348         <plugins>
349           <plugin>
350             <artifactId>maven-dependency-plugin</artifactId>
351             <executions>
352               <execution>
353                 <id>create-mrapp-generated-classpath</id>
354                 <phase>generate-test-resources</phase>
355                 <goals>
356                   <goal>build-classpath</goal>
357                 </goals>
358                 <configuration>
359                   <!-- needed to run the unit test for DS to generate
360                   the required classpath that is required in the env
361                   of the launch container in the mini mr/yarn cluster
362                   -->
363                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
364                 </configuration>
365               </execution>
366             </executions>
367           </plugin>
368         </plugins>
369       </build>
370     </profile>
371     <profile>
372       <id>eclipse-specific</id>
373       <activation>
374         <property>
375           <name>m2e.version</name>
376         </property>
377       </activation>
378       <build>
379         <pluginManagement>
380           <plugins>
381             <!--This plugin's configuration is used to store Eclipse m2e settings
382                  only. It has no influence on the Maven build itself.-->
383             <plugin>
384               <groupId>org.eclipse.m2e</groupId>
385               <artifactId>lifecycle-mapping</artifactId>
386               <configuration>
387                 <lifecycleMappingMetadata>
388                   <pluginExecutions>
389                     <pluginExecution>
390                       <pluginExecutionFilter>
391                         <groupId>org.apache.maven.plugins</groupId>
392                         <artifactId>maven-dependency-plugin</artifactId>
393                         <versionRange>[2.8,)</versionRange>
394                         <goals>
395                           <goal>build-classpath</goal>
396                         </goals>
397                       </pluginExecutionFilter>
398                       <action>
399                         <ignore></ignore>
400                       </action>
401                     </pluginExecution>
402                   </pluginExecutions>
403                 </lifecycleMappingMetadata>
404               </configuration>
405             </plugin>
406           </plugins>
407         </pluginManagement>
408       </build>
409     </profile>
410   </profiles>
411 </project>