HBASE-23755. [OpenTracing] Declare HTrace is unusable in the user doc (#1196)
[hbase.git] / hbase-shell / pom.xml
blob7483da5968e027745c7dc42c820f11d0b4dbfe40
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       <!-- Run findbugs -->
115       <plugin>
116         <groupId>org.codehaus.mojo</groupId>
117         <artifactId>findbugs-maven-plugin</artifactId>
118       </plugin>
119       <plugin>
120         <groupId>net.revelc.code</groupId>
121         <artifactId>warbucks-maven-plugin</artifactId>
122       </plugin>
123     </plugins>
124     <!-- General Resources -->
125     <pluginManagement>
126        <plugins>
127         <plugin>
128           <artifactId>maven-surefire-plugin</artifactId>
129           <version>${surefire.version}</version>
130           <configuration>
131             <!-- Have to set the groups here because we only do
132             split tests in this package, so groups on live in this module -->
133             <groups>${surefire.firstPartGroups}</groups>
134           </configuration>
135         </plugin>
136        </plugins>
137     </pluginManagement>
138   </build>
139   <dependencies>
140     <!-- Intra-project dependencies -->
141     <dependency>
142       <groupId>org.apache.hbase</groupId>
143       <artifactId>hbase-common</artifactId>
144     </dependency>
145     <dependency>
146       <groupId>org.apache.hbase</groupId>
147       <artifactId>hbase-annotations</artifactId>
148       <type>test-jar</type>
149       <scope>test</scope>
150     </dependency>
151     <dependency>
152       <groupId>org.apache.hbase</groupId>
153       <artifactId>hbase-client</artifactId>
154     </dependency>
155     <dependency>
156       <groupId>org.apache.hbase</groupId>
157       <artifactId>hbase-server</artifactId>
158     </dependency>
159     <dependency>
160       <groupId>org.apache.hbase</groupId>
161       <artifactId>hbase-hadoop-compat</artifactId>
162     </dependency>
163     <dependency>
164       <groupId>org.apache.hbase</groupId>
165       <artifactId>${compat.module}</artifactId>
166       <version>${project.version}</version>
167     </dependency>
168     <dependency>
169       <groupId>org.apache.hbase</groupId>
170       <artifactId>hbase-testing-util</artifactId>
171       <scope>test</scope>
172     </dependency>
173     <!-- General dependencies -->
174     <dependency>
175       <groupId>org.slf4j</groupId>
176       <artifactId>slf4j-api</artifactId>
177     </dependency>
178     <dependency>
179       <groupId>org.jruby</groupId>
180       <artifactId>jruby-complete</artifactId>
181     </dependency>
182     <!-- Test Dependencies -->
183     <dependency>
184       <groupId>junit</groupId>
185       <artifactId>junit</artifactId>
186       <scope>test</scope>
187     </dependency>
188   </dependencies>
189   <profiles>
190     <profile>
191       <id>rsgroup</id>
192       <activation>
193         <property>
194             <name>!skip-rsgroup</name>
195         </property>
196       </activation>
197       <dependencies>
198         <dependency>
199           <groupId>org.apache.hbase</groupId>
200           <artifactId>hbase-rsgroup</artifactId>
201         </dependency>
202       </dependencies>
203       <build>
204         <plugins>
205           <plugin>
206             <groupId>org.codehaus.mojo</groupId>
207             <artifactId>build-helper-maven-plugin</artifactId>
208             <executions>
209               <execution>
210                 <id>add-test-source</id>
211                 <goals>
212                   <goal>add-test-source</goal>
213                 </goals>
214                 <configuration>
215                   <sources>
216                     <source>src/test/rsgroup</source>
217                   </sources>
218                 </configuration>
219               </execution>
220             </executions>
221           </plugin>
222         </plugins>
223       </build>
224     </profile>
225     <!-- Skip the tests in this module -->
226     <profile>
227       <id>skipShellTests</id>
228       <activation>
229         <property>
230           <name>skipShellTests</name>
231         </property>
232       </activation>
233       <properties>
234         <surefire.skipFirstPart>true</surefire.skipFirstPart>
235         <surefire.skipSecondPart>true</surefire.skipSecondPart>
236       </properties>
237     </profile>
238     <!-- Profiles for building against different hadoop versions -->
239     <!-- There are a lot of common dependencies used here, should investigate
240     if we can combine these profiles somehow -->
242     <!-- profile for building against Hadoop 2.x. This is the default. -->
243     <profile>
244       <id>hadoop-2.0</id>
245       <activation>
246         <property>
247             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
248             <!--h2--><name>!hadoop.profile</name>
249         </property>
250       </activation>
251       <dependencies>
252         <dependency>
253           <groupId>org.apache.hadoop</groupId>
254           <artifactId>hadoop-common</artifactId>
255         </dependency>
256         <dependency>
257           <groupId>org.apache.hadoop</groupId>
258           <artifactId>hadoop-auth</artifactId>
259           <exclusions>
260             <exclusion>
261               <groupId>com.google.guava</groupId>
262               <artifactId>guava</artifactId>
263             </exclusion>
264           </exclusions>
265         </dependency>
266         <dependency>
267           <groupId>org.apache.hadoop</groupId>
268           <artifactId>hadoop-client</artifactId>
269           <exclusions>
270             <exclusion>
271               <groupId>com.google.guava</groupId>
272               <artifactId>guava</artifactId>
273             </exclusion>
274           </exclusions>
275         </dependency>
276         <dependency>
277           <groupId>org.apache.hadoop</groupId>
278           <artifactId>hadoop-mapreduce-client-core</artifactId>
279           <exclusions>
280             <exclusion>
281               <groupId>com.google.guava</groupId>
282               <artifactId>guava</artifactId>
283             </exclusion>
284           </exclusions>
285         </dependency>
286         <dependency>
287           <groupId>org.apache.hadoop</groupId>
288           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
289           <type>test-jar</type>
290           <scope>test</scope>
291           <exclusions>
292             <exclusion>
293               <groupId>com.google.guava</groupId>
294               <artifactId>guava</artifactId>
295             </exclusion>
296           </exclusions>
297         </dependency>
298         <dependency>
299           <groupId>org.apache.hadoop</groupId>
300           <artifactId>hadoop-hdfs</artifactId>
301         </dependency>
302         <dependency>
303           <groupId>org.apache.hadoop</groupId>
304           <artifactId>hadoop-hdfs</artifactId>
305           <type>test-jar</type>
306           <scope>test</scope>
307         </dependency>
308         <dependency>
309           <groupId>org.apache.hadoop</groupId>
310           <artifactId>hadoop-minicluster</artifactId>
311           <scope>test</scope>
312           <exclusions>
313             <exclusion>
314               <groupId>com.google.guava</groupId>
315               <artifactId>guava</artifactId>
316             </exclusion>
317             <exclusion>
318               <groupId>org.apache.zookeeper</groupId>
319               <artifactId>zookeeper</artifactId>
320             </exclusion>
321           </exclusions>
322         </dependency>
323         <dependency>
324           <groupId>org.apache.hadoop</groupId>
325           <artifactId>hadoop-minikdc</artifactId>
326         </dependency>
327       </dependencies>
328       <build>
329         <plugins>
330           <plugin>
331             <artifactId>maven-dependency-plugin</artifactId>
332             <executions>
333               <execution>
334                 <id>create-mrapp-generated-classpath</id>
335                 <phase>generate-test-resources</phase>
336                 <goals>
337                   <goal>build-classpath</goal>
338                 </goals>
339                 <configuration>
340                   <!-- needed to run the unit test for DS to generate
341                   the required classpath that is required in the env
342                   of the launch container in the mini mr/yarn cluster
343                   -->
344                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
345                 </configuration>
346               </execution>
347             </executions>
348           </plugin>
349         </plugins>
350       </build>
351     </profile>
352     <!--
353       profile for building against Hadoop 3.0.x. Activate using:
354        mvn -Dhadoop.profile=3.0
355     -->
356     <profile>
357       <id>hadoop-3.0</id>
358       <activation>
359         <property>
360           <name>hadoop.profile</name>
361           <value>3.0</value>
362         </property>
363       </activation>
364       <properties>
365         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
366       </properties>
367       <dependencies>
368         <dependency>
369           <groupId>org.apache.hadoop</groupId>
370           <artifactId>hadoop-common</artifactId>
371         </dependency>
372         <dependency>
373           <groupId>org.apache.hadoop</groupId>
374           <artifactId>hadoop-minicluster</artifactId>
375           <exclusions>
376             <exclusion>
377               <groupId>com.google.guava</groupId>
378               <artifactId>guava</artifactId>
379             </exclusion>
380           </exclusions>
381         </dependency>
382         <dependency>
383           <groupId>org.apache.hadoop</groupId>
384           <artifactId>hadoop-minikdc</artifactId>
385         </dependency>
386       </dependencies>
387       <build>
388         <plugins>
389           <plugin>
390             <artifactId>maven-dependency-plugin</artifactId>
391             <executions>
392               <execution>
393                 <id>create-mrapp-generated-classpath</id>
394                 <phase>generate-test-resources</phase>
395                 <goals>
396                   <goal>build-classpath</goal>
397                 </goals>
398                 <configuration>
399                   <!-- needed to run the unit test for DS to generate
400                   the required classpath that is required in the env
401                   of the launch container in the mini mr/yarn cluster
402                   -->
403                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
404                 </configuration>
405               </execution>
406             </executions>
407           </plugin>
408         </plugins>
409       </build>
410     </profile>
411     <profile>
412       <id>eclipse-specific</id>
413       <activation>
414         <property>
415           <name>m2e.version</name>
416         </property>
417       </activation>
418       <build>
419         <pluginManagement>
420           <plugins>
421             <!--This plugin's configuration is used to store Eclipse m2e settings
422                  only. It has no influence on the Maven build itself.-->
423             <plugin>
424               <groupId>org.eclipse.m2e</groupId>
425               <artifactId>lifecycle-mapping</artifactId>
426               <configuration>
427                 <lifecycleMappingMetadata>
428                   <pluginExecutions>
429                     <pluginExecution>
430                       <pluginExecutionFilter>
431                         <groupId>org.apache.maven.plugins</groupId>
432                         <artifactId>maven-dependency-plugin</artifactId>
433                         <versionRange>[2.8,)</versionRange>
434                         <goals>
435                           <goal>build-classpath</goal>
436                         </goals>
437                       </pluginExecutionFilter>
438                       <action>
439                         <ignore></ignore>
440                       </action>
441                     </pluginExecution>
442                   </pluginExecutions>
443                 </lifecycleMappingMetadata>
444               </configuration>
445             </plugin>
446           </plugins>
447         </pluginManagement>
448       </build>
449     </profile>
450   </profiles>
451 </project>