1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
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
14 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 <modelVersion>4.0.0</modelVersion>
25 <artifactId>hbase-shaded</artifactId>
26 <groupId>org.apache.hbase</groupId>
27 <version>3.0.0-SNAPSHOT</version>
28 <relativePath>..</relativePath>
30 <artifactId>hbase-shaded-mapreduce</artifactId>
31 <name>Apache HBase - Shaded - MapReduce</name>
35 <groupId>org.apache.maven.plugins</groupId>
36 <artifactId>maven-site-plugin</artifactId>
42 <!--Make it so assembly:single does nothing in here-->
43 <artifactId>maven-assembly-plugin</artifactId>
45 <skipAssembly>true</skipAssembly>
49 <groupId>org.apache.maven.plugins</groupId>
50 <artifactId>maven-jar-plugin</artifactId>
54 <!--Include the Driver class as the 'main'.
55 Executing the jar will then show a list of the basic MR jobs.
57 <mainClass>org/apache/hadoop/hbase/mapreduce/Driver</mainClass>
63 <groupId>org.apache.maven.plugins</groupId>
64 <artifactId>maven-shade-plugin</artifactId>
70 We want to ensure needed hadoop bits are at provided scope for our shaded
71 artifact, so we list them below in hadoop specific profiles.
74 <groupId>org.apache.hbase</groupId>
75 <artifactId>hbase-mapreduce</artifactId>
77 <!-- Jaxb-api is a part of Java SE now -->
79 <groupId>javax.xml.bind</groupId>
80 <artifactId>jaxb-api</artifactId>
82 <!-- Jersey not used by our MR support -->
84 <groupId>javax.ws.rs</groupId>
85 <artifactId>javax.ws.rs-api</artifactId>
88 <groupId>com.sun.jersey</groupId>
89 <artifactId>jersey-server</artifactId>
92 <groupId>com.sun.jersey</groupId>
93 <artifactId>jersey-client</artifactId>
96 <groupId>com.sun.jersey</groupId>
97 <artifactId>jersey-core</artifactId>
100 <groupId>com.sun.jersey</groupId>
101 <artifactId>jersey-json</artifactId>
104 <groupId>com.sun.jersey.contribs</groupId>
105 <artifactId>jersey-guice</artifactId>
107 <!-- Jetty not used by our MR support -->
109 <groupId>javax.servlet</groupId>
110 <artifactId>javax.servlet-api</artifactId>
113 <groupId>org.eclipse.jetty</groupId>
114 <artifactId>jetty-http</artifactId>
117 <groupId>org.eclipse.jetty</groupId>
118 <artifactId>jetty-security</artifactId>
121 <groupId>org.eclipse.jetty</groupId>
122 <artifactId>jetty-server</artifactId>
125 <groupId>org.eclipse.jetty</groupId>
126 <artifactId>jetty-servlet</artifactId>
129 <groupId>org.eclipse.jetty</groupId>
130 <artifactId>jetty-util</artifactId>
133 <groupId>org.eclipse.jetty</groupId>
134 <artifactId>jetty-util-ajax</artifactId>
137 <groupId>org.glassfish</groupId>
138 <artifactId>javax.el</artifactId>
141 <groupId>org.eclipse.jetty</groupId>
142 <artifactId>jetty-webapp</artifactId>
145 <groupId>org.glassfish.jersey.core</groupId>
146 <artifactId>jersey-server</artifactId>
149 <groupId>org.glassfish.jersey.containers</groupId>
150 <artifactId>jersey-container-servlet-core</artifactId>
152 <!-- We excluded the server-side generated classes for JSP, so exclude
153 their runtime support libraries too
156 <groupId>org.glassfish.web</groupId>
157 <artifactId>javax.servlet.jsp</artifactId>
160 <groupId>javax.servlet.jsp</groupId>
161 <artifactId>javax.servlet.jsp-api</artifactId>
168 <!-- These hadoop profiles should be derived from those in the hbase-mapreduce
169 module. Essentially, you must list the same hadoop-* dependencies
170 since provided dependencies are not transitively included.
172 <!-- profile against Hadoop 2.x: This is the default. -->
177 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
178 <!--h2--><name>!hadoop.profile</name>
183 <groupId>org.apache.hadoop</groupId>
184 <artifactId>hadoop-common</artifactId>
185 <scope>provided</scope>
188 <groupId>net.java.dev.jets3t</groupId>
189 <artifactId>jets3t</artifactId>
192 <groupId>javax.servlet.jsp</groupId>
193 <artifactId>jsp-api</artifactId>
196 <groupId>org.mortbay.jetty</groupId>
197 <artifactId>jetty</artifactId>
200 <groupId>com.sun.jersey</groupId>
201 <artifactId>jersey-server</artifactId>
204 <groupId>com.sun.jersey</groupId>
205 <artifactId>jersey-core</artifactId>
208 <groupId>com.sun.jersey</groupId>
209 <artifactId>jersey-json</artifactId>
212 <groupId>javax.servlet</groupId>
213 <artifactId>servlet-api</artifactId>
216 <groupId>tomcat</groupId>
217 <artifactId>jasper-compiler</artifactId>
220 <groupId>tomcat</groupId>
221 <artifactId>jasper-runtime</artifactId>
224 <groupId>com.google.code.findbugs</groupId>
225 <artifactId>jsr305</artifactId>
230 <groupId>org.apache.hadoop</groupId>
231 <artifactId>hadoop-hdfs</artifactId>
232 <scope>provided</scope>
235 <groupId>javax.servlet.jsp</groupId>
236 <artifactId>jsp-api</artifactId>
239 <groupId>javax.servlet</groupId>
240 <artifactId>servlet-api</artifactId>
243 <groupId>io.netty</groupId>
244 <artifactId>netty</artifactId>
247 <groupId>stax</groupId>
248 <artifactId>stax-api</artifactId>
251 <groupId>xerces</groupId>
252 <artifactId>xercesImpl</artifactId>
255 <version>${hadoop-two.version}</version>
258 <groupId>org.apache.hadoop</groupId>
259 <artifactId>hadoop-mapreduce-client-core</artifactId>
260 <scope>provided</scope>
263 <groupId>com.google.guava</groupId>
264 <artifactId>guava</artifactId>
269 <groupId>org.apache.hadoop</groupId>
270 <artifactId>hadoop-auth</artifactId>
271 <scope>provided</scope>
277 profile for building against Hadoop 3.0.x. Activate using:
278 mvn -Dhadoop.profile=3.0
284 <name>hadoop.profile</name>
289 <hadoop.version>${hadoop-three.version}</hadoop.version>
293 <groupId>org.apache.hadoop</groupId>
294 <artifactId>hadoop-common</artifactId>
295 <scope>provided</scope>
298 <groupId>org.apache.hadoop</groupId>
299 <artifactId>hadoop-hdfs</artifactId>
300 <scope>provided</scope>
303 <groupId>org.apache.hadoop</groupId>
304 <artifactId>hadoop-auth</artifactId>
305 <scope>provided</scope>