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>2.4.4-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 by placing this first
42 <!-- Add the build webabpps to the classpth -->
44 <directory>${project.build.directory}</directory>
46 <include>hbase-webapps/**</include>
50 <directory>src/main/resources</directory>
52 <include>**/**</include>
57 <!-- Our test artifact has different license info than our source/bin ones -->
59 <directory>src/test/resources/META-INF/</directory>
60 <targetPath>META-INF/</targetPath>
62 <include>NOTICE</include>
64 <filtering>true</filtering>
67 <directory>src/test/resources</directory>
69 <include>**/**</include>
75 <groupId>com.github.spotbugs</groupId>
76 <artifactId>spotbugs-maven-plugin</artifactId>
78 <maxHeap>2048</maxHeap>
81 <!-- licensing info from our bundled works -->
83 <groupId>org.apache.maven.plugins</groupId>
84 <artifactId>maven-remote-resources-plugin</artifactId>
86 <!-- resource bundle only needed at build time -->
88 <groupId>org.apache.hbase</groupId>
89 <artifactId>hbase-resource-bundle</artifactId>
90 <version>${project.version}</version>
97 <attachToTest>false</attachToTest>
99 <copyright-end-year>${build.year}</copyright-end-year>
100 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
101 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
102 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
103 <bundled-logo>${license.bundles.logo}</bundled-logo>
104 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
107 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
109 <supplementalModelArtifacts>
110 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
111 </supplementalModelArtifacts>
113 <supplementalModel>supplemental-models.xml</supplementalModel>
114 </supplementalModels>
119 <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
120 tests (this is needed for upstream projects whose tests need this jar simply for
123 <!--Make it so assembly:single does nothing in here-->
124 <artifactId>maven-assembly-plugin</artifactId>
126 <skipAssembly>true</skipAssembly>
130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-jar-plugin</artifactId>
133 <!-- Exclude these 2 packages, because their dependency _binary_ files
134 include the sources, and Maven 2.2 appears to add them to the sources to compile,
137 <exclude>org/apache/jute/**</exclude>
138 <exclude>org/apache/zookeeper/**</exclude>
139 <exclude>**/*.jsp</exclude>
140 <exclude>hbase-site.xml</exclude>
141 <exclude>hdfs-site.xml</exclude>
142 <exclude>log4j.properties</exclude>
143 <exclude>mapred-queues.xml</exclude>
144 <exclude>mapred-site.xml</exclude>
148 <!-- General ant tasks, bound to different build phases -->
150 <artifactId>maven-antrun-plugin</artifactId>
152 <!-- Generate web app sources -->
155 <phase>generate-sources</phase>
158 <property name="build.webapps" location="${project.build.directory}/hbase-webapps"/>
159 <property name="src.webapps" location="${basedir}/src/main/resources/hbase-webapps"/>
160 <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
161 <mkdir dir="${build.webapps}"/>
162 <copy todir="${build.webapps}">
163 <fileset dir="${src.webapps}">
164 <exclude name="**/*.jsp"/>
165 <exclude name="**/.*"/>
166 <exclude name="**/*~"/>
169 <!--The compile.classpath is passed in by maven -->
170 <taskdef classname="org.apache.jasper.JspC" name="jspcompiler" classpathref="maven.compile.classpath"/>
171 <mkdir dir="${build.webapps}/master/WEB-INF"/>
172 <jspcompiler uriroot="${src.webapps}/master" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.master" webxml="${build.webapps}/master/WEB-INF/web.xml"/>
173 <mkdir dir="${build.webapps}/regionserver/WEB-INF"/>
174 <jspcompiler uriroot="${src.webapps}/regionserver" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.regionserver" webxml="${build.webapps}/regionserver/WEB-INF/web.xml"/>
184 <groupId>org.codehaus.mojo</groupId>
185 <artifactId>build-helper-maven-plugin</artifactId>
187 <!-- Add the generated sources -->
189 <id>jspcSource-packageInfo-source</id>
190 <phase>generate-sources</phase>
192 <goal>add-source</goal>
196 <source>${project.build.directory}/generated-jamon</source>
197 <source>${project.build.directory}/generated-sources/java</source>
204 <groupId>org.jamon</groupId>
205 <artifactId>jamon-maven-plugin</artifactId>
208 <phase>generate-sources</phase>
210 <goal>translate</goal>
213 <templateSourceDir>src/main/jamon</templateSourceDir>
214 <templateOutputDir>target/generated-jamon</templateOutputDir>
219 <!-- Testing plugins -->
221 <artifactId>maven-surefire-plugin</artifactId>
223 <systemPropertyVariables>
224 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
225 </systemPropertyVariables>
229 <groupId>net.revelc.code</groupId>
230 <artifactId>warbucks-maven-plugin</artifactId>
236 <groupId>org.apache.hbase.thirdparty</groupId>
237 <artifactId>hbase-shaded-protobuf</artifactId>
240 <groupId>org.apache.hbase.thirdparty</groupId>
241 <artifactId>hbase-shaded-netty</artifactId>
244 <groupId>org.apache.hbase.thirdparty</groupId>
245 <artifactId>hbase-shaded-miscellaneous</artifactId>
247 <!-- Intra-project dependencies -->
249 <groupId>org.apache.hbase</groupId>
250 <artifactId>hbase-logging</artifactId>
251 <type>test-jar</type>
255 <groupId>org.apache.hbase</groupId>
256 <artifactId>hbase-common</artifactId>
259 <groupId>org.apache.hbase</groupId>
260 <artifactId>hbase-http</artifactId>
263 <groupId>org.codehaus.jackson</groupId>
264 <artifactId>jackson-core-asl</artifactId>
269 <groupId>org.apache.hbase</groupId>
270 <artifactId>hbase-http</artifactId>
271 <type>test-jar</type>
275 <!--Needed by the visiblity tags and acl CPEP things
276 in here in hbase-server (that should be out in hbase-endpoints
278 <groupId>org.apache.hbase</groupId>
279 <artifactId>hbase-protocol</artifactId>
282 <groupId>org.apache.hbase</groupId>
283 <artifactId>hbase-protocol-shaded</artifactId>
286 <groupId>org.apache.hbase</groupId>
287 <artifactId>hbase-procedure</artifactId>
290 <groupId>org.apache.hbase</groupId>
291 <artifactId>hbase-client</artifactId>
294 <groupId>org.apache.hbase</groupId>
295 <artifactId>hbase-zookeeper</artifactId>
298 <groupId>org.apache.hbase</groupId>
299 <artifactId>hbase-replication</artifactId>
302 <groupId>org.apache.hbase</groupId>
303 <artifactId>hbase-common</artifactId>
304 <type>test-jar</type>
308 <groupId>org.apache.hbase</groupId>
309 <artifactId>hbase-annotations</artifactId>
310 <type>test-jar</type>
314 <groupId>org.apache.hbase</groupId>
315 <artifactId>hbase-procedure</artifactId>
316 <type>test-jar</type>
320 <groupId>org.apache.hbase</groupId>
321 <artifactId>hbase-zookeeper</artifactId>
322 <type>test-jar</type>
326 <groupId>org.apache.hbase</groupId>
327 <artifactId>hbase-metrics-api</artifactId>
330 <groupId>org.apache.hbase</groupId>
331 <artifactId>hbase-metrics</artifactId>
334 <groupId>commons-codec</groupId>
335 <artifactId>commons-codec</artifactId>
338 <groupId>org.apache.hbase</groupId>
339 <artifactId>hbase-hadoop-compat</artifactId>
342 <groupId>org.apache.hbase</groupId>
343 <artifactId>hbase-hadoop-compat</artifactId>
344 <type>test-jar</type>
348 <groupId>org.apache.hbase</groupId>
349 <artifactId>${compat.module}</artifactId>
350 <version>${project.version}</version>
353 <groupId>org.apache.hbase</groupId>
354 <artifactId>${compat.module}</artifactId>
355 <version>${project.version}</version>
356 <type>test-jar</type>
360 <groupId>org.apache.hbase</groupId>
361 <artifactId>hbase-asyncfs</artifactId>
364 <groupId>org.apache.hbase</groupId>
365 <artifactId>hbase-asyncfs</artifactId>
366 <type>test-jar</type>
370 <!-- For JspC used in ant task, then needed at compile /runtime
371 because the source code made from the JSP refers to its runtime
373 <groupId>org.glassfish.web</groupId>
374 <artifactId>javax.servlet.jsp</artifactId>
376 <!-- Also used by generated sources from our JSP -->
378 <groupId>javax.servlet.jsp</groupId>
379 <artifactId>javax.servlet.jsp-api</artifactId>
381 <!-- General dependencies -->
383 <groupId>com.github.stephenc.findbugs</groupId>
384 <artifactId>findbugs-annotations</artifactId>
385 <scope>compile</scope>
386 <optional>true</optional>
389 <groupId>com.github.ben-manes.caffeine</groupId>
390 <artifactId>caffeine</artifactId>
393 <groupId>io.dropwizard.metrics</groupId>
394 <artifactId>metrics-core</artifactId>
397 <groupId>com.google.protobuf</groupId>
398 <artifactId>protobuf-java</artifactId>
401 <groupId>commons-io</groupId>
402 <artifactId>commons-io</artifactId>
405 <groupId>org.apache.commons</groupId>
406 <artifactId>commons-lang3</artifactId>
409 <groupId>org.slf4j</groupId>
410 <artifactId>slf4j-api</artifactId>
413 <groupId>org.apache.commons</groupId>
414 <artifactId>commons-math3</artifactId>
417 <groupId>org.apache.zookeeper</groupId>
418 <artifactId>zookeeper</artifactId>
421 <groupId>org.jamon</groupId>
422 <artifactId>jamon-runtime</artifactId>
425 <groupId>javax.servlet</groupId>
426 <artifactId>javax.servlet-api</artifactId>
428 <!-- tracing Dependencies -->
430 <groupId>org.apache.htrace</groupId>
431 <artifactId>htrace-core4</artifactId>
434 <groupId>com.lmax</groupId>
435 <artifactId>disruptor</artifactId>
437 <!-- Test dependencies -->
439 <groupId>org.hamcrest</groupId>
440 <artifactId>hamcrest-core</artifactId>
444 <groupId>org.hamcrest</groupId>
445 <artifactId>hamcrest-library</artifactId>
449 <groupId>org.bouncycastle</groupId>
450 <artifactId>bcprov-jdk15on</artifactId>
454 <groupId>org.apache.hadoop</groupId>
455 <artifactId>hadoop-minikdc</artifactId>
459 <groupId>bouncycastle</groupId>
460 <artifactId>bcprov-jdk15</artifactId>
465 <groupId>org.apache.kerby</groupId>
466 <artifactId>kerb-client</artifactId>
470 <groupId>org.apache.kerby</groupId>
471 <artifactId>kerb-simplekdc</artifactId>
475 <groupId>org.apache.httpcomponents</groupId>
476 <artifactId>httpclient</artifactId>
480 <groupId>org.apache.httpcomponents</groupId>
481 <artifactId>httpcore</artifactId>
485 <groupId>org.apache.commons</groupId>
486 <artifactId>commons-crypto</artifactId>
489 <groupId>net.java.dev.jna</groupId>
490 <artifactId>jna</artifactId>
495 <groupId>junit</groupId>
496 <artifactId>junit</artifactId>
500 <groupId>org.mockito</groupId>
501 <artifactId>mockito-core</artifactId>
505 <groupId>org.slf4j</groupId>
506 <artifactId>jcl-over-slf4j</artifactId>
510 <groupId>org.slf4j</groupId>
511 <artifactId>jul-to-slf4j</artifactId>
515 <groupId>org.slf4j</groupId>
516 <artifactId>slf4j-log4j12</artifactId>
520 <groupId>log4j</groupId>
521 <artifactId>log4j</artifactId>
526 <!-- Needs to make the profile in apache parent pom -->
528 <id>apache-release</id>
532 <groupId>org.apache.maven.plugins</groupId>
533 <artifactId>maven-resources-plugin</artifactId>
536 <id>license-javadocs</id>
537 <phase>prepare-package</phase>
539 <goal>copy-resources</goal>
542 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
545 <directory>src/main/javadoc/META-INF/</directory>
546 <targetPath>META-INF/</targetPath>
548 <include>LICENSE</include>
549 <include>NOTICE</include>
551 <filtering>true</filtering>
561 <!-- Skip the tests in this module -->
563 <id>skipServerTests</id>
566 <name>skipServerTests</name>
570 <surefire.skipFirstPart>true</surefire.skipFirstPart>
571 <surefire.skipSecondPart>true</surefire.skipSecondPart>
574 <!-- Special builds -->
578 <activeByDefault>false</activeByDefault>
583 <groupId>org.apache.maven.plugins</groupId>
584 <artifactId>maven-antrun-plugin</artifactId>
588 <phase>compile</phase>
589 <goals><goal>run</goal></goals>
592 <mkdir dir="${project.build.directory}/native"/>
593 <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
594 <arg line="${basedir}/src/main/native -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
596 <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
597 <arg line="VERBOSE=1"/>
607 <!-- Profiles for building against different hadoop versions -->
608 <!-- There are a lot of common dependencies used here, should investigate
609 if we can combine these profiles somehow -->
611 <!-- profile for building against Hadoop 2.x. This is the default. -->
616 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
617 <!--h2--><name>!hadoop.profile</name>
622 <groupId>org.apache.hadoop</groupId>
623 <artifactId>hadoop-distcp</artifactId>
626 <groupId>org.apache.hadoop</groupId>
627 <artifactId>hadoop-common</artifactId>
630 <groupId>org.apache.hadoop</groupId>
631 <artifactId>hadoop-auth</artifactId>
634 <groupId>org.apache.hadoop</groupId>
635 <artifactId>hadoop-annotations</artifactId>
638 <groupId>org.apache.hadoop</groupId>
639 <artifactId>hadoop-mapreduce-client-core</artifactId>
642 <groupId>com.google.guava</groupId>
643 <artifactId>guava</artifactId>
646 <groupId>javax.xml.bind</groupId>
647 <artifactId>java-api</artifactId>
650 <groupId>javax.xml.bind</groupId>
651 <artifactId>jaxb-api</artifactId>
656 <groupId>org.apache.hadoop</groupId>
657 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
658 <type>test-jar</type>
662 <groupId>com.google.guava</groupId>
663 <artifactId>guava</artifactId>
668 <groupId>org.apache.hadoop</groupId>
669 <artifactId>hadoop-hdfs</artifactId>
672 <groupId>org.apache.hadoop</groupId>
673 <artifactId>hadoop-hdfs</artifactId>
674 <type>test-jar</type>
678 <groupId>org.apache.hadoop</groupId>
679 <artifactId>hadoop-minicluster</artifactId>
683 <groupId>com.google.guava</groupId>
684 <artifactId>guava</artifactId>
687 <groupId>org.apache.zookeeper</groupId>
688 <artifactId>zookeeper</artifactId>
692 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
694 <groupId>io.netty</groupId>
695 <artifactId>netty</artifactId>
696 <version>${netty.hadoop.version}</version>
703 <artifactId>maven-dependency-plugin</artifactId>
706 <id>create-mrapp-generated-classpath</id>
707 <phase>generate-test-resources</phase>
709 <goal>build-classpath</goal>
712 <!-- needed to run the unit test for DS to generate
713 the required classpath that is required in the env
714 of the launch container in the mini mr/yarn cluster
716 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
725 profile for building against Hadoop 3.0.x. Activate using:
726 mvn -Dhadoop.profile=3.0
732 <name>hadoop.profile</name>
738 <groupId>org.apache.hadoop</groupId>
739 <artifactId>hadoop-distcp</artifactId>
742 <groupId>org.apache.hadoop</groupId>
743 <artifactId>hadoop-common</artifactId>
746 <groupId>org.apache.hadoop</groupId>
747 <artifactId>hadoop-hdfs</artifactId>
750 <groupId>org.apache.hadoop</groupId>
751 <artifactId>hadoop-hdfs-client</artifactId>
754 <groupId>org.apache.hadoop</groupId>
755 <artifactId>hadoop-mapreduce-client-core</artifactId>
758 <groupId>javax.xml.bind</groupId>
759 <artifactId>jaxb-api</artifactId>
762 <groupId>javax.ws.rs</groupId>
763 <artifactId>jsr311-api</artifactId>
768 <groupId>org.apache.hadoop</groupId>
769 <artifactId>hadoop-hdfs</artifactId>
770 <type>test-jar</type>
774 <groupId>org.apache.hadoop</groupId>
775 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
776 <type>test-jar</type>
780 <groupId>org.apache.hadoop</groupId>
781 <artifactId>hadoop-annotations</artifactId>
784 <groupId>org.apache.hadoop</groupId>
785 <artifactId>hadoop-minicluster</artifactId>
789 <groupId>javax.xml.bind</groupId>
790 <artifactId>jaxb-api</artifactId>
793 <groupId>javax.ws.rs</groupId>
794 <artifactId>jsr311-api</artifactId>
798 <!-- Hadoop needs Netty 3.x at test scope for the minicluster>
800 <groupId>io.netty</groupId>
801 <artifactId>netty</artifactId>
802 <version>${netty.hadoop.version}</version>
809 <artifactId>maven-dependency-plugin</artifactId>
812 <id>create-mrapp-generated-classpath</id>
813 <phase>generate-test-resources</phase>
815 <goal>build-classpath</goal>
818 <!-- needed to run the unit test for DS to generate
819 the required classpath that is required in the env
820 of the launch container in the mini mr/yarn cluster
822 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
831 <id>eclipse-specific</id>
834 <name>m2e.version</name>
840 <groupId>org.apache.maven.plugins</groupId>
841 <artifactId>maven-eclipse-plugin</artifactId>
843 <additionalProjectnatures>
844 <projectnature>org.jamon.project.jamonnature</projectnature>
845 </additionalProjectnatures>
847 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
848 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
849 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
853 <name>.settings/org.jamon.prefs</name>
855 eclipse.preferences.version=1
856 templateSourceDir=src/main/jamon
857 templateOutputDir=target/generated-jamon
866 <!--This plugin's configuration is used to store Eclipse m2e settings
867 only. It has no influence on the Maven build itself and needs to
868 be kept in plugin management, not in the actual plugins. -->
870 <groupId>org.eclipse.m2e</groupId>
871 <artifactId>lifecycle-mapping</artifactId>
873 <lifecycleMappingMetadata>
876 <pluginExecutionFilter>
877 <groupId>org.jamon</groupId>
878 <artifactId>jamon-maven-plugin</artifactId>
879 <versionRange>[2.3.4,)</versionRange>
881 <goal>translate</goal>
883 </pluginExecutionFilter>
886 <runOnIncremental>false</runOnIncremental>
887 <runOnConfiguration>true</runOnConfiguration>
892 <pluginExecutionFilter>
893 <groupId>org.apache.maven.plugins</groupId>
894 <artifactId>maven-antrun-plugin</artifactId>
895 <versionRange>[1.6,)</versionRange>
899 </pluginExecutionFilter>
902 <runOnIncremental>false</runOnIncremental>
903 <runOnConfiguration>true</runOnConfiguration>
908 <pluginExecutionFilter>
909 <groupId>org.apache.maven.plugins</groupId>
910 <artifactId>maven-dependency-plugin</artifactId>
911 <versionRange>[2.8,)</versionRange>
913 <goal>build-classpath</goal>
915 </pluginExecutionFilter>
921 </lifecycleMappingMetadata>