Add jingchengdu to pom.xml
[hbase.git] / hbase-shaded / pom.xml
blob10edf428d950be78ea6024ab06ec11310f677a3f
1 <?xml version="1.0"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <!--
4       /**
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
12        *
13        *     http://www.apache.org/licenses/LICENSE-2.0
14        *
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.
20        */
21       -->
22     <modelVersion>4.0.0</modelVersion>
23     <parent>
24         <artifactId>hbase</artifactId>
25         <groupId>org.apache.hbase</groupId>
26         <version>2.0.0-SNAPSHOT</version>
27         <relativePath>..</relativePath>
28     </parent>
29     <artifactId>hbase-shaded</artifactId>
30     <name>Apache HBase - Shaded</name>
31     <description>Module of HBase with most deps shaded.</description>
32     <packaging>pom</packaging>
33     <properties>
34       <!-- Don't make a test-jar -->
35       <maven.test.skip>true</maven.test.skip>
36       <!-- Don't make a source-jar -->
37       <source.skip>true</source.skip>
38       <license.bundles.dependencies>true</license.bundles.dependencies>
39     </properties>
40     <modules>
41         <module>hbase-shaded-client</module>
42         <module>hbase-shaded-server</module>
43     </modules>
44     <dependencies>
45       <dependency>
46          <groupId>org.apache.hbase</groupId>
47          <artifactId>hbase-resource-bundle</artifactId>
48          <version>${project.version}</version>
49          <optional>true</optional>
50       </dependency>
51     </dependencies>
52     <build>
53         <plugins>
54             <plugin>
55                 <groupId>org.apache.maven.plugins</groupId>
56                 <artifactId>maven-site-plugin</artifactId>
57                 <configuration>
58                     <skip>true</skip>
59                 </configuration>
60             </plugin>
61             <plugin>
62                 <!--Make it so assembly:single does nothing in here-->
63                 <artifactId>maven-assembly-plugin</artifactId>
64                 <configuration>
65                     <skipAssembly>true</skipAssembly>
66                 </configuration>
67             </plugin>
68             <!-- licensing info from our dependencies -->
69             <plugin>
70               <groupId>org.apache.maven.plugins</groupId>
71               <artifactId>maven-remote-resources-plugin</artifactId>
72               <version>1.5</version>
73               <executions>
74                 <execution>
75                   <id>default</id>
76                   <configuration>
77                     <properties>
78                       <copyright-end-year>${build.year}</copyright-end-year>
79                       <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
80                       <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
81                       <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
82                       <bundled-logo>${license.bundles.logo}</bundled-logo>
83                       <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
84                     </properties>
85                     <resourceBundles>
86                       <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
87                     </resourceBundles>
88                     <supplementalModelArtifacts>
89                       <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
90                     </supplementalModelArtifacts>
91                     <supplementalModels>
92                       <supplementalModel>supplemental-models.xml</supplementalModel>
93                     </supplementalModels>
94                   </configuration>
95                 </execution>
96               </executions>
97             </plugin>
98         </plugins>
99         <pluginManagement>
100             <plugins>
101                 <plugin>
102                     <!--Make it so assembly:single does nothing in here-->
103                     <artifactId>maven-assembly-plugin</artifactId>
104                     <configuration>
105                         <skipAssembly>true</skipAssembly>
106                     </configuration>
107                 </plugin>
108                 <plugin>
109                     <groupId>org.apache.maven.plugins</groupId>
110                     <artifactId>maven-shade-plugin</artifactId>
111                     <executions>
112                         <execution>
113                             <phase>package</phase>
114                             <goals>
115                                 <goal>shade</goal>
116                             </goals>
117                             <configuration>
118                                 <createSourcesJar>false</createSourcesJar>
119                                 <shadedArtifactAttached>false</shadedArtifactAttached>
120                                 <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
121                                 <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
122                                 <shadeTestJar>false</shadeTestJar>
123                                 <artifactSet>
124                                     <excludes>
125                                         <exclude>org.apache.hbase:hbase-resource-bundle</exclude>
126                                         <exclude>org.slf4j:*</exclude>
127                                         <exclude>com.google.code.findbugs:*</exclude>
128                                         <exclude>com.github.stephenc.findbugs:*</exclude>
129                                         <exclude>org.apache.htrace:*</exclude>
130                                         <exclude>log4j:*</exclude>
131                                         <exclude>commons-logging:*</exclude>
132                                     </excludes>
133                                 </artifactSet>
134                                 <relocations>
135                                     <!-- top level com not including sun-->
136                                     <relocation>
137                                         <pattern>com.google</pattern>
138                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.google</shadedPattern>
139                                     </relocation>
140                                     <relocation>
141                                         <pattern>com.jcraft</pattern>
142                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.jcraft</shadedPattern>
143                                     </relocation>
144                                     <relocation>
145                                         <pattern>com.thoughtworks</pattern>
146                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.thoughtworks</shadedPattern>
147                                     </relocation>
148                                     <relocation>
149                                         <pattern>com.jamesmurty</pattern>
150                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.jamesmurty</shadedPattern>
151                                     </relocation>
152                                     <relocation>
153                                         <pattern>com.lmax</pattern>
154                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.lmax</shadedPattern>
155                                     </relocation>
156                                     <relocation>
157                                         <pattern>com.dropwizard</pattern>
158                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.dropwizard</shadedPattern>
159                                     </relocation>
161                                     <!-- top level io -->
162                                     <relocation>
163                                         <pattern>io.netty</pattern>
164                                         <shadedPattern>org.apache.hadoop.hbase.shaded.io.netty</shadedPattern>
165                                     </relocation>
167                                     <!-- top level org -->
168                                     <relocation>
169                                         <pattern>org.codehaus</pattern>
170                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.codehaus</shadedPattern>
171                                     </relocation>
172                                     <relocation>
173                                         <pattern>org.jcodings</pattern>
174                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.jcodings</shadedPattern>
175                                     </relocation>
176                                     <relocation>
177                                         <pattern>org.joni</pattern>
178                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.joni</shadedPattern>
179                                     </relocation>
180                                     <relocation>
181                                         <pattern>org.mortbay</pattern>
182                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.mortbay</shadedPattern>
183                                     </relocation>
184                                     <relocation>
185                                         <pattern>org.tukaani</pattern>
186                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.tukaani</shadedPattern>
187                                     </relocation>
188                                     <relocation>
189                                         <pattern>org.xerial</pattern>
190                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.xerial</shadedPattern>
191                                     </relocation>
192                                     <relocation>
193                                         <pattern>org.znerd</pattern>
194                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.znerd</shadedPattern>
195                                     </relocation>
196                                     <relocation>
197                                         <pattern>org.aopalliance</pattern>
198                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.aopalliance</shadedPattern>
199                                     </relocation>
200                                     <relocation>
201                                         <pattern>org.fusesource</pattern>
202                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.fusesource</shadedPattern>
203                                     </relocation>
204                                     <relocation>
205                                         <pattern>org.iq80</pattern>
206                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.iq80</shadedPattern>
207                                     </relocation>
208                                     <relocation>
209                                         <pattern>org.jamon</pattern>
210                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.jamon</shadedPattern>
211                                     </relocation>
212                                     <relocation>
213                                         <pattern>org.jets3t</pattern>
214                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.jets3t</shadedPattern>
215                                     </relocation>
216                                     <relocation>
217                                         <pattern>org.objectweb</pattern>
218                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.objectweb</shadedPattern>
219                                     </relocation>
222                                     <!-- org.apache relocations not in org.apache.hadoop or org.apache.commons -->
223                                     <relocation>
224                                         <pattern>org.apache.avro</pattern>
225                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.avro</shadedPattern>
226                                     </relocation>
227                                     <relocation>
228                                         <pattern>org.apache.directory</pattern>
229                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.directory</shadedPattern>
230                                     </relocation>
231                                     <relocation>
232                                         <pattern>org.apache.http</pattern>
233                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.http</shadedPattern>
234                                     </relocation>
235                                     <relocation>
236                                         <pattern>org.apache.jute</pattern>
237                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.jute</shadedPattern>
238                                     </relocation>
239                                     <relocation>
240                                         <pattern>org.apache.zookeeper</pattern>
241                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.zookeeper</shadedPattern>
242                                     </relocation>
243                                     <relocation>
244                                         <pattern>org.apache.jasper</pattern>
245                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.jasper</shadedPattern>
246                                     </relocation>
247                                     <relocation>
248                                         <pattern>org.apache.taglibs</pattern>
249                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons</shadedPattern>
250                                     </relocation>
252                                     <!-- org.apache.commons not including logging -->
253                                     <relocation>
254                                         <pattern>org.apache.commons.beanutils</pattern>
255                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.beanutils</shadedPattern>
256                                     </relocation>
257                                     <relocation>
258                                         <pattern>org.apache.commons.cli</pattern>
259                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.cli</shadedPattern>
260                                     </relocation>
261                                     <relocation>
262                                         <pattern>org.apache.commons.collections</pattern>
263                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.collections</shadedPattern>
264                                     </relocation>
265                                     <relocation>
266                                         <pattern>org.apache.commons.configuration</pattern>
267                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.configuration</shadedPattern>
268                                     </relocation>
269                                     <relocation>
270                                         <pattern>org.apache.commons.daemon</pattern>
271                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.daemon</shadedPattern>
272                                     </relocation>
273                                     <relocation>
274                                         <pattern>org.apache.commons.io</pattern>
275                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.io</shadedPattern>
276                                     </relocation>
277                                     <relocation>
278                                         <pattern>org.apache.commons.math</pattern>
279                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.math</shadedPattern>
280                                     </relocation>
281                                     <relocation>
282                                         <pattern>org.apache.commons.math3</pattern>
283                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.math3</shadedPattern>
284                                     </relocation>
285                                     <relocation>
286                                         <pattern>org.apache.commons.net</pattern>
287                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.net</shadedPattern>
288                                     </relocation>
289                                     <relocation>
290                                         <pattern>org.apache.commons.lang</pattern>
291                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.lang</shadedPattern>
292                                     </relocation>
293                                     <relocation>
294                                         <pattern>org.apache.commons.el</pattern>
295                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.el</shadedPattern>
296                                     </relocation>
297                                     <relocation>
298                                         <pattern>org.apache.commons.httpclient</pattern>
299                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.httpclient</shadedPattern>
300                                     </relocation>
301                                     <relocation>
302                                         <pattern>org.apache.commons.compress</pattern>
303                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.compress</shadedPattern>
304                                     </relocation>
305                                     <relocation>
306                                         <pattern>org.apache.commons.digester</pattern>
307                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.digester</shadedPattern>
308                                     </relocation>
309                                     <relocation>
310                                         <pattern>org.apache.commons.codec</pattern>
311                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.codec</shadedPattern>
312                                     </relocation>
314                                     <!-- top level net-->
315                                     <relocation>
316                                         <pattern>net.iharder</pattern>
317                                         <shadedPattern>org.apache.hadoop.hbase.shaded.net.iharder</shadedPattern>
318                                     </relocation>
320                                     <!-- junit -->
321                                     <relocation>
322                                         <pattern>junit</pattern>
323                                         <shadedPattern>org.apache.hadoop.hbase.shaded.junit</shadedPattern>
324                                     </relocation>
325                                     <relocation>
326                                         <pattern>org.junit</pattern>
327                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.junit</shadedPattern>
328                                     </relocation>
331                                 </relocations>
332                                 <transformers>
333                                   <!-- Need to filter out some extraneous license files.
334                                        Don't use the ApacheLicenseRT because it just removes all
335                                        META-INF/LICENSE(.txt)? files, including ours. -->
336                                   <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
337                                     <resources>
338                                       <resource>LICENSE.txt</resource>
339                                       <resource>ASL2.0</resource>
340                                     </resources>
341                                   </transformer>
342                                   <!-- Where notices exist, just concat them -->
343                                   <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
344                                     <addHeader>false</addHeader>
345                                     <projectName>${project.name}</projectName>
346                                   </transformer>
347                                 </transformers>
348                             </configuration>
349                         </execution>
350                     </executions>
351                 </plugin>
352             </plugins>
353         </pluginManagement>
354     </build>
355 </project>