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>
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>gnu</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 <useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
142 <includes>**\/NOTICE,**\/NOTICE.txt</includes>
148 <groupId>org.codehaus.mojo</groupId>
149 <artifactId>exec-maven-plugin</artifactId>
150 <version>${exec.maven.version}</version>
153 <id>concat-NOTICE-files</id>
154 <phase>package</phase>
159 <executable>env</executable>
161 <argument>bash</argument>
162 <argument>-c</argument>
163 <argument>cat maven-shared-archive-resources/META-INF/NOTICE \
164 `find ${project.build.directory}/dependency -iname NOTICE -or -iname NOTICE.txt`
167 <outputFile>${project.build.directory}/NOTICE.aggregate</outputFile>
168 <workingDirectory>${project.build.directory}</workingDirectory>
173 <!-- /end building aggregation of NOTICE files -->
177 <!-- client artifacts for downstream use -->
179 <groupId>org.apache.hbase</groupId>
180 <artifactId>hbase-shaded-client</artifactId>
183 <groupId>org.apache.hbase</groupId>
184 <artifactId>hbase-shaded-client-byo-hadoop</artifactId>
187 <groupId>org.apache.hbase</groupId>
188 <artifactId>hbase-shaded-mapreduce</artifactId>
190 <!-- Intra-project dependencies -->
192 <groupId>org.apache.hbase</groupId>
193 <artifactId>hbase-it</artifactId>
194 <type>test-jar</type>
196 <!-- Hamcrest is required by hbase-it (via junit), but as long as we're grabbing the hbase-it test-jar,
197 maven dependency resolution won't pick it up for us. -->
199 <groupId>org.hamcrest</groupId>
200 <artifactId>hamcrest-core</artifactId>
201 <!-- Overriding the scope in depMgmt -->
202 <scope>compile</scope>
205 <groupId>org.apache.hbase</groupId>
206 <artifactId>hbase-server</artifactId>
209 <groupId>org.apache.hbase</groupId>
210 <artifactId>hbase-mapreduce</artifactId>
213 <groupId>org.apache.hbase</groupId>
214 <artifactId>hbase-mapreduce</artifactId>
215 <type>test-jar</type>
217 <!-- To dump tools in hbase-procedure into cached_classpath.txt. -->
219 <groupId>org.apache.hbase</groupId>
220 <artifactId>hbase-procedure</artifactId>
223 <groupId>org.apache.hbase</groupId>
224 <artifactId>hbase-procedure</artifactId>
225 <type>test-jar</type>
229 <groupId>org.apache.hbase</groupId>
230 <artifactId>hbase-hadoop-compat</artifactId>
233 <groupId>com.google.guava</groupId>
234 <artifactId>guava</artifactId>
239 <groupId>org.apache.hbase</groupId>
240 <artifactId>${compat.module}</artifactId>
243 <groupId>org.apache.hbase</groupId>
244 <artifactId>hbase-shell</artifactId>
247 <groupId>org.apache.hbase</groupId>
248 <artifactId>hbase-thrift</artifactId>
251 <groupId>org.apache.hbase</groupId>
252 <artifactId>hbase-rest</artifactId>
255 <groupId>org.apache.hbase</groupId>
256 <artifactId>hbase-external-blockcache</artifactId>
259 <groupId>org.apache.hbase</groupId>
260 <artifactId>hbase-testing-util</artifactId>
263 <groupId>org.apache.hbase</groupId>
264 <artifactId>hbase-metrics-api</artifactId>
267 <groupId>org.apache.hbase</groupId>
268 <artifactId>hbase-metrics</artifactId>
271 <groupId>org.apache.hbase</groupId>
272 <artifactId>hbase-protocol</artifactId>
275 <groupId>org.apache.hbase</groupId>
276 <artifactId>hbase-protocol-shaded</artifactId>
279 <groupId>org.apache.hbase</groupId>
280 <artifactId>hbase-resource-bundle</artifactId>
281 <optional>true</optional>
284 <groupId>org.apache.httpcomponents</groupId>
285 <artifactId>httpclient</artifactId>
288 <groupId>org.apache.httpcomponents</groupId>
289 <artifactId>httpcore</artifactId>
292 <groupId>org.apache.hbase</groupId>
293 <artifactId>hbase-backup</artifactId>
296 <groupId>org.apache.hbase</groupId>
297 <artifactId>hbase-replication</artifactId>
300 <groupId>org.apache.hbase</groupId>
301 <artifactId>hbase-http</artifactId>
304 <groupId>org.apache.hbase</groupId>
305 <artifactId>hbase-examples</artifactId>
308 <groupId>org.apache.hbase</groupId>
309 <artifactId>hbase-zookeeper</artifactId>
312 <groupId>jline</groupId>
313 <artifactId>jline</artifactId>
321 <name>!skip-rsgroup</name>
326 <groupId>org.apache.hbase</groupId>
327 <artifactId>hbase-rsgroup</artifactId>
328 <version>${project.version}</version>