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-server</artifactId>
30 <name>Apache HBase - Server</name>
31 <description>Server functionality for HBase</description>
33 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
34 <license.bundles.logo>true</license.bundles.logo>
35 <license.bundles.bootstrap>true</license.bundles.bootstrap>
36 <license.bundles.jquery>true</license.bundles.jquery>
39 <!-- Make sure resources get added before they are processed
43 <!-- Add the build webabpps to the classpth -->
45 <directory>${project.build.directory}</directory>
47 <include>hbase-webapps/**</include>
51 <directory>src/main/resources</directory>
53 <include>**/**</include>
58 <!-- Our test artifact has different license info than our source/bin ones -->
60 <directory>src/test/resources/META-INF/</directory>
61 <targetPath>META-INF/</targetPath>
63 <include>NOTICE</include>
65 <filtering>true</filtering>
68 <directory>src/test/resources</directory>
70 <include>**/**</include>
76 <groupId>com.github.spotbugs</groupId>
77 <artifactId>spotbugs-maven-plugin</artifactId>
79 <maxHeap>2048</maxHeap>
82 <!-- licensing info from our bundled works -->
84 <groupId>org.apache.maven.plugins</groupId>
85 <artifactId>maven-remote-resources-plugin</artifactId>
87 <!-- resource bundle only needed at build time -->
89 <groupId>org.apache.hbase</groupId>
90 <artifactId>hbase-resource-bundle</artifactId>
91 <version>${project.version}</version>
98 <attachToTest>false</attachToTest>
100 <copyright-end-year>${build.year}</copyright-end-year>
101 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
102 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
103 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
104 <bundled-logo>${license.bundles.logo}</bundled-logo>
105 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
108 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
110 <supplementalModelArtifacts>
111 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
112 </supplementalModelArtifacts>
114 <supplementalModel>supplemental-models.xml</supplementalModel>
115 </supplementalModels>
120 <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
121 tests (this is needed for upstream projects whose tests need this jar simply for
124 <!--Make it so assembly:single does nothing in here-->
125 <artifactId>maven-assembly-plugin</artifactId>
127 <skipAssembly>true</skipAssembly>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-jar-plugin</artifactId>
134 <!-- Exclude these 2 packages, because their dependency _binary_ files
135 include the sources, and Maven 2.2 appears to add them to the sources to compile,
138 <exclude>org/apache/jute/**</exclude>
139 <exclude>org/apache/zookeeper/**</exclude>
140 <exclude>**/*.jsp</exclude>
141 <exclude>hbase-site.xml</exclude>
142 <exclude>hdfs-site.xml</exclude>
143 <exclude>log4j.properties</exclude>
144 <exclude>mapred-queues.xml</exclude>
145 <exclude>mapred-site.xml</exclude>
149 <!-- General ant tasks, bound to different build phases -->
151 <artifactId>maven-antrun-plugin</artifactId>
153 <!-- Generate web app sources -->
156 <phase>generate-sources</phase>
159 <property name="build.webapps" location="${project.build.directory}/hbase-webapps"/>
160 <property name="src.webapps" location="${basedir}/src/main/resources/hbase-webapps"/>
161 <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
162 <mkdir dir="${build.webapps}"/>
163 <copy todir="${build.webapps}">
164 <fileset dir="${src.webapps}">
165 <exclude name="**/*.jsp"/>
166 <exclude name="**/.*"/>
167 <exclude name="**/*~"/>
170 <!--The compile.classpath is passed in by maven -->
171 <taskdef classname="org.apache.jasper.JspC" name="jspcompiler" classpathref="maven.compile.classpath"/>
172 <mkdir dir="${build.webapps}/master/WEB-INF"/>
173 <jspcompiler uriroot="${src.webapps}/master" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.master" webxml="${build.webapps}/master/WEB-INF/web.xml"/>
174 <mkdir dir="${build.webapps}/regionserver/WEB-INF"/>
175 <jspcompiler uriroot="${src.webapps}/regionserver" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.regionserver" webxml="${build.webapps}/regionserver/WEB-INF/web.xml"/>
185 <groupId>org.codehaus.mojo</groupId>
186 <artifactId>build-helper-maven-plugin</artifactId>
188 <!-- Add the generated sources -->
190 <id>jspcSource-packageInfo-source</id>
191 <phase>generate-sources</phase>
193 <goal>add-source</goal>
197 <source>${project.build.directory}/generated-jamon</source>
198 <source>${project.build.directory}/generated-sources/java</source>
205 <groupId>org.jamon</groupId>
206 <artifactId>jamon-maven-plugin</artifactId>
209 <phase>generate-sources</phase>
211 <goal>translate</goal>
214 <templateSourceDir>src/main/jamon</templateSourceDir>
215 <templateOutputDir>target/generated-jamon</templateOutputDir>
220 <!-- Testing plugins -->
222 <artifactId>maven-surefire-plugin</artifactId>
224 <systemPropertyVariables>
225 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
226 </systemPropertyVariables>
230 <groupId>net.revelc.code</groupId>
231 <artifactId>warbucks-maven-plugin</artifactId>
237 <groupId>org.apache.hbase.thirdparty</groupId>
238 <artifactId>hbase-shaded-protobuf</artifactId>
241 <groupId>org.apache.hbase.thirdparty</groupId>
242 <artifactId>hbase-shaded-netty</artifactId>
245 <groupId>org.apache.hbase.thirdparty</groupId>
246 <artifactId>hbase-shaded-miscellaneous</artifactId>
248 <!-- Intra-project dependencies -->
250 <groupId>org.apache.hbase</groupId>
251 <artifactId>hbase-logging</artifactId>
252 <type>test-jar</type>
256 <groupId>org.apache.hbase</groupId>
257 <artifactId>hbase-common</artifactId>
260 <groupId>org.apache.hbase</groupId>
261 <artifactId>hbase-http</artifactId>
264 <groupId>org.codehaus.jackson</groupId>
265 <artifactId>jackson-core-asl</artifactId>
270 <groupId>org.apache.hbase</groupId>
271 <artifactId>hbase-http</artifactId>
272 <type>test-jar</type>
276 <groupId>org.apache.hbase</groupId>
277 <artifactId>hbase-protocol-shaded</artifactId>
280 <groupId>org.apache.hbase</groupId>
281 <artifactId>hbase-procedure</artifactId>
284 <groupId>org.apache.hbase</groupId>
285 <artifactId>hbase-client</artifactId>
288 <groupId>org.apache.hbase</groupId>
289 <artifactId>hbase-zookeeper</artifactId>
292 <groupId>org.apache.hbase</groupId>
293 <artifactId>hbase-replication</artifactId>
296 <groupId>org.apache.hbase</groupId>
297 <artifactId>hbase-balancer</artifactId>
300 <groupId>org.apache.hbase</groupId>
301 <artifactId>hbase-common</artifactId>
302 <type>test-jar</type>
306 <groupId>org.apache.hbase</groupId>
307 <artifactId>hbase-annotations</artifactId>
308 <type>test-jar</type>
312 <groupId>org.apache.hbase</groupId>
313 <artifactId>hbase-procedure</artifactId>
314 <type>test-jar</type>
318 <groupId>org.apache.hbase</groupId>
319 <artifactId>hbase-zookeeper</artifactId>
320 <type>test-jar</type>
324 <groupId>org.apache.hbase</groupId>
325 <artifactId>hbase-metrics-api</artifactId>
328 <groupId>org.apache.hbase</groupId>
329 <artifactId>hbase-metrics</artifactId>
332 <groupId>commons-codec</groupId>
333 <artifactId>commons-codec</artifactId>
336 <groupId>org.apache.hbase</groupId>
337 <artifactId>hbase-hadoop-compat</artifactId>
340 <groupId>org.apache.hbase</groupId>
341 <artifactId>hbase-hadoop-compat</artifactId>
342 <type>test-jar</type>
346 <groupId>org.apache.hbase</groupId>
347 <artifactId>hbase-asyncfs</artifactId>
350 <groupId>org.apache.hbase</groupId>
351 <artifactId>hbase-asyncfs</artifactId>
352 <type>test-jar</type>
356 <groupId>org.eclipse.jetty</groupId>
357 <artifactId>jetty-server</artifactId>
360 <groupId>org.eclipse.jetty</groupId>
361 <artifactId>jetty-servlet</artifactId>
364 <groupId>org.eclipse.jetty</groupId>
365 <artifactId>jetty-webapp</artifactId>
368 <!-- For JspC used in ant task, then needed at compile /runtime
369 because the source code made from the JSP refers to its runtime
371 <groupId>org.glassfish.web</groupId>
372 <artifactId>javax.servlet.jsp</artifactId>
374 <!-- Also used by generated sources from our JSP -->
376 <groupId>javax.servlet.jsp</groupId>
377 <artifactId>javax.servlet.jsp-api</artifactId>
379 <!-- General dependencies -->
381 <groupId>com.github.stephenc.findbugs</groupId>
382 <artifactId>findbugs-annotations</artifactId>
383 <scope>compile</scope>
384 <optional>true</optional>
387 <groupId>com.github.ben-manes.caffeine</groupId>
388 <artifactId>caffeine</artifactId>
391 <groupId>io.dropwizard.metrics</groupId>
392 <artifactId>metrics-core</artifactId>
395 <groupId>com.google.protobuf</groupId>
396 <artifactId>protobuf-java</artifactId>
399 <groupId>commons-io</groupId>
400 <artifactId>commons-io</artifactId>
403 <groupId>org.apache.commons</groupId>
404 <artifactId>commons-lang3</artifactId>
407 <groupId>org.slf4j</groupId>
408 <artifactId>slf4j-api</artifactId>
411 <groupId>org.apache.commons</groupId>
412 <artifactId>commons-math3</artifactId>
415 <groupId>org.apache.zookeeper</groupId>
416 <artifactId>zookeeper</artifactId>
419 <groupId>org.jamon</groupId>
420 <artifactId>jamon-runtime</artifactId>
423 <groupId>javax.servlet</groupId>
424 <artifactId>javax.servlet-api</artifactId>
426 <!-- tracing Dependencies -->
428 <groupId>org.apache.htrace</groupId>
429 <artifactId>htrace-core4</artifactId>
432 <groupId>com.lmax</groupId>
433 <artifactId>disruptor</artifactId>
435 <!-- Test dependencies -->
437 <groupId>org.hamcrest</groupId>
438 <artifactId>hamcrest-core</artifactId>
442 <groupId>org.hamcrest</groupId>
443 <artifactId>hamcrest-library</artifactId>
447 <groupId>org.bouncycastle</groupId>
448 <artifactId>bcprov-jdk15on</artifactId>
452 <groupId>org.apache.hadoop</groupId>
453 <artifactId>hadoop-minikdc</artifactId>
457 <groupId>bouncycastle</groupId>
458 <artifactId>bcprov-jdk15</artifactId>
463 <groupId>org.apache.kerby</groupId>
464 <artifactId>kerb-client</artifactId>
468 <groupId>org.apache.kerby</groupId>
469 <artifactId>kerb-simplekdc</artifactId>
473 <groupId>org.apache.httpcomponents</groupId>
474 <artifactId>httpclient</artifactId>
478 <groupId>org.apache.httpcomponents</groupId>
479 <artifactId>httpcore</artifactId>
483 <groupId>org.apache.commons</groupId>
484 <artifactId>commons-crypto</artifactId>
487 <groupId>net.java.dev.jna</groupId>
488 <artifactId>jna</artifactId>
493 <groupId>junit</groupId>
494 <artifactId>junit</artifactId>
498 <groupId>org.mockito</groupId>
499 <artifactId>mockito-core</artifactId>
503 <groupId>org.slf4j</groupId>
504 <artifactId>jcl-over-slf4j</artifactId>
508 <groupId>org.slf4j</groupId>
509 <artifactId>jul-to-slf4j</artifactId>
513 <groupId>org.slf4j</groupId>
514 <artifactId>slf4j-log4j12</artifactId>
518 <groupId>log4j</groupId>
519 <artifactId>log4j</artifactId>
524 <!-- Needs to make the profile in apache parent pom -->
526 <id>apache-release</id>
530 <groupId>org.apache.maven.plugins</groupId>
531 <artifactId>maven-resources-plugin</artifactId>
534 <id>license-javadocs</id>
535 <phase>prepare-package</phase>
537 <goal>copy-resources</goal>
540 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
543 <directory>src/main/javadoc/META-INF/</directory>
544 <targetPath>META-INF/</targetPath>
546 <include>LICENSE</include>
547 <include>NOTICE</include>
549 <filtering>true</filtering>
559 <!-- Skip the tests in this module -->
561 <id>skipServerTests</id>
564 <name>skipServerTests</name>
568 <surefire.skipFirstPart>true</surefire.skipFirstPart>
569 <surefire.skipSecondPart>true</surefire.skipSecondPart>
572 <!-- Special builds -->
576 <activeByDefault>false</activeByDefault>
581 <groupId>org.apache.maven.plugins</groupId>
582 <artifactId>maven-antrun-plugin</artifactId>
586 <phase>compile</phase>
587 <goals><goal>run</goal></goals>
590 <mkdir dir="${project.build.directory}/native"/>
591 <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
592 <arg line="${basedir}/src/main/native -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
594 <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
595 <arg line="VERBOSE=1"/>
605 <!-- Profiles for building against different hadoop versions -->
606 <!-- There are a lot of common dependencies used here, should investigate
607 if we can combine these profiles somehow -->
608 <!-- Profile for building against Hadoop 3.0.0. Activate by default -->
612 <property><name>!hadoop.profile</name></property>
616 <groupId>org.apache.hadoop</groupId>
617 <artifactId>hadoop-distcp</artifactId>
620 <groupId>org.apache.hadoop</groupId>
621 <artifactId>hadoop-common</artifactId>
624 <groupId>org.apache.hadoop</groupId>
625 <artifactId>hadoop-hdfs</artifactId>
628 <groupId>org.apache.hadoop</groupId>
629 <artifactId>hadoop-hdfs-client</artifactId>
632 <groupId>org.apache.hadoop</groupId>
633 <artifactId>hadoop-mapreduce-client-core</artifactId>
636 <groupId>javax.xml.bind</groupId>
637 <artifactId>jaxb-api</artifactId>
640 <groupId>javax.ws.rs</groupId>
641 <artifactId>jsr311-api</artifactId>
646 <groupId>org.apache.hadoop</groupId>
647 <artifactId>hadoop-hdfs</artifactId>
648 <type>test-jar</type>
652 <groupId>org.apache.hadoop</groupId>
653 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
654 <type>test-jar</type>
658 <groupId>org.apache.hadoop</groupId>
659 <artifactId>hadoop-annotations</artifactId>
662 <groupId>org.apache.hadoop</groupId>
663 <artifactId>hadoop-minicluster</artifactId>
667 <groupId>javax.xml.bind</groupId>
668 <artifactId>jaxb-api</artifactId>
671 <groupId>javax.ws.rs</groupId>
672 <artifactId>jsr311-api</artifactId>
676 <!-- Hadoop needs Netty 3.x at test scope for the minicluster>
678 <groupId>io.netty</groupId>
679 <artifactId>netty</artifactId>
680 <version>${netty.hadoop.version}</version>
687 <artifactId>maven-dependency-plugin</artifactId>
690 <id>create-mrapp-generated-classpath</id>
691 <phase>generate-test-resources</phase>
693 <goal>build-classpath</goal>
696 <!-- needed to run the unit test for DS to generate
697 the required classpath that is required in the env
698 of the launch container in the mini mr/yarn cluster
700 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
709 <id>eclipse-specific</id>
712 <name>m2e.version</name>
718 <groupId>org.apache.maven.plugins</groupId>
719 <artifactId>maven-eclipse-plugin</artifactId>
721 <additionalProjectnatures>
722 <projectnature>org.jamon.project.jamonnature</projectnature>
723 </additionalProjectnatures>
725 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
726 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
727 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
731 <name>.settings/org.jamon.prefs</name>
733 eclipse.preferences.version=1
734 templateSourceDir=src/main/jamon
735 templateOutputDir=target/generated-jamon
744 <!--This plugin's configuration is used to store Eclipse m2e settings
745 only. It has no influence on the Maven build itself and needs to
746 be kept in plugin management, not in the actual plugins. -->
748 <groupId>org.eclipse.m2e</groupId>
749 <artifactId>lifecycle-mapping</artifactId>
751 <lifecycleMappingMetadata>
754 <pluginExecutionFilter>
755 <groupId>org.jamon</groupId>
756 <artifactId>jamon-maven-plugin</artifactId>
757 <versionRange>[2.3.4,)</versionRange>
759 <goal>translate</goal>
761 </pluginExecutionFilter>
764 <runOnIncremental>false</runOnIncremental>
765 <runOnConfiguration>true</runOnConfiguration>
770 <pluginExecutionFilter>
771 <groupId>org.apache.maven.plugins</groupId>
772 <artifactId>maven-antrun-plugin</artifactId>
773 <versionRange>[1.6,)</versionRange>
777 </pluginExecutionFilter>
780 <runOnIncremental>false</runOnIncremental>
781 <runOnConfiguration>true</runOnConfiguration>
786 <pluginExecutionFilter>
787 <groupId>org.apache.maven.plugins</groupId>
788 <artifactId>maven-dependency-plugin</artifactId>
789 <versionRange>[2.8,)</versionRange>
791 <goal>build-classpath</goal>
793 </pluginExecutionFilter>
799 </lifecycleMappingMetadata>