Revert "Preparing development version 2.4.9-SNAPSHOT"
[hbase.git] / hbase-shaded / hbase-shaded-mapreduce / pom.xml
blob741621c06a8ba5af1dcd17fa7be5583b38ed3625
1 <project xmlns="https://maven.apache.org/POM/4.0.0"
2          xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
3          xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <!--
5       /**
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
13        *
14        *     http://www.apache.org/licenses/LICENSE-2.0
15        *
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.
21        */
22       -->
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <artifactId>hbase-shaded</artifactId>
26         <groupId>org.apache.hbase</groupId>
27         <version>2.4.8</version>
28         <relativePath>..</relativePath>
29     </parent>
30     <artifactId>hbase-shaded-mapreduce</artifactId>
31     <name>Apache HBase - Shaded - MapReduce</name>
32     <build>
33         <plugins>
34             <plugin>
35                 <groupId>org.apache.maven.plugins</groupId>
36                 <artifactId>maven-site-plugin</artifactId>
37                 <configuration>
38                     <skip>true</skip>
39                 </configuration>
40             </plugin>
41             <plugin>
42                 <!--Make it so assembly:single does nothing in here-->
43                 <artifactId>maven-assembly-plugin</artifactId>
44                 <configuration>
45                     <skipAssembly>true</skipAssembly>
46                 </configuration>
47             </plugin>
48             <plugin>
49                 <groupId>org.apache.maven.plugins</groupId>
50                 <artifactId>maven-jar-plugin</artifactId>
51                 <configuration>
52                     <archive>
53                         <manifest>
54                             <!--Include the Driver class as the 'main'.
55                                  Executing the jar will then show a list of the basic MR jobs.
56                                  -->
57                             <mainClass>org/apache/hadoop/hbase/mapreduce/Driver</mainClass>
58                         </manifest>
59                     </archive>
60                 </configuration>
61             </plugin>
62             <plugin>
63                 <groupId>org.apache.maven.plugins</groupId>
64                 <artifactId>maven-shade-plugin</artifactId>
65             </plugin>
66         </plugins>
67     </build>
68     <dependencies>
69         <!--
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.
72           -->
73         <dependency>
74             <groupId>org.apache.hbase</groupId>
75             <artifactId>hbase-mapreduce</artifactId>
76             <exclusions>
77               <!-- Jaxb-api is a part of Java SE now -->
78               <exclusion>
79                 <groupId>javax.xml.bind</groupId>
80                 <artifactId>jaxb-api</artifactId>
81               </exclusion>
82               <exclusion>
83                 <groupId>javax.ws.rs</groupId>
84                 <artifactId>jsr311-api</artifactId>
85               </exclusion>
86               <!-- Jersey not used by our MR support -->
87               <exclusion>
88                 <groupId>javax.ws.rs</groupId>
89                 <artifactId>javax.ws.rs-api</artifactId>
90               </exclusion>
91               <exclusion>
92                 <groupId>com.sun.jersey</groupId>
93                 <artifactId>jersey-server</artifactId>
94               </exclusion>
95               <exclusion>
96                 <groupId>com.sun.jersey</groupId>
97                 <artifactId>jersey-client</artifactId>
98               </exclusion>
99               <exclusion>
100                 <groupId>com.sun.jersey</groupId>
101                 <artifactId>jersey-core</artifactId>
102               </exclusion>
103               <exclusion>
104                 <groupId>com.sun.jersey</groupId>
105                 <artifactId>jersey-json</artifactId>
106               </exclusion>
107               <exclusion>
108                 <groupId>com.sun.jersey.contribs</groupId>
109                 <artifactId>jersey-guice</artifactId>
110               </exclusion>
111               <!-- Jetty not used by our MR support -->
112               <exclusion>
113                 <groupId>javax.servlet</groupId>
114                 <artifactId>javax.servlet-api</artifactId>
115               </exclusion>
116               <exclusion>
117                 <groupId>org.eclipse.jetty</groupId>
118                 <artifactId>jetty-http</artifactId>
119               </exclusion>
120               <exclusion>
121                 <groupId>org.eclipse.jetty</groupId>
122                 <artifactId>jetty-security</artifactId>
123               </exclusion>
124               <exclusion>
125                 <groupId>org.eclipse.jetty</groupId>
126                 <artifactId>jetty-server</artifactId>
127               </exclusion>
128               <exclusion>
129                 <groupId>org.eclipse.jetty</groupId>
130                 <artifactId>jetty-servlet</artifactId>
131               </exclusion>
132               <exclusion>
133                 <groupId>org.eclipse.jetty</groupId>
134                 <artifactId>jetty-util</artifactId>
135               </exclusion>
136               <exclusion>
137                 <groupId>org.eclipse.jetty</groupId>
138                 <artifactId>jetty-util-ajax</artifactId>
139               </exclusion>
140               <exclusion>
141                 <groupId>org.glassfish</groupId>
142                 <artifactId>javax.el</artifactId>
143               </exclusion>
144               <exclusion>
145                 <groupId>org.eclipse.jetty</groupId>
146                 <artifactId>jetty-webapp</artifactId>
147               </exclusion>
148               <exclusion>
149                 <groupId>org.glassfish.jersey.core</groupId>
150                 <artifactId>jersey-server</artifactId>
151               </exclusion>
152               <exclusion>
153                 <groupId>org.glassfish.jersey.containers</groupId>
154                 <artifactId>jersey-container-servlet-core</artifactId>
155               </exclusion>
156               <!-- We excluded the server-side generated classes for JSP, so exclude
157                    their runtime support libraries too
158                 -->
159               <exclusion>
160                 <groupId>org.glassfish.web</groupId>
161                 <artifactId>javax.servlet.jsp</artifactId>
162               </exclusion>
163               <exclusion>
164                 <groupId>javax.servlet.jsp</groupId>
165                 <artifactId>javax.servlet.jsp-api</artifactId>
166               </exclusion>
167             </exclusions>
168         </dependency>
169     </dependencies>
171     <profiles>
172         <!-- These hadoop profiles should be derived from those in the hbase-mapreduce
173              module. Essentially, you must list the same hadoop-* dependencies
174              since provided dependencies are not transitively included.
175         -->
176         <!-- profile against Hadoop 2.x: This is the default. -->
177         <profile>
178           <id>hadoop-2.0</id>
179           <activation>
180             <property>
181                 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
182                 <!--h2--><name>!hadoop.profile</name>
183             </property>
184           </activation>
185           <dependencies>
186             <dependency>
187               <groupId>org.apache.hadoop</groupId>
188               <artifactId>hadoop-common</artifactId>
189               <scope>provided</scope>
190               <exclusions>
191                 <exclusion>
192                   <groupId>net.java.dev.jets3t</groupId>
193                   <artifactId>jets3t</artifactId>
194                 </exclusion>
195                 <exclusion>
196                   <groupId>javax.servlet.jsp</groupId>
197                   <artifactId>jsp-api</artifactId>
198                 </exclusion>
199                 <exclusion>
200                   <groupId>org.mortbay.jetty</groupId>
201                   <artifactId>jetty</artifactId>
202                 </exclusion>
203                 <exclusion>
204                   <groupId>com.sun.jersey</groupId>
205                   <artifactId>jersey-server</artifactId>
206                 </exclusion>
207                 <exclusion>
208                   <groupId>com.sun.jersey</groupId>
209                   <artifactId>jersey-core</artifactId>
210                 </exclusion>
211                 <exclusion>
212                   <groupId>com.sun.jersey</groupId>
213                   <artifactId>jersey-json</artifactId>
214                 </exclusion>
215                 <exclusion>
216                   <groupId>javax.servlet</groupId>
217                   <artifactId>servlet-api</artifactId>
218                 </exclusion>
219                 <exclusion>
220                   <groupId>tomcat</groupId>
221                   <artifactId>jasper-compiler</artifactId>
222                 </exclusion>
223                 <exclusion>
224                   <groupId>tomcat</groupId>
225                   <artifactId>jasper-runtime</artifactId>
226                 </exclusion>
227                 <exclusion>
228                   <groupId>com.google.code.findbugs</groupId>
229                   <artifactId>jsr305</artifactId>
230                 </exclusion>
231               </exclusions>
232             </dependency>
233             <dependency>
234               <groupId>org.apache.hadoop</groupId>
235               <artifactId>hadoop-hdfs</artifactId>
236               <scope>provided</scope>
237               <exclusions>
238                 <exclusion>
239                   <groupId>javax.servlet.jsp</groupId>
240                   <artifactId>jsp-api</artifactId>
241                 </exclusion>
242                 <exclusion>
243                   <groupId>javax.servlet</groupId>
244                   <artifactId>servlet-api</artifactId>
245                 </exclusion>
246                 <exclusion>
247                   <groupId>io.netty</groupId>
248                   <artifactId>netty</artifactId>
249                 </exclusion>
250                 <exclusion>
251                   <groupId>stax</groupId>
252                   <artifactId>stax-api</artifactId>
253                 </exclusion>
254                 <exclusion>
255                   <groupId>xerces</groupId>
256                   <artifactId>xercesImpl</artifactId>
257                 </exclusion>
258               </exclusions>
259               <version>${hadoop-two.version}</version>
260             </dependency>
261             <dependency>
262               <groupId>org.apache.hadoop</groupId>
263               <artifactId>hadoop-mapreduce-client-core</artifactId>
264               <scope>provided</scope>
265               <exclusions>
266                 <exclusion>
267                   <groupId>com.google.guava</groupId>
268                   <artifactId>guava</artifactId>
269                 </exclusion>
270               </exclusions>
271             </dependency>
272             <dependency>
273               <groupId>org.codehaus.jackson</groupId>
274               <artifactId>jackson-jaxrs</artifactId>
275               <version>1.9.13</version>
276               <scope>provided</scope>
277               <exclusions>
278                 <exclusion>
279                   <groupId>org.codehaus.jackson</groupId>
280                   <artifactId>jackson-mapper-asl</artifactId>
281                 </exclusion>
282                 <exclusion>
283                   <groupId>org.codehaus.jackson</groupId>
284                   <artifactId>jackson-core-asl</artifactId>
285                 </exclusion>
286               </exclusions>
287             </dependency>
288             <dependency>
289               <groupId>org.codehaus.jackson</groupId>
290               <artifactId>jackson-xc</artifactId>
291               <version>1.9.13</version>
292               <scope>provided</scope>
293               <exclusions>
294                 <exclusion>
295                   <groupId>org.codehaus.jackson</groupId>
296                   <artifactId>jackson-mapper-asl</artifactId>
297                 </exclusion>
298                 <exclusion>
299                   <groupId>org.codehaus.jackson</groupId>
300                   <artifactId>jackson-core-asl</artifactId>
301                 </exclusion>
302               </exclusions>
303             </dependency>
304             <dependency>
305               <groupId>org.apache.hadoop</groupId>
306               <artifactId>hadoop-auth</artifactId>
307               <scope>provided</scope>
308             </dependency>
309           </dependencies>
310         </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>${hadoop-three.version}</hadoop.version>
326           </properties>
327           <dependencies>
328             <dependency>
329               <groupId>org.apache.hadoop</groupId>
330               <artifactId>hadoop-common</artifactId>
331               <scope>provided</scope>
332             </dependency>
333             <dependency>
334               <groupId>org.apache.hadoop</groupId>
335               <artifactId>hadoop-hdfs</artifactId>
336               <scope>provided</scope>
337             </dependency>
338             <dependency>
339               <groupId>org.apache.hadoop</groupId>
340               <artifactId>hadoop-auth</artifactId>
341               <scope>provided</scope>
342             </dependency>
343             <dependency>
344               <groupId>org.apache.hadoop</groupId>
345               <artifactId>hadoop-mapreduce-client-core</artifactId>
346               <scope>provided</scope>
347               <exclusions>
348                 <exclusion>
349                   <groupId>com.google.guava</groupId>
350                   <artifactId>guava</artifactId>
351                 </exclusion>
352                 <exclusion>
353                   <groupId>javax.xml.bind</groupId>
354                   <artifactId>jaxb-api</artifactId>
355                 </exclusion>
356                 <exclusion>
357                   <groupId>javax.ws.rs</groupId>
358                   <artifactId>jsr311-api</artifactId>
359                 </exclusion>
360               </exclusions>
361             </dependency>
362             <dependency>
363               <groupId>org.codehaus.jackson</groupId>
364               <artifactId>jackson-jaxrs</artifactId>
365               <version>1.9.13</version>
366               <scope>provided</scope>
367               <exclusions>
368                 <exclusion>
369                   <groupId>org.codehaus.jackson</groupId>
370                   <artifactId>jackson-mapper-asl</artifactId>
371                 </exclusion>
372                 <exclusion>
373                   <groupId>org.codehaus.jackson</groupId>
374                   <artifactId>jackson-core-asl</artifactId>
375                 </exclusion>
376               </exclusions>
377             </dependency>
378             <dependency>
379               <groupId>org.codehaus.jackson</groupId>
380               <artifactId>jackson-xc</artifactId>
381               <version>1.9.13</version>
382               <scope>provided</scope>
383               <exclusions>
384                 <exclusion>
385                   <groupId>org.codehaus.jackson</groupId>
386                   <artifactId>jackson-mapper-asl</artifactId>
387                 </exclusion>
388                 <exclusion>
389                   <groupId>org.codehaus.jackson</groupId>
390                   <artifactId>jackson-core-asl</artifactId>
391                 </exclusion>
392               </exclusions>
393             </dependency>
394           </dependencies>
395         </profile>
396     </profiles>
397 </project>