Revert "SE-22006 Fix branch-2.1 findbugs warning; causes nightly show as failed."
[hbase.git] / hbase-shaded / hbase-shaded-mapreduce / pom.xml
blobe269aac172606d01697fc66f97b1db9ff702bec5
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">
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.apache.hadoop</groupId>
270               <artifactId>hadoop-auth</artifactId>
271               <scope>provided</scope>
272             </dependency>
273           </dependencies>
274         </profile>
276         <!--
277           profile for building against Hadoop 3.0.x. Activate using:
278            mvn -Dhadoop.profile=3.0
279         -->
280         <profile>
281           <id>hadoop-3.0</id>
282           <activation>
283             <property>
284               <name>hadoop.profile</name>
285               <value>3.0</value>
286             </property>
287           </activation>
288           <properties>
289             <hadoop.version>${hadoop-three.version}</hadoop.version>
290           </properties>
291           <dependencies>
292             <dependency>
293               <groupId>org.apache.hadoop</groupId>
294               <artifactId>hadoop-common</artifactId>
295               <scope>provided</scope>
296             </dependency>
297             <dependency>
298               <groupId>org.apache.hadoop</groupId>
299               <artifactId>hadoop-hdfs</artifactId>
300               <scope>provided</scope>
301             </dependency>
302             <dependency>
303               <groupId>org.apache.hadoop</groupId>
304               <artifactId>hadoop-auth</artifactId>
305               <scope>provided</scope>
306             </dependency>
307           </dependencies>
308         </profile>
309     </profiles>
310 </project>