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">
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 <modelVersion>4.0.0</modelVersion>
24 <artifactId>hbase-build-configuration</artifactId>
25 <groupId>org.apache.hbase</groupId>
26 <version>3.0.0-SNAPSHOT</version>
27 <relativePath>../hbase-build-configuration</relativePath>
29 <artifactId>hbase-assembly</artifactId>
30 <name>Apache HBase - Assembly</name>
32 Module that does project assembly and that is all that it does.
34 <packaging>pom</packaging>
36 <license.bundles.dependencies>true</license.bundles.dependencies>
41 <groupId>org.apache.maven.plugins</groupId>
42 <artifactId>maven-enforcer-plugin</artifactId>
44 <!-- hbase-spark is ok in the assembly -->
46 <id>banned-hbase-spark</id>
56 <!-- licensing info from our dependencies -->
58 <groupId>org.apache.maven.plugins</groupId>
59 <artifactId>maven-remote-resources-plugin</artifactId>
62 <id>aggregate-licenses</id>
68 <copyright-end-year>${build.year}</copyright-end-year>
69 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
70 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
71 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
72 <bundled-logo>${license.bundles.logo}</bundled-logo>
73 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
76 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
78 <supplementalModelArtifacts>
79 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
80 </supplementalModelArtifacts>
82 <supplementalModel>supplemental-models.xml</supplementalModel>
89 <artifactId>maven-assembly-plugin</artifactId>
91 <!--Else will use hbase-assembly as final name.-->
92 <finalName>hbase-${project.version}</finalName>
93 <skipAssembly>false</skipAssembly>
94 <appendAssemblyId>true</appendAssemblyId>
95 <tarLongFileMode>gnu</tarLongFileMode>
97 <descriptor>${assembly.file}</descriptor>
102 <artifactId>maven-dependency-plugin</artifactId>
105 <!-- generates the file that will be used by the bin/hbase script in the dev env -->
106 <id>create-hbase-generated-classpath</id>
109 <goal>build-classpath</goal>
112 <outputFile>${project.parent.basedir}/target/cached_classpath.txt</outputFile>
113 <excludeArtifactIds>jline,jruby-complete</excludeArtifactIds>
118 <!-- generates the file that will be used by the bin/hbase zkcli script in the dev env -->
119 <id>create-hbase-generated-classpath-jline</id>
122 <goal>build-classpath</goal>
125 <outputFile>${project.parent.basedir}/target/cached_classpath_jline.txt</outputFile>
126 <includeArtifactIds>jline</includeArtifactIds>
131 <!-- generates the file that will be used by the bin/hbase shell script in the dev env -->
132 <id>create-hbase-generated-classpath-jruby</id>
135 <goal>build-classpath</goal>
138 <outputFile>${project.parent.basedir}/target/cached_classpath_jruby.txt</outputFile>
139 <includeArtifactIds>jruby-complete</includeArtifactIds>
144 Build an aggregation of our templated NOTICE file and the NOTICE files in our dependencies.
145 If MASSEMBLY-382 is fixed we could do this in the assembly
146 Currently relies on env, bash, find, and cat.
149 <!-- put all of the NOTICE files out of our dependencies -->
150 <id>unpack-dependency-notices</id>
151 <phase>prepare-package</phase>
153 <goal>unpack-dependencies</goal>
156 <useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
157 <includes>**\/NOTICE,**\/NOTICE.txt</includes>
163 <groupId>org.codehaus.mojo</groupId>
164 <artifactId>exec-maven-plugin</artifactId>
165 <version>${exec.maven.version}</version>
168 <id>concat-NOTICE-files</id>
169 <phase>package</phase>
174 <executable>env</executable>
176 <argument>bash</argument>
177 <argument>-c</argument>
178 <argument>cat maven-shared-archive-resources/META-INF/NOTICE \
179 `find ${project.build.directory}/dependency -iname NOTICE -or -iname NOTICE.txt`
182 <outputFile>${project.build.directory}/NOTICE.aggregate</outputFile>
183 <workingDirectory>${project.build.directory}</workingDirectory>
188 <!-- /end building aggregation of NOTICE files -->
192 <!-- Intra-project dependencies -->
194 <groupId>org.apache.hbase</groupId>
195 <artifactId>hbase-it</artifactId>
196 <type>test-jar</type>
199 <groupId>org.apache.hbase</groupId>
200 <artifactId>hbase-server</artifactId>
203 <groupId>org.apache.hbase</groupId>
204 <artifactId>hbase-mapreduce</artifactId>
207 <groupId>org.apache.hbase</groupId>
208 <artifactId>hbase-mapreduce</artifactId>
209 <type>test-jar</type>
211 <!-- To dump tools in hbase-procedure into cached_classpath.txt. -->
213 <groupId>org.apache.hbase</groupId>
214 <artifactId>hbase-procedure</artifactId>
217 <groupId>org.apache.hbase</groupId>
218 <artifactId>hbase-procedure</artifactId>
219 <type>test-jar</type>
223 <groupId>org.apache.hbase</groupId>
224 <artifactId>hbase-hadoop-compat</artifactId>
227 <groupId>com.google.guava</groupId>
228 <artifactId>guava</artifactId>
233 <groupId>org.apache.hbase</groupId>
234 <artifactId>${compat.module}</artifactId>
237 <groupId>org.apache.hbase</groupId>
238 <artifactId>hbase-shell</artifactId>
241 <groupId>org.apache.hbase</groupId>
242 <artifactId>hbase-thrift</artifactId>
245 <groupId>org.apache.hbase</groupId>
246 <artifactId>hbase-rest</artifactId>
249 <groupId>org.apache.hbase</groupId>
250 <artifactId>hbase-external-blockcache</artifactId>
253 <groupId>org.apache.hbase</groupId>
254 <artifactId>hbase-testing-util</artifactId>
257 <groupId>org.apache.hbase</groupId>
258 <artifactId>hbase-metrics-api</artifactId>
261 <groupId>org.apache.hbase</groupId>
262 <artifactId>hbase-metrics</artifactId>
265 <groupId>org.apache.hbase</groupId>
266 <artifactId>hbase-protocol</artifactId>
269 <groupId>org.apache.hbase</groupId>
270 <artifactId>hbase-protocol-shaded</artifactId>
273 <groupId>org.apache.hbase</groupId>
274 <artifactId>hbase-resource-bundle</artifactId>
275 <optional>true</optional>
278 <groupId>org.apache.hbase</groupId>
279 <artifactId>hbase-spark</artifactId>
282 <groupId>org.apache.httpcomponents</groupId>
283 <artifactId>httpclient</artifactId>
286 <groupId>org.apache.httpcomponents</groupId>
287 <artifactId>httpcore</artifactId>
290 <groupId>org.apache.hbase</groupId>
291 <artifactId>hbase-spark-it</artifactId>
292 <type>test-jar</type>
295 <groupId>org.apache.hbase</groupId>
296 <artifactId>hbase-backup</artifactId>
299 <groupId>org.apache.hbase</groupId>
300 <artifactId>hbase-replication</artifactId>
303 <groupId>org.apache.hbase</groupId>
304 <artifactId>hbase-http</artifactId>
307 <groupId>org.apache.hbase</groupId>
308 <artifactId>hbase-examples</artifactId>
311 <groupId>org.apache.hbase</groupId>
312 <artifactId>hbase-zookeeper</artifactId>
315 <groupId>jline</groupId>
316 <artifactId>jline</artifactId>
324 <name>!skip-rsgroup</name>
329 <groupId>org.apache.hbase</groupId>
330 <artifactId>hbase-rsgroup</artifactId>
331 <version>${project.version}</version>