HBASE-18230 Remove Velocity vars from LICENSE (Addendum)
[hbase.git] / hbase-shaded / pom.xml
blobb2f503f1593cd6868d800e6b41df0965db952155
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>3.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>aggregate-licenses</id>
76                   <goals>
77                     <goal>process</goal>
78                   </goals>
79                   <configuration>
80                     <properties>
81                       <copyright-end-year>${build.year}</copyright-end-year>
82                       <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
83                       <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
84                       <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
85                       <bundled-logo>${license.bundles.logo}</bundled-logo>
86                       <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
87                     </properties>
88                     <resourceBundles>
89                       <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
90                     </resourceBundles>
91                     <supplementalModelArtifacts>
92                       <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
93                     </supplementalModelArtifacts>
94                     <supplementalModels>
95                       <supplementalModel>supplemental-models.xml</supplementalModel>
96                     </supplementalModels>
97                   </configuration>
98                 </execution>
99               </executions>
100             </plugin>
101         </plugins>
102         <pluginManagement>
103             <plugins>
104                 <plugin>
105                     <!--Make it so assembly:single does nothing in here-->
106                     <artifactId>maven-assembly-plugin</artifactId>
107                     <configuration>
108                         <skipAssembly>true</skipAssembly>
109                     </configuration>
110                 </plugin>
111                 <plugin>
112                     <groupId>org.apache.maven.plugins</groupId>
113                     <artifactId>maven-shade-plugin</artifactId>
114                     <executions>
115                         <execution>
116                             <phase>package</phase>
117                             <goals>
118                                 <goal>shade</goal>
119                             </goals>
120                             <configuration>
121                                 <createSourcesJar>false</createSourcesJar>
122                                 <shadedArtifactAttached>false</shadedArtifactAttached>
123                                 <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
124                                 <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
125                                 <shadeTestJar>false</shadeTestJar>
126                                 <artifactSet>
127                                     <excludes>
128                                         <exclude>org.apache.hbase:hbase-resource-bundle</exclude>
129                                         <exclude>org.slf4j:*</exclude>
130                                         <exclude>com.google.code.findbugs:*</exclude>
131                                         <exclude>com.github.stephenc.findbugs:*</exclude>
132                                         <exclude>org.apache.htrace:*</exclude>
133                                         <exclude>log4j:*</exclude>
134                                         <exclude>commons-logging:*</exclude>
135                                     </excludes>
136                                 </artifactSet>
137                                 <relocations>
138                                     <!-- top level com not including sun-->
139                                     <relocation>
140                                         <pattern>com.google</pattern>
141                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.google</shadedPattern>
142                                     </relocation>
143                                     <relocation>
144                                         <pattern>com.jcraft</pattern>
145                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.jcraft</shadedPattern>
146                                     </relocation>
147                                     <relocation>
148                                         <pattern>com.thoughtworks</pattern>
149                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.thoughtworks</shadedPattern>
150                                     </relocation>
151                                     <relocation>
152                                         <pattern>com.jamesmurty</pattern>
153                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.jamesmurty</shadedPattern>
154                                     </relocation>
155                                     <relocation>
156                                         <pattern>com.lmax</pattern>
157                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.lmax</shadedPattern>
158                                     </relocation>
159                                     <relocation>
160                                         <pattern>com.dropwizard</pattern>
161                                         <shadedPattern>org.apache.hadoop.hbase.shaded.com.dropwizard</shadedPattern>
162                                     </relocation>
164                                     <!-- top level io -->
165                                     <relocation>
166                                         <pattern>io.netty</pattern>
167                                         <shadedPattern>org.apache.hadoop.hbase.shaded.io.netty</shadedPattern>
168                                     </relocation>
170                                     <!-- top level org -->
171                                     <relocation>
172                                         <pattern>org.codehaus</pattern>
173                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.codehaus</shadedPattern>
174                                     </relocation>
175                                     <relocation>
176                                         <pattern>org.jcodings</pattern>
177                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.jcodings</shadedPattern>
178                                     </relocation>
179                                     <relocation>
180                                         <pattern>org.joni</pattern>
181                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.joni</shadedPattern>
182                                     </relocation>
183                                     <relocation>
184                                         <pattern>org.mortbay</pattern>
185                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.mortbay</shadedPattern>
186                                     </relocation>
187                                     <relocation>
188                                         <pattern>org.tukaani</pattern>
189                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.tukaani</shadedPattern>
190                                     </relocation>
191                                     <relocation>
192                                         <pattern>org.xerial</pattern>
193                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.xerial</shadedPattern>
194                                     </relocation>
195                                     <relocation>
196                                         <pattern>org.znerd</pattern>
197                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.znerd</shadedPattern>
198                                     </relocation>
199                                     <relocation>
200                                         <pattern>org.aopalliance</pattern>
201                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.aopalliance</shadedPattern>
202                                     </relocation>
203                                     <relocation>
204                                         <pattern>org.fusesource</pattern>
205                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.fusesource</shadedPattern>
206                                     </relocation>
207                                     <relocation>
208                                         <pattern>org.iq80</pattern>
209                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.iq80</shadedPattern>
210                                     </relocation>
211                                     <relocation>
212                                         <pattern>org.jamon</pattern>
213                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.jamon</shadedPattern>
214                                     </relocation>
215                                     <relocation>
216                                         <pattern>org.jets3t</pattern>
217                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.jets3t</shadedPattern>
218                                     </relocation>
219                                     <relocation>
220                                         <pattern>org.objectweb</pattern>
221                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.objectweb</shadedPattern>
222                                     </relocation>
225                                     <!-- org.apache relocations not in org.apache.hadoop or org.apache.commons -->
226                                     <relocation>
227                                         <pattern>org.apache.avro</pattern>
228                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.avro</shadedPattern>
229                                     </relocation>
230                                     <relocation>
231                                         <pattern>org.apache.directory</pattern>
232                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.directory</shadedPattern>
233                                     </relocation>
234                                     <relocation>
235                                         <pattern>org.apache.http</pattern>
236                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.http</shadedPattern>
237                                     </relocation>
238                                     <relocation>
239                                         <pattern>org.apache.jute</pattern>
240                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.jute</shadedPattern>
241                                     </relocation>
242                                     <relocation>
243                                         <pattern>org.apache.zookeeper</pattern>
244                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.zookeeper</shadedPattern>
245                                     </relocation>
246                                     <relocation>
247                                         <pattern>org.apache.jasper</pattern>
248                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.jasper</shadedPattern>
249                                     </relocation>
250                                     <relocation>
251                                         <pattern>org.apache.taglibs</pattern>
252                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons</shadedPattern>
253                                     </relocation>
255                                     <!-- org.apache.commons not including logging -->
256                                     <relocation>
257                                         <pattern>org.apache.commons.beanutils</pattern>
258                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.beanutils</shadedPattern>
259                                     </relocation>
260                                     <relocation>
261                                         <pattern>org.apache.commons.cli</pattern>
262                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.cli</shadedPattern>
263                                     </relocation>
264                                     <relocation>
265                                         <pattern>org.apache.commons.collections</pattern>
266                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.collections</shadedPattern>
267                                     </relocation>
268                                     <relocation>
269                                         <pattern>org.apache.commons.configuration</pattern>
270                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.configuration</shadedPattern>
271                                     </relocation>
272                                     <relocation>
273                                         <pattern>org.apache.commons.daemon</pattern>
274                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.daemon</shadedPattern>
275                                     </relocation>
276                                     <relocation>
277                                         <pattern>org.apache.commons.io</pattern>
278                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.io</shadedPattern>
279                                     </relocation>
280                                     <relocation>
281                                         <pattern>org.apache.commons.math</pattern>
282                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.math</shadedPattern>
283                                     </relocation>
284                                     <relocation>
285                                         <pattern>org.apache.commons.math3</pattern>
286                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.math3</shadedPattern>
287                                     </relocation>
288                                     <relocation>
289                                         <pattern>org.apache.commons.net</pattern>
290                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.net</shadedPattern>
291                                     </relocation>
292                                     <relocation>
293                                         <pattern>org.apache.commons.lang</pattern>
294                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.lang</shadedPattern>
295                                     </relocation>
296                                     <relocation>
297                                         <pattern>org.apache.commons.el</pattern>
298                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.el</shadedPattern>
299                                     </relocation>
300                                     <relocation>
301                                         <pattern>org.apache.commons.httpclient</pattern>
302                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.httpclient</shadedPattern>
303                                     </relocation>
304                                     <relocation>
305                                         <pattern>org.apache.commons.compress</pattern>
306                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.compress</shadedPattern>
307                                     </relocation>
308                                     <relocation>
309                                         <pattern>org.apache.commons.digester</pattern>
310                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.digester</shadedPattern>
311                                     </relocation>
312                                     <relocation>
313                                         <pattern>org.apache.commons.codec</pattern>
314                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.codec</shadedPattern>
315                                     </relocation>
317                                     <!-- top level net-->
318                                     <relocation>
319                                         <pattern>net.iharder</pattern>
320                                         <shadedPattern>org.apache.hadoop.hbase.shaded.net.iharder</shadedPattern>
321                                     </relocation>
323                                     <!-- junit -->
324                                     <relocation>
325                                         <pattern>junit</pattern>
326                                         <shadedPattern>org.apache.hadoop.hbase.shaded.junit</shadedPattern>
327                                     </relocation>
328                                     <relocation>
329                                         <pattern>org.junit</pattern>
330                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.junit</shadedPattern>
331                                     </relocation>
334                                 </relocations>
335                                 <transformers>
336                                   <!-- Need to filter out some extraneous license files.
337                                        Don't use the ApacheLicenseRT because it just removes all
338                                        META-INF/LICENSE(.txt)? files, including ours. -->
339                                   <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
340                                     <resources>
341                                       <resource>LICENSE.txt</resource>
342                                       <resource>ASL2.0</resource>
343                                     </resources>
344                                   </transformer>
345                                   <!-- Where notices exist, just concat them -->
346                                   <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
347                                     <addHeader>false</addHeader>
348                                     <projectName>${project.name}</projectName>
349                                   </transformer>
350                                 </transformers>
351                             </configuration>
352                         </execution>
353                     </executions>
354                 </plugin>
355             </plugins>
356         </pluginManagement>
357     </build>
358 </project>