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">
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 <modelVersion>4.0.0</modelVersion>
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>
29 <artifactId>hbase-shell</artifactId>
30 <name>Apache HBase - Shell</name>
31 <description>Shell for HBase</description>
33 <!-- Makes sure the resources get added before they are processed
34 by placing this first -->
36 <!-- Add the build webabpps to the classpth -->
38 <directory>${project.build.directory}</directory>
40 <include>hbase-webapps/**</include>
46 <directory>src/test/resources</directory>
48 <include>**/**</include>
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
57 <!--Make it so assembly:single does nothing in here-->
58 <artifactId>maven-assembly-plugin</artifactId>
60 <skipAssembly>true</skipAssembly>
64 <groupId>org.apache.maven.plugins</groupId>
65 <artifactId>maven-jar-plugin</artifactId>
69 <mainClass>org/apache/hadoop/hbase/mapreduce/Driver</mainClass>
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,
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>
87 <!-- Make a jar and put the sources in the jar -->
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-source-plugin</artifactId>
92 <!-- General ant tasks, bound to different build phases -->
94 <groupId>org.codehaus.mojo</groupId>
95 <artifactId>build-helper-maven-plugin</artifactId>
97 <!-- Add the generated sources -->
99 <id>jspcSource-packageInfo-source</id>
100 <phase>generate-sources</phase>
102 <goal>add-source</goal>
106 <source>${project.build.directory}/generated-jamon</source>
107 <source>${project.build.directory}/generated-sources/java</source>
113 <!-- General plugins -->
115 <groupId>net.revelc.code</groupId>
116 <artifactId>warbucks-maven-plugin</artifactId>
119 <!-- General Resources -->
123 <artifactId>maven-surefire-plugin</artifactId>
124 <version>${surefire.version}</version>
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>
135 <!-- Intra-project dependencies -->
137 <groupId>org.apache.hbase</groupId>
138 <artifactId>hbase-common</artifactId>
141 <groupId>org.apache.hbase</groupId>
142 <artifactId>hbase-annotations</artifactId>
143 <type>test-jar</type>
147 <groupId>org.apache.hbase</groupId>
148 <artifactId>hbase-client</artifactId>
151 <groupId>org.apache.hbase</groupId>
152 <artifactId>hbase-server</artifactId>
155 <groupId>org.apache.hbase</groupId>
156 <artifactId>hbase-hadoop-compat</artifactId>
159 <groupId>org.apache.hbase</groupId>
160 <artifactId>${compat.module}</artifactId>
161 <version>${project.version}</version>
164 <groupId>org.apache.hbase</groupId>
165 <artifactId>hbase-testing-util</artifactId>
168 <!-- General dependencies -->
170 <groupId>org.slf4j</groupId>
171 <artifactId>slf4j-api</artifactId>
174 <groupId>org.jruby</groupId>
175 <artifactId>jruby-complete</artifactId>
177 <!-- Test Dependencies -->
179 <groupId>junit</groupId>
180 <artifactId>junit</artifactId>
185 <!-- Skip the tests in this module -->
187 <id>skipShellTests</id>
190 <name>skipShellTests</name>
194 <surefire.skipFirstPart>true</surefire.skipFirstPart>
195 <surefire.skipSecondPart>true</surefire.skipSecondPart>
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. -->
207 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
208 <!--h2--><name>!hadoop.profile</name>
213 <groupId>org.apache.hadoop</groupId>
214 <artifactId>hadoop-common</artifactId>
217 <groupId>org.apache.hadoop</groupId>
218 <artifactId>hadoop-auth</artifactId>
221 <groupId>com.google.guava</groupId>
222 <artifactId>guava</artifactId>
227 <groupId>org.apache.hadoop</groupId>
228 <artifactId>hadoop-client</artifactId>
231 <groupId>com.google.guava</groupId>
232 <artifactId>guava</artifactId>
237 <groupId>org.apache.hadoop</groupId>
238 <artifactId>hadoop-mapreduce-client-core</artifactId>
241 <groupId>com.google.guava</groupId>
242 <artifactId>guava</artifactId>
247 <groupId>org.apache.hadoop</groupId>
248 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
249 <type>test-jar</type>
253 <groupId>com.google.guava</groupId>
254 <artifactId>guava</artifactId>
259 <groupId>org.apache.hadoop</groupId>
260 <artifactId>hadoop-hdfs</artifactId>
263 <groupId>org.apache.hadoop</groupId>
264 <artifactId>hadoop-hdfs</artifactId>
265 <type>test-jar</type>
269 <groupId>org.apache.hadoop</groupId>
270 <artifactId>hadoop-minicluster</artifactId>
274 <groupId>com.google.guava</groupId>
275 <artifactId>guava</artifactId>
278 <groupId>org.apache.zookeeper</groupId>
279 <artifactId>zookeeper</artifactId>
284 <groupId>org.apache.hadoop</groupId>
285 <artifactId>hadoop-minikdc</artifactId>
291 <artifactId>maven-dependency-plugin</artifactId>
294 <id>create-mrapp-generated-classpath</id>
295 <phase>generate-test-resources</phase>
297 <goal>build-classpath</goal>
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
304 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
313 profile for building against Hadoop 3.0.x. Activate using:
314 mvn -Dhadoop.profile=3.0
320 <name>hadoop.profile</name>
325 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
329 <groupId>org.apache.hadoop</groupId>
330 <artifactId>hadoop-common</artifactId>
333 <groupId>org.apache.hadoop</groupId>
334 <artifactId>hadoop-minicluster</artifactId>
337 <groupId>com.google.guava</groupId>
338 <artifactId>guava</artifactId>
343 <groupId>org.apache.hadoop</groupId>
344 <artifactId>hadoop-minikdc</artifactId>
350 <artifactId>maven-dependency-plugin</artifactId>
353 <id>create-mrapp-generated-classpath</id>
354 <phase>generate-test-resources</phase>
356 <goal>build-classpath</goal>
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
363 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
372 <id>eclipse-specific</id>
375 <name>m2e.version</name>
381 <!--This plugin's configuration is used to store Eclipse m2e settings
382 only. It has no influence on the Maven build itself.-->
384 <groupId>org.eclipse.m2e</groupId>
385 <artifactId>lifecycle-mapping</artifactId>
387 <lifecycleMappingMetadata>
390 <pluginExecutionFilter>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-dependency-plugin</artifactId>
393 <versionRange>[2.8,)</versionRange>
395 <goal>build-classpath</goal>
397 </pluginExecutionFilter>
403 </lifecycleMappingMetadata>