2 <project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://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>
40 <!-- licensing info from our dependencies -->
42 <groupId>org.apache.maven.plugins</groupId>
43 <artifactId>maven-remote-resources-plugin</artifactId>
46 <id>aggregate-licenses</id>
52 <copyright-end-year>${build.year}</copyright-end-year>
53 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
54 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
55 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
56 <bundled-logo>${license.bundles.logo}</bundled-logo>
57 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
60 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
62 <supplementalModelArtifacts>
63 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
64 </supplementalModelArtifacts>
66 <supplementalModel>supplemental-models.xml</supplementalModel>
73 <artifactId>maven-assembly-plugin</artifactId>
75 <!--Else will use hbase-assembly as final name.-->
76 <finalName>hbase-${project.version}</finalName>
77 <skipAssembly>false</skipAssembly>
78 <appendAssemblyId>true</appendAssemblyId>
79 <tarLongFileMode>posix</tarLongFileMode>
81 <descriptor>${assembly.file}</descriptor>
82 <descriptor>src/main/assembly/client.xml</descriptor>
87 <artifactId>maven-dependency-plugin</artifactId>
90 <!-- generates the file that will be used by the bin/hbase script in the dev env -->
91 <id>create-hbase-generated-classpath</id>
94 <goal>build-classpath</goal>
97 <outputFile>${project.parent.basedir}/target/cached_classpath.txt</outputFile>
98 <excludeArtifactIds>jline,jruby-complete,hbase-shaded-client,hbase-shaded-client-byo-hadoop,hbase-shaded-mapreduce</excludeArtifactIds>
103 <!-- generates the file that will be used by the bin/hbase zkcli script in the dev env -->
104 <id>create-hbase-generated-classpath-jline</id>
107 <goal>build-classpath</goal>
110 <outputFile>${project.parent.basedir}/target/cached_classpath_jline.txt</outputFile>
111 <includeArtifactIds>jline</includeArtifactIds>
116 <!-- generates the file that will be used by the bin/hbase shell script in the dev env -->
117 <id>create-hbase-generated-classpath-jruby</id>
120 <goal>build-classpath</goal>
123 <outputFile>${project.parent.basedir}/target/cached_classpath_jruby.txt</outputFile>
124 <includeArtifactIds>jruby-complete</includeArtifactIds>
129 Build an aggregation of our templated NOTICE file and the NOTICE files in our dependencies.
130 If MASSEMBLY-382 is fixed we could do this in the assembly
131 Currently relies on env, bash, find, and cat.
134 <!-- put all of the NOTICE files out of our dependencies -->
135 <id>unpack-dependency-notices</id>
136 <phase>prepare-package</phase>
138 <goal>unpack-dependencies</goal>
141 <excludeTypes>pom</excludeTypes>
142 <useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
143 <includes>**\/NOTICE,**\/NOTICE.txt</includes>
149 <groupId>org.codehaus.mojo</groupId>
150 <artifactId>exec-maven-plugin</artifactId>
151 <version>${exec.maven.version}</version>
154 <id>concat-NOTICE-files</id>
155 <phase>package</phase>
160 <executable>env</executable>
162 <argument>bash</argument>
163 <argument>-c</argument>
164 <argument>cat maven-shared-archive-resources/META-INF/NOTICE \
165 `find ${project.build.directory}/dependency -iname NOTICE -or -iname NOTICE.txt`
168 <outputFile>${project.build.directory}/NOTICE.aggregate</outputFile>
169 <workingDirectory>${project.build.directory}</workingDirectory>
174 <!-- /end building aggregation of NOTICE files -->
178 <!-- client artifacts for downstream use -->
180 <groupId>org.apache.hbase</groupId>
181 <artifactId>hbase-shaded-client</artifactId>
184 <groupId>org.apache.hbase</groupId>
185 <artifactId>hbase-shaded-client-byo-hadoop</artifactId>
188 <groupId>org.apache.hbase</groupId>
189 <artifactId>hbase-shaded-mapreduce</artifactId>
191 <!-- Intra-project dependencies -->
193 <groupId>org.apache.hbase</groupId>
194 <artifactId>hbase-it</artifactId>
195 <type>test-jar</type>
197 <!-- Hamcrest is required by hbase-it (via junit), but as long as we're grabbing the hbase-it test-jar,
198 maven dependency resolution won't pick it up for us. -->
200 <groupId>org.hamcrest</groupId>
201 <artifactId>hamcrest-core</artifactId>
202 <!-- Overriding the scope in depMgmt -->
203 <scope>compile</scope>
206 <groupId>org.apache.hbase</groupId>
207 <artifactId>hbase-server</artifactId>
210 <groupId>org.apache.hbase</groupId>
211 <artifactId>hbase-mapreduce</artifactId>
214 <groupId>org.apache.hbase</groupId>
215 <artifactId>hbase-mapreduce</artifactId>
216 <type>test-jar</type>
218 <!-- To dump tools in hbase-procedure into cached_classpath.txt. -->
220 <groupId>org.apache.hbase</groupId>
221 <artifactId>hbase-procedure</artifactId>
224 <groupId>org.apache.hbase</groupId>
225 <artifactId>hbase-procedure</artifactId>
226 <type>test-jar</type>
230 <groupId>org.apache.hbase</groupId>
231 <artifactId>hbase-hadoop-compat</artifactId>
234 <groupId>com.google.guava</groupId>
235 <artifactId>guava</artifactId>
240 <groupId>org.apache.hbase</groupId>
241 <artifactId>${compat.module}</artifactId>
244 <groupId>org.apache.hbase</groupId>
245 <artifactId>hbase-shell</artifactId>
248 <groupId>org.apache.hbase</groupId>
249 <artifactId>hbase-thrift</artifactId>
252 <groupId>org.apache.hbase</groupId>
253 <artifactId>hbase-rest</artifactId>
256 <groupId>org.apache.hbase</groupId>
257 <artifactId>hbase-external-blockcache</artifactId>
260 <groupId>org.apache.hbase</groupId>
261 <artifactId>hbase-testing-util</artifactId>
264 <groupId>org.apache.hbase</groupId>
265 <artifactId>hbase-metrics-api</artifactId>
268 <groupId>org.apache.hbase</groupId>
269 <artifactId>hbase-metrics</artifactId>
272 <groupId>org.apache.hbase</groupId>
273 <artifactId>hbase-protocol</artifactId>
276 <groupId>org.apache.hbase</groupId>
277 <artifactId>hbase-protocol-shaded</artifactId>
280 <groupId>org.apache.hbase</groupId>
281 <artifactId>hbase-resource-bundle</artifactId>
282 <optional>true</optional>
285 <groupId>org.apache.httpcomponents</groupId>
286 <artifactId>httpclient</artifactId>
289 <groupId>org.apache.httpcomponents</groupId>
290 <artifactId>httpcore</artifactId>
293 <groupId>org.apache.hbase</groupId>
294 <artifactId>hbase-backup</artifactId>
297 <groupId>org.apache.hbase</groupId>
298 <artifactId>hbase-replication</artifactId>
301 <groupId>org.apache.hbase</groupId>
302 <artifactId>hbase-http</artifactId>
305 <groupId>org.apache.hbase</groupId>
306 <artifactId>hbase-examples</artifactId>
309 <groupId>org.apache.hbase</groupId>
310 <artifactId>hbase-zookeeper</artifactId>
313 <groupId>org.apache.hbase</groupId>
314 <artifactId>hbase-hbtop</artifactId>
317 <groupId>jline</groupId>
318 <artifactId>jline</artifactId>
321 <groupId>com.sun.xml.ws</groupId>
322 <artifactId>jaxws-ri</artifactId>