HBASE-26601 maven-gpg-plugin failing with "Inappropriate ioctl for device"
[hbase.git] / hbase-shell / pom.xml
blob7589d5c8507d897ad5fa5f6b51f1c7a9e24d8428
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.9-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     <resources>
34       <resource>
35         <directory>src/main/ruby</directory>
36       </resource>
37     </resources>
38     <testResources>
39       <testResource>
40         <directory>src/test/resources</directory>
41         <includes>
42           <include>**/**</include>
43         </includes>
44       </testResource>
45     </testResources>
46     <plugins>
47       <plugin>
48         <groupId>org.apache.maven.plugins</groupId>
49         <artifactId>maven-jar-plugin</artifactId>
50         <configuration>
51           <archive>
52             <manifest>
53               <mainClass>org.jruby.JarBootstrapMain</mainClass>
54             </manifest>
55           </archive>
56         </configuration>
57       </plugin>
58       <!-- Make a jar and put the sources in the jar -->
59       <plugin>
60         <groupId>org.apache.maven.plugins</groupId>
61         <artifactId>maven-source-plugin</artifactId>
62       </plugin>
63       <!-- General plugins -->
64       <plugin>
65         <groupId>net.revelc.code</groupId>
66         <artifactId>warbucks-maven-plugin</artifactId>
67       </plugin>
68     </plugins>
69     <!-- General Resources -->
70     <pluginManagement>
71        <plugins>
72         <plugin>
73           <artifactId>maven-surefire-plugin</artifactId>
74           <version>${surefire.version}</version>
75           <configuration>
76             <!-- Have to set the groups here because we only do
77             split tests in this package, so groups on live in this module -->
78             <groups>${surefire.firstPartGroups}</groups>
79           </configuration>
80         </plugin>
81        </plugins>
82     </pluginManagement>
83   </build>
84   <dependencies>
85     <!-- Intra-project dependencies -->
86     <dependency>
87       <groupId>org.apache.hbase</groupId>
88       <artifactId>hbase-logging</artifactId>
89       <type>test-jar</type>
90       <scope>test</scope>
91     </dependency>
92     <dependency>
93       <groupId>org.apache.hbase</groupId>
94       <artifactId>hbase-common</artifactId>
95     </dependency>
96     <dependency>
97       <groupId>org.apache.hbase</groupId>
98       <artifactId>hbase-annotations</artifactId>
99       <type>test-jar</type>
100       <scope>test</scope>
101     </dependency>
102     <dependency>
103       <groupId>org.apache.hbase</groupId>
104       <artifactId>hbase-client</artifactId>
105     </dependency>
106     <dependency>
107       <groupId>org.apache.hbase</groupId>
108       <artifactId>hbase-server</artifactId>
109     </dependency>
110     <dependency>
111       <groupId>org.apache.hbase</groupId>
112       <artifactId>hbase-hadoop-compat</artifactId>
113     </dependency>
114     <dependency>
115       <groupId>org.apache.hbase</groupId>
116       <artifactId>${compat.module}</artifactId>
117       <version>${project.version}</version>
118     </dependency>
119     <dependency>
120       <groupId>org.apache.hbase</groupId>
121       <artifactId>hbase-testing-util</artifactId>
122       <scope>test</scope>
123     </dependency>
124     <!-- General dependencies -->
125     <dependency>
126       <groupId>org.slf4j</groupId>
127       <artifactId>slf4j-api</artifactId>
128     </dependency>
129     <dependency>
130       <groupId>org.jruby</groupId>
131       <artifactId>jruby-complete</artifactId>
132     </dependency>
133     <!-- Test Dependencies -->
134     <dependency>
135       <groupId>junit</groupId>
136       <artifactId>junit</artifactId>
137       <scope>test</scope>
138     </dependency>
139     <dependency>
140       <groupId>org.slf4j</groupId>
141       <artifactId>jcl-over-slf4j</artifactId>
142       <scope>test</scope>
143     </dependency>
144     <dependency>
145       <groupId>org.slf4j</groupId>
146       <artifactId>jul-to-slf4j</artifactId>
147       <scope>test</scope>
148     </dependency>
149     <dependency>
150       <groupId>org.slf4j</groupId>
151       <artifactId>slf4j-log4j12</artifactId>
152       <scope>test</scope>
153     </dependency>
154     <dependency>
155       <groupId>log4j</groupId>
156       <artifactId>log4j</artifactId>
157       <scope>test</scope>
158     </dependency>
159   </dependencies>
160   <profiles>
161     <profile>
162       <id>rsgroup</id>
163       <activation>
164         <property>
165             <name>!skip-rsgroup</name>
166         </property>
167       </activation>
168       <dependencies>
169         <dependency>
170           <groupId>org.apache.hbase</groupId>
171           <artifactId>hbase-rsgroup</artifactId>
172         </dependency>
173       </dependencies>
174       <build>
175         <plugins>
176           <plugin>
177             <groupId>org.codehaus.mojo</groupId>
178             <artifactId>build-helper-maven-plugin</artifactId>
179             <executions>
180               <execution>
181                 <id>add-test-source</id>
182                 <goals>
183                   <goal>add-test-source</goal>
184                 </goals>
185                 <configuration>
186                   <sources>
187                     <source>src/test/rsgroup</source>
188                   </sources>
189                 </configuration>
190               </execution>
191             </executions>
192           </plugin>
193         </plugins>
194       </build>
195     </profile>
196     <!-- Skip the tests in this module -->
197     <profile>
198       <id>skipShellTests</id>
199       <activation>
200         <property>
201           <name>skipShellTests</name>
202         </property>
203       </activation>
204       <properties>
205         <surefire.skipFirstPart>true</surefire.skipFirstPart>
206         <surefire.skipSecondPart>true</surefire.skipSecondPart>
207       </properties>
208     </profile>
209     <!-- Profiles for building against different hadoop versions -->
210     <!-- There are a lot of common dependencies used here, should investigate
211     if we can combine these profiles somehow -->
213     <!-- profile for building against Hadoop 2.x. This is the default. -->
214     <profile>
215       <id>hadoop-2.0</id>
216       <activation>
217         <property>
218             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
219             <!--h2--><name>!hadoop.profile</name>
220         </property>
221       </activation>
222       <dependencies>
223         <dependency>
224           <groupId>org.apache.hadoop</groupId>
225           <artifactId>hadoop-common</artifactId>
226         </dependency>
227         <dependency>
228           <groupId>org.apache.hadoop</groupId>
229           <artifactId>hadoop-auth</artifactId>
230           <exclusions>
231             <exclusion>
232               <groupId>com.google.guava</groupId>
233               <artifactId>guava</artifactId>
234             </exclusion>
235           </exclusions>
236         </dependency>
237         <dependency>
238           <groupId>org.apache.hadoop</groupId>
239           <artifactId>hadoop-client</artifactId>
240           <exclusions>
241             <exclusion>
242               <groupId>com.google.guava</groupId>
243               <artifactId>guava</artifactId>
244             </exclusion>
245             <exclusion>
246               <groupId>javax.xml.bind</groupId>
247               <artifactId>jaxb-api</artifactId>
248             </exclusion>
249             <exclusion>
250               <groupId>javax.ws.rs</groupId>
251               <artifactId>jsr311-api</artifactId>
252             </exclusion>
253           </exclusions>
254         </dependency>
255         <dependency>
256           <groupId>org.apache.hadoop</groupId>
257           <artifactId>hadoop-mapreduce-client-core</artifactId>
258           <exclusions>
259             <exclusion>
260               <groupId>com.google.guava</groupId>
261               <artifactId>guava</artifactId>
262             </exclusion>
263             <exclusion>
264               <groupId>javax.xml.bind.</groupId>
265               <artifactId>jaxb-api</artifactId>
266             </exclusion>
267             <exclusion>
268               <groupId>javax.ws.rs</groupId>
269               <artifactId>jsr311-api</artifactId>
270             </exclusion>
271           </exclusions>
272         </dependency>
273         <dependency>
274           <groupId>org.apache.hadoop</groupId>
275           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
276           <type>test-jar</type>
277           <scope>test</scope>
278           <exclusions>
279             <exclusion>
280               <groupId>com.google.guava</groupId>
281               <artifactId>guava</artifactId>
282             </exclusion>
283             <exclusion>
284               <groupId>javax.xml.bind.</groupId>
285               <artifactId>jaxb-api</artifactId>
286             </exclusion>
287             <exclusion>
288               <groupId>javax.ws.rs</groupId>
289               <artifactId>jsr311-api</artifactId>
290             </exclusion>
291           </exclusions>
292         </dependency>
293         <dependency>
294           <groupId>org.apache.hadoop</groupId>
295           <artifactId>hadoop-hdfs</artifactId>
296         </dependency>
297         <dependency>
298           <groupId>org.apache.hadoop</groupId>
299           <artifactId>hadoop-hdfs</artifactId>
300           <type>test-jar</type>
301           <scope>test</scope>
302         </dependency>
303         <dependency>
304           <groupId>org.apache.hadoop</groupId>
305           <artifactId>hadoop-minicluster</artifactId>
306           <scope>test</scope>
307           <exclusions>
308             <exclusion>
309               <groupId>com.google.guava</groupId>
310               <artifactId>guava</artifactId>
311             </exclusion>
312             <exclusion>
313               <groupId>org.apache.zookeeper</groupId>
314               <artifactId>zookeeper</artifactId>
315             </exclusion>
316           </exclusions>
317         </dependency>
318         <dependency>
319           <groupId>org.apache.hadoop</groupId>
320           <artifactId>hadoop-minikdc</artifactId>
321         </dependency>
322       </dependencies>
323       <build>
324         <plugins>
325           <plugin>
326             <artifactId>maven-dependency-plugin</artifactId>
327             <executions>
328               <execution>
329                 <id>create-mrapp-generated-classpath</id>
330                 <phase>generate-test-resources</phase>
331                 <goals>
332                   <goal>build-classpath</goal>
333                 </goals>
334                 <configuration>
335                   <!-- needed to run the unit test for DS to generate
336                   the required classpath that is required in the env
337                   of the launch container in the mini mr/yarn cluster
338                   -->
339                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
340                 </configuration>
341               </execution>
342             </executions>
343           </plugin>
344         </plugins>
345       </build>
346     </profile>
347     <!--
348       profile for building against Hadoop 3.0.x. Activate using:
349        mvn -Dhadoop.profile=3.0
350     -->
351     <profile>
352       <id>hadoop-3.0</id>
353       <activation>
354         <property>
355           <name>hadoop.profile</name>
356           <value>3.0</value>
357         </property>
358       </activation>
359       <dependencies>
360         <dependency>
361           <groupId>org.apache.hadoop</groupId>
362           <artifactId>hadoop-common</artifactId>
363         </dependency>
364         <dependency>
365           <groupId>org.apache.hadoop</groupId>
366           <artifactId>hadoop-minicluster</artifactId>
367           <exclusions>
368             <exclusion>
369               <groupId>com.google.guava</groupId>
370               <artifactId>guava</artifactId>
371             </exclusion>
372             <exclusion>
373               <groupId>javax.ws.rs</groupId>
374               <artifactId>jsr311-api</artifactId>
375             </exclusion>
376           </exclusions>
377         </dependency>
378         <dependency>
379           <groupId>org.apache.hadoop</groupId>
380           <artifactId>hadoop-minikdc</artifactId>
381         </dependency>
382       </dependencies>
383       <build>
384         <plugins>
385           <plugin>
386             <artifactId>maven-dependency-plugin</artifactId>
387             <executions>
388               <execution>
389                 <id>create-mrapp-generated-classpath</id>
390                 <phase>generate-test-resources</phase>
391                 <goals>
392                   <goal>build-classpath</goal>
393                 </goals>
394                 <configuration>
395                   <!-- needed to run the unit test for DS to generate
396                   the required classpath that is required in the env
397                   of the launch container in the mini mr/yarn cluster
398                   -->
399                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
400                 </configuration>
401               </execution>
402             </executions>
403           </plugin>
404         </plugins>
405       </build>
406     </profile>
407     <profile>
408       <id>eclipse-specific</id>
409       <activation>
410         <property>
411           <name>m2e.version</name>
412         </property>
413       </activation>
414       <build>
415         <pluginManagement>
416           <plugins>
417             <!--This plugin's configuration is used to store Eclipse m2e settings
418                  only. It has no influence on the Maven build itself.-->
419             <plugin>
420               <groupId>org.eclipse.m2e</groupId>
421               <artifactId>lifecycle-mapping</artifactId>
422               <configuration>
423                 <lifecycleMappingMetadata>
424                   <pluginExecutions>
425                     <pluginExecution>
426                       <pluginExecutionFilter>
427                         <groupId>org.apache.maven.plugins</groupId>
428                         <artifactId>maven-dependency-plugin</artifactId>
429                         <versionRange>[2.8,)</versionRange>
430                         <goals>
431                           <goal>build-classpath</goal>
432                         </goals>
433                       </pluginExecutionFilter>
434                       <action>
435                         <ignore></ignore>
436                       </action>
437                     </pluginExecution>
438                   </pluginExecutions>
439                 </lifecycleMappingMetadata>
440               </configuration>
441             </plugin>
442           </plugins>
443         </pluginManagement>
444       </build>
445     </profile>
446   </profiles>
447 </project>