HBASE-22955 Properly set jdk7 as JAVA_HOME for branches-1 precommit and nightly....
[hbase.git] / hbase-shaded / hbase-shaded-mapreduce / pom.xml
blobfdd389a1fb3458818af4f074c57c62bef129ecb2
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>3.0.0-SNAPSHOT</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               <!-- Jersey not used by our MR support -->
83               <exclusion>
84                 <groupId>javax.ws.rs</groupId>
85                 <artifactId>javax.ws.rs-api</artifactId>
86               </exclusion>
87               <exclusion>
88                 <groupId>com.sun.jersey</groupId>
89                 <artifactId>jersey-server</artifactId>
90               </exclusion>
91               <exclusion>
92                 <groupId>com.sun.jersey</groupId>
93                 <artifactId>jersey-client</artifactId>
94               </exclusion>
95               <exclusion>
96                 <groupId>com.sun.jersey</groupId>
97                 <artifactId>jersey-core</artifactId>
98               </exclusion>
99               <exclusion>
100                 <groupId>com.sun.jersey</groupId>
101                 <artifactId>jersey-json</artifactId>
102               </exclusion>
103               <exclusion>
104                 <groupId>com.sun.jersey.contribs</groupId>
105                 <artifactId>jersey-guice</artifactId>
106               </exclusion>
107               <!-- Jetty not used by our MR support -->
108               <exclusion>
109                 <groupId>javax.servlet</groupId>
110                 <artifactId>javax.servlet-api</artifactId>
111               </exclusion>
112               <exclusion>
113                 <groupId>org.eclipse.jetty</groupId>
114                 <artifactId>jetty-http</artifactId>
115               </exclusion>
116               <exclusion>
117                 <groupId>org.eclipse.jetty</groupId>
118                 <artifactId>jetty-security</artifactId>
119               </exclusion>
120               <exclusion>
121                 <groupId>org.eclipse.jetty</groupId>
122                 <artifactId>jetty-server</artifactId>
123               </exclusion>
124               <exclusion>
125                 <groupId>org.eclipse.jetty</groupId>
126                 <artifactId>jetty-servlet</artifactId>
127               </exclusion>
128               <exclusion>
129                 <groupId>org.eclipse.jetty</groupId>
130                 <artifactId>jetty-util</artifactId>
131               </exclusion>
132               <exclusion>
133                 <groupId>org.eclipse.jetty</groupId>
134                 <artifactId>jetty-util-ajax</artifactId>
135               </exclusion>
136               <exclusion>
137                 <groupId>org.glassfish</groupId>
138                 <artifactId>javax.el</artifactId>
139               </exclusion>
140               <exclusion>
141                 <groupId>org.eclipse.jetty</groupId>
142                 <artifactId>jetty-webapp</artifactId>
143               </exclusion>
144               <exclusion>
145                 <groupId>org.glassfish.jersey.core</groupId>
146                 <artifactId>jersey-server</artifactId>
147               </exclusion>
148               <exclusion>
149                 <groupId>org.glassfish.jersey.containers</groupId>
150                 <artifactId>jersey-container-servlet-core</artifactId>
151               </exclusion>
152               <!-- We excluded the server-side generated classes for JSP, so exclude
153                    their runtime support libraries too
154                 -->
155               <exclusion>
156                 <groupId>org.glassfish.web</groupId>
157                 <artifactId>javax.servlet.jsp</artifactId>
158               </exclusion>
159               <exclusion>
160                 <groupId>javax.servlet.jsp</groupId>
161                 <artifactId>javax.servlet.jsp-api</artifactId>
162               </exclusion>
163             </exclusions>
164         </dependency>
165     </dependencies>
167     <profiles>
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.
171         -->
172         <!-- profile against Hadoop 2.x: This is the default. -->
173         <profile>
174           <id>hadoop-2.0</id>
175           <activation>
176             <property>
177                 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
178                 <!--h2--><name>!hadoop.profile</name>
179             </property>
180           </activation>
181           <dependencies>
182             <dependency>
183               <groupId>org.apache.hadoop</groupId>
184               <artifactId>hadoop-common</artifactId>
185               <scope>provided</scope>
186               <exclusions>
187                 <exclusion>
188                   <groupId>net.java.dev.jets3t</groupId>
189                   <artifactId>jets3t</artifactId>
190                 </exclusion>
191                 <exclusion>
192                   <groupId>javax.servlet.jsp</groupId>
193                   <artifactId>jsp-api</artifactId>
194                 </exclusion>
195                 <exclusion>
196                   <groupId>org.mortbay.jetty</groupId>
197                   <artifactId>jetty</artifactId>
198                 </exclusion>
199                 <exclusion>
200                   <groupId>com.sun.jersey</groupId>
201                   <artifactId>jersey-server</artifactId>
202                 </exclusion>
203                 <exclusion>
204                   <groupId>com.sun.jersey</groupId>
205                   <artifactId>jersey-core</artifactId>
206                 </exclusion>
207                 <exclusion>
208                   <groupId>com.sun.jersey</groupId>
209                   <artifactId>jersey-json</artifactId>
210                 </exclusion>
211                 <exclusion>
212                   <groupId>javax.servlet</groupId>
213                   <artifactId>servlet-api</artifactId>
214                 </exclusion>
215                 <exclusion>
216                   <groupId>tomcat</groupId>
217                   <artifactId>jasper-compiler</artifactId>
218                 </exclusion>
219                 <exclusion>
220                   <groupId>tomcat</groupId>
221                   <artifactId>jasper-runtime</artifactId>
222                 </exclusion>
223                 <exclusion>
224                   <groupId>com.google.code.findbugs</groupId>
225                   <artifactId>jsr305</artifactId>
226                 </exclusion>
227               </exclusions>
228             </dependency>
229             <dependency>
230               <groupId>org.apache.hadoop</groupId>
231               <artifactId>hadoop-hdfs</artifactId>
232               <scope>provided</scope>
233               <exclusions>
234                 <exclusion>
235                   <groupId>javax.servlet.jsp</groupId>
236                   <artifactId>jsp-api</artifactId>
237                 </exclusion>
238                 <exclusion>
239                   <groupId>javax.servlet</groupId>
240                   <artifactId>servlet-api</artifactId>
241                 </exclusion>
242                 <exclusion>
243                   <groupId>io.netty</groupId>
244                   <artifactId>netty</artifactId>
245                 </exclusion>
246                 <exclusion>
247                   <groupId>stax</groupId>
248                   <artifactId>stax-api</artifactId>
249                 </exclusion>
250                 <exclusion>
251                   <groupId>xerces</groupId>
252                   <artifactId>xercesImpl</artifactId>
253                 </exclusion>
254               </exclusions>
255               <version>${hadoop-two.version}</version>
256             </dependency>
257             <dependency>
258               <groupId>org.apache.hadoop</groupId>
259               <artifactId>hadoop-mapreduce-client-core</artifactId>
260               <scope>provided</scope>
261               <exclusions>
262                 <exclusion>
263                   <groupId>com.google.guava</groupId>
264                   <artifactId>guava</artifactId>
265                 </exclusion>
266               </exclusions>
267             </dependency>
268             <dependency>
269               <groupId>org.codehaus.jackson</groupId>
270               <artifactId>jackson-jaxrs</artifactId>
271               <version>1.9.13</version>
272               <scope>provided</scope>
273               <exclusions>
274                 <exclusion>
275                   <groupId>org.codehaus.jackson</groupId>
276                   <artifactId>jackson-mapper-asl</artifactId>
277                 </exclusion>
278                 <exclusion>
279                   <groupId>org.codehaus.jackson</groupId>
280                   <artifactId>jackson-core-asl</artifactId>
281                 </exclusion>
282               </exclusions>
283             </dependency>
284             <dependency>
285               <groupId>org.codehaus.jackson</groupId>
286               <artifactId>jackson-xc</artifactId>
287               <version>1.9.13</version>
288               <scope>provided</scope>
289               <exclusions>
290                 <exclusion>
291                   <groupId>org.codehaus.jackson</groupId>
292                   <artifactId>jackson-mapper-asl</artifactId>
293                 </exclusion>
294                 <exclusion>
295                   <groupId>org.codehaus.jackson</groupId>
296                   <artifactId>jackson-core-asl</artifactId>
297                 </exclusion>
298               </exclusions>
299             </dependency>
300             <dependency>
301               <groupId>org.apache.hadoop</groupId>
302               <artifactId>hadoop-auth</artifactId>
303               <scope>provided</scope>
304             </dependency>
305           </dependencies>
306         </profile>
308         <!--
309           profile for building against Hadoop 3.0.x. Activate using:
310            mvn -Dhadoop.profile=3.0
311         -->
312         <profile>
313           <id>hadoop-3.0</id>
314           <activation>
315             <property>
316               <name>hadoop.profile</name>
317               <value>3.0</value>
318             </property>
319           </activation>
320           <properties>
321             <hadoop.version>${hadoop-three.version}</hadoop.version>
322           </properties>
323           <dependencies>
324             <dependency>
325               <groupId>org.apache.hadoop</groupId>
326               <artifactId>hadoop-common</artifactId>
327               <scope>provided</scope>
328             </dependency>
329             <dependency>
330               <groupId>org.apache.hadoop</groupId>
331               <artifactId>hadoop-hdfs</artifactId>
332               <scope>provided</scope>
333             </dependency>
334             <dependency>
335               <groupId>org.apache.hadoop</groupId>
336               <artifactId>hadoop-auth</artifactId>
337               <scope>provided</scope>
338             </dependency>
339             <dependency>
340               <groupId>org.apache.hadoop</groupId>
341               <artifactId>hadoop-mapreduce-client-core</artifactId>
342               <scope>provided</scope>
343               <exclusions>
344                 <exclusion>
345                   <groupId>com.google.guava</groupId>
346                   <artifactId>guava</artifactId>
347                 </exclusion>
348               </exclusions>
349             </dependency>
350             <dependency>
351               <groupId>org.codehaus.jackson</groupId>
352               <artifactId>jackson-jaxrs</artifactId>
353               <version>1.9.13</version>
354               <scope>provided</scope>
355               <exclusions>
356                 <exclusion>
357                   <groupId>org.codehaus.jackson</groupId>
358                   <artifactId>jackson-mapper-asl</artifactId>
359                 </exclusion>
360                 <exclusion>
361                   <groupId>org.codehaus.jackson</groupId>
362                   <artifactId>jackson-core-asl</artifactId>
363                 </exclusion>
364               </exclusions>
365             </dependency>
366             <dependency>
367               <groupId>org.codehaus.jackson</groupId>
368               <artifactId>jackson-xc</artifactId>
369               <version>1.9.13</version>
370               <scope>provided</scope>
371               <exclusions>
372                 <exclusion>
373                   <groupId>org.codehaus.jackson</groupId>
374                   <artifactId>jackson-mapper-asl</artifactId>
375                 </exclusion>
376                 <exclusion>
377                   <groupId>org.codehaus.jackson</groupId>
378                   <artifactId>jackson-core-asl</artifactId>
379                 </exclusion>
380               </exclusions>
381             </dependency>
382           </dependencies>
383         </profile>
384     </profiles>
385 </project>