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>
52 <!-- Our test artifact has different license info than our source/bin ones -->
54 <directory>src/test/resources/META-INF/</directory>
55 <targetPath>META-INF/</targetPath>
57 <include>NOTICE</include>
59 <filtering>true</filtering>
62 <directory>src/test/resources</directory>
64 <include>**/**</include>
69 <!-- licensing info from our bundled works -->
71 <groupId>org.apache.maven.plugins</groupId>
72 <artifactId>maven-remote-resources-plugin</artifactId>
74 <!-- resource bundle only needed at build time -->
76 <groupId>org.apache.hbase</groupId>
77 <artifactId>hbase-resource-bundle</artifactId>
78 <version>${project.version}</version>
85 <attachToTest>false</attachToTest>
87 <copyright-end-year>${build.year}</copyright-end-year>
88 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
89 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
90 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
91 <bundled-logo>${license.bundles.logo}</bundled-logo>
92 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
95 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
97 <supplementalModelArtifacts>
98 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
99 </supplementalModelArtifacts>
101 <supplementalModel>supplemental-models.xml</supplementalModel>
102 </supplementalModels>
107 <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
108 tests (this is needed for upstream projects whose tests need this jar simply for
111 <!--Make it so assembly:single does nothing in here-->
112 <artifactId>maven-assembly-plugin</artifactId>
114 <skipAssembly>true</skipAssembly>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-jar-plugin</artifactId>
121 <!-- Exclude these 2 packages, because their dependency _binary_ files
122 include the sources, and Maven 2.2 appears to add them to the sources to compile,
125 <exclude>org/apache/jute/**</exclude>
126 <exclude>org/apache/zookeeper/**</exclude>
127 <exclude>**/*.jsp</exclude>
128 <exclude>hbase-site.xml</exclude>
129 <exclude>hdfs-site.xml</exclude>
130 <exclude>log4j.properties</exclude>
131 <exclude>mapred-queues.xml</exclude>
132 <exclude>mapred-site.xml</exclude>
136 <!-- General ant tasks, bound to different build phases -->
138 <artifactId>maven-antrun-plugin</artifactId>
140 <!-- Generate web app sources -->
143 <phase>generate-sources</phase>
146 <property name="build.webapps" location="${project.build.directory}/hbase-webapps"/>
147 <property name="src.webapps" location="${basedir}/src/main/resources/hbase-webapps"/>
148 <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
149 <mkdir dir="${build.webapps}"/>
150 <copy todir="${build.webapps}">
151 <fileset dir="${src.webapps}">
152 <exclude name="**/*.jsp"/>
153 <exclude name="**/.*"/>
154 <exclude name="**/*~"/>
157 <!--The compile.classpath is passed in by maven -->
158 <taskdef classname="org.apache.jasper.JspC" name="jspcompiler" classpathref="maven.compile.classpath"/>
159 <mkdir dir="${build.webapps}/master/WEB-INF"/>
160 <jspcompiler uriroot="${src.webapps}/master" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.master" webxml="${build.webapps}/master/WEB-INF/web.xml"/>
161 <mkdir dir="${build.webapps}/regionserver/WEB-INF"/>
162 <jspcompiler uriroot="${src.webapps}/regionserver" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.regionserver" webxml="${build.webapps}/regionserver/WEB-INF/web.xml"/>
172 <groupId>org.codehaus.mojo</groupId>
173 <artifactId>build-helper-maven-plugin</artifactId>
175 <!-- Add the generated sources -->
177 <id>jspcSource-packageInfo-source</id>
178 <phase>generate-sources</phase>
180 <goal>add-source</goal>
184 <source>${project.build.directory}/generated-jamon</source>
185 <source>${project.build.directory}/generated-sources/java</source>
192 <groupId>org.jamon</groupId>
193 <artifactId>jamon-maven-plugin</artifactId>
196 <phase>generate-sources</phase>
198 <goal>translate</goal>
201 <templateSourceDir>src/main/jamon</templateSourceDir>
202 <templateOutputDir>target/generated-jamon</templateOutputDir>
207 <!-- Run findbugs -->
209 <groupId>org.codehaus.mojo</groupId>
210 <artifactId>findbugs-maven-plugin</artifactId>
212 <!-- Testing plugins -->
214 <artifactId>maven-surefire-plugin</artifactId>
216 <systemPropertyVariables>
217 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
218 </systemPropertyVariables>
222 <groupId>net.revelc.code</groupId>
223 <artifactId>warbucks-maven-plugin</artifactId>
229 <groupId>org.apache.hbase.thirdparty</groupId>
230 <artifactId>hbase-shaded-protobuf</artifactId>
233 <groupId>org.apache.hbase.thirdparty</groupId>
234 <artifactId>hbase-shaded-netty</artifactId>
237 <groupId>org.apache.hbase.thirdparty</groupId>
238 <artifactId>hbase-shaded-miscellaneous</artifactId>
240 <!-- Intra-project dependencies -->
242 <groupId>org.apache.hbase</groupId>
243 <artifactId>hbase-common</artifactId>
246 <groupId>org.apache.hbase</groupId>
247 <artifactId>hbase-http</artifactId>
250 <groupId>org.codehaus.jackson</groupId>
251 <artifactId>jackson-core-asl</artifactId>
256 <groupId>org.apache.hbase</groupId>
257 <artifactId>hbase-http</artifactId>
258 <type>test-jar</type>
262 <!--Needed by the visiblity tags and acl CPEP things
263 in here in hbase-server (that should be out in hbase-endpoints
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-procedure</artifactId>
277 <groupId>org.apache.hbase</groupId>
278 <artifactId>hbase-client</artifactId>
281 <groupId>org.apache.hbase</groupId>
282 <artifactId>hbase-zookeeper</artifactId>
285 <groupId>org.apache.hbase</groupId>
286 <artifactId>hbase-replication</artifactId>
289 <groupId>org.apache.hbase</groupId>
290 <artifactId>hbase-common</artifactId>
291 <type>test-jar</type>
295 <groupId>org.apache.hbase</groupId>
296 <artifactId>hbase-annotations</artifactId>
297 <type>test-jar</type>
301 <groupId>org.apache.hbase</groupId>
302 <artifactId>hbase-procedure</artifactId>
303 <type>test-jar</type>
307 <groupId>org.apache.hbase</groupId>
308 <artifactId>hbase-zookeeper</artifactId>
309 <type>test-jar</type>
313 <groupId>org.apache.hbase</groupId>
314 <artifactId>hbase-metrics-api</artifactId>
317 <groupId>org.apache.hbase</groupId>
318 <artifactId>hbase-metrics</artifactId>
321 <groupId>commons-codec</groupId>
322 <artifactId>commons-codec</artifactId>
325 <groupId>org.apache.hbase</groupId>
326 <artifactId>hbase-hadoop-compat</artifactId>
329 <groupId>org.apache.hbase</groupId>
330 <artifactId>hbase-hadoop-compat</artifactId>
331 <type>test-jar</type>
335 <groupId>org.apache.hbase</groupId>
336 <artifactId>${compat.module}</artifactId>
337 <version>${project.version}</version>
340 <groupId>org.apache.hbase</groupId>
341 <artifactId>${compat.module}</artifactId>
342 <version>${project.version}</version>
343 <type>test-jar</type>
347 <groupId>org.eclipse.jetty</groupId>
348 <artifactId>jetty-server</artifactId>
351 <groupId>org.eclipse.jetty</groupId>
352 <artifactId>jetty-servlet</artifactId>
355 <groupId>org.eclipse.jetty</groupId>
356 <artifactId>jetty-webapp</artifactId>
359 <!-- For JspC used in ant task, then needed at compile /runtime
360 because the source code made from the JSP refers to its runtime
362 <groupId>org.glassfish.web</groupId>
363 <artifactId>javax.servlet.jsp</artifactId>
365 <!-- Also used by generated sources from our JSP -->
367 <groupId>javax.servlet.jsp</groupId>
368 <artifactId>javax.servlet.jsp-api</artifactId>
370 <!-- General dependencies -->
372 <groupId>com.github.stephenc.findbugs</groupId>
373 <artifactId>findbugs-annotations</artifactId>
374 <optional>true</optional>
377 <groupId>com.github.ben-manes.caffeine</groupId>
378 <artifactId>caffeine</artifactId>
381 <groupId>io.dropwizard.metrics</groupId>
382 <artifactId>metrics-core</artifactId>
385 <groupId>com.google.protobuf</groupId>
386 <artifactId>protobuf-java</artifactId>
389 <groupId>commons-io</groupId>
390 <artifactId>commons-io</artifactId>
393 <groupId>org.apache.commons</groupId>
394 <artifactId>commons-lang3</artifactId>
397 <groupId>org.slf4j</groupId>
398 <artifactId>slf4j-api</artifactId>
401 <groupId>org.apache.commons</groupId>
402 <artifactId>commons-math3</artifactId>
405 <groupId>org.slf4j</groupId>
406 <artifactId>slf4j-log4j12</artifactId>
409 <groupId>log4j</groupId>
410 <artifactId>log4j</artifactId>
413 <groupId>org.apache.zookeeper</groupId>
414 <artifactId>zookeeper</artifactId>
417 <groupId>org.jamon</groupId>
418 <artifactId>jamon-runtime</artifactId>
421 <groupId>javax.servlet</groupId>
422 <artifactId>javax.servlet-api</artifactId>
424 <!-- tracing Dependencies -->
426 <groupId>org.apache.htrace</groupId>
427 <artifactId>htrace-core4</artifactId>
430 <groupId>com.lmax</groupId>
431 <artifactId>disruptor</artifactId>
433 <!-- Test dependencies -->
435 <groupId>org.hamcrest</groupId>
436 <artifactId>hamcrest-core</artifactId>
440 <groupId>org.bouncycastle</groupId>
441 <artifactId>bcprov-jdk15on</artifactId>
445 <groupId>org.apache.hadoop</groupId>
446 <artifactId>hadoop-minikdc</artifactId>
450 <groupId>bouncycastle</groupId>
451 <artifactId>bcprov-jdk15</artifactId>
456 <groupId>org.apache.kerby</groupId>
457 <artifactId>kerb-client</artifactId>
461 <groupId>org.apache.kerby</groupId>
462 <artifactId>kerb-simplekdc</artifactId>
466 <groupId>org.apache.httpcomponents</groupId>
467 <artifactId>httpclient</artifactId>
471 <groupId>org.apache.httpcomponents</groupId>
472 <artifactId>httpcore</artifactId>
475 <!-- commons-logging is used by HBTU to monkey with log levels
476 have to put it at compile scope because Hadoop's IOUtils uses it
477 both for hadoop 2.7 and 3.0, so we'll fail at compile if it's at test scope.
480 <groupId>commons-logging</groupId>
481 <artifactId>commons-logging</artifactId>
482 <scope>compile</scope>
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>
506 <!-- Needs to make the profile in apache parent pom -->
508 <id>apache-release</id>
512 <groupId>org.apache.maven.plugins</groupId>
513 <artifactId>maven-resources-plugin</artifactId>
516 <id>license-javadocs</id>
517 <phase>prepare-package</phase>
519 <goal>copy-resources</goal>
522 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
525 <directory>src/main/javadoc/META-INF/</directory>
526 <targetPath>META-INF/</targetPath>
528 <include>LICENSE</include>
529 <include>NOTICE</include>
531 <filtering>true</filtering>
541 <!-- Skip the tests in this module -->
543 <id>skipServerTests</id>
546 <name>skipServerTests</name>
550 <surefire.skipFirstPart>true</surefire.skipFirstPart>
551 <surefire.skipSecondPart>true</surefire.skipSecondPart>
554 <!-- Special builds -->
558 <activeByDefault>false</activeByDefault>
563 <groupId>org.apache.maven.plugins</groupId>
564 <artifactId>maven-antrun-plugin</artifactId>
568 <phase>compile</phase>
569 <goals><goal>run</goal></goals>
572 <mkdir dir="${project.build.directory}/native"/>
573 <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
574 <arg line="${basedir}/src/main/native -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
576 <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
577 <arg line="VERBOSE=1"/>
587 <!-- Profiles for building against different hadoop versions -->
588 <!-- There are a lot of common dependencies used here, should investigate
589 if we can combine these profiles somehow -->
591 <!-- profile for building against Hadoop 2.x. This is the default. -->
596 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
597 <!--h2--><name>!hadoop.profile</name>
602 <groupId>org.apache.hadoop</groupId>
603 <artifactId>hadoop-distcp</artifactId>
604 <!--This dependency is not in top-level pom so needs
606 <version>${hadoop-two.version}</version>
609 <groupId>org.apache.hadoop</groupId>
610 <artifactId>hadoop-common</artifactId>
613 <groupId>org.apache.hadoop</groupId>
614 <artifactId>hadoop-auth</artifactId>
617 <groupId>org.apache.hadoop</groupId>
618 <artifactId>hadoop-annotations</artifactId>
621 <groupId>org.apache.hadoop</groupId>
622 <artifactId>hadoop-mapreduce-client-core</artifactId>
625 <groupId>com.google.guava</groupId>
626 <artifactId>guava</artifactId>
631 <groupId>org.apache.hadoop</groupId>
632 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
633 <type>test-jar</type>
637 <groupId>com.google.guava</groupId>
638 <artifactId>guava</artifactId>
643 <groupId>org.apache.hadoop</groupId>
644 <artifactId>hadoop-hdfs</artifactId>
647 <groupId>org.apache.hadoop</groupId>
648 <artifactId>hadoop-hdfs</artifactId>
649 <type>test-jar</type>
653 <groupId>org.apache.hadoop</groupId>
654 <artifactId>hadoop-minicluster</artifactId>
658 <groupId>com.google.guava</groupId>
659 <artifactId>guava</artifactId>
662 <groupId>org.apache.zookeeper</groupId>
663 <artifactId>zookeeper</artifactId>
667 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
669 <groupId>io.netty</groupId>
670 <artifactId>netty</artifactId>
671 <version>${netty.hadoop.version}</version>
678 <artifactId>maven-dependency-plugin</artifactId>
681 <id>create-mrapp-generated-classpath</id>
682 <phase>generate-test-resources</phase>
684 <goal>build-classpath</goal>
687 <!-- needed to run the unit test for DS to generate
688 the required classpath that is required in the env
689 of the launch container in the mini mr/yarn cluster
691 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
700 profile for building against Hadoop 3.0.x. Activate using:
701 mvn -Dhadoop.profile=3.0
707 <name>hadoop.profile</name>
713 <groupId>org.apache.hadoop</groupId>
714 <artifactId>hadoop-distcp</artifactId>
715 <!--This dependency is not in top-level pom so needs
717 <version>${hadoop-three.version}</version>
720 <groupId>org.apache.hadoop</groupId>
721 <artifactId>hadoop-common</artifactId>
724 <groupId>org.apache.hadoop</groupId>
725 <artifactId>hadoop-hdfs</artifactId>
728 <groupId>org.apache.hadoop</groupId>
729 <artifactId>hadoop-hdfs-client</artifactId>
730 <version>${hadoop.version}</version>
733 <groupId>org.apache.hadoop</groupId>
734 <artifactId>hadoop-mapreduce-client-core</artifactId>
737 <groupId>org.apache.hadoop</groupId>
738 <artifactId>hadoop-hdfs</artifactId>
739 <type>test-jar</type>
743 <groupId>org.apache.hadoop</groupId>
744 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
745 <type>test-jar</type>
749 <groupId>org.apache.hadoop</groupId>
750 <artifactId>hadoop-annotations</artifactId>
753 <groupId>org.apache.hadoop</groupId>
754 <artifactId>hadoop-minicluster</artifactId>
757 <!-- Hadoop needs Netty 3.x at test scope for the minicluster>
759 <groupId>io.netty</groupId>
760 <artifactId>netty</artifactId>
761 <version>${netty.hadoop.version}</version>
768 <artifactId>maven-dependency-plugin</artifactId>
771 <id>create-mrapp-generated-classpath</id>
772 <phase>generate-test-resources</phase>
774 <goal>build-classpath</goal>
777 <!-- needed to run the unit test for DS to generate
778 the required classpath that is required in the env
779 of the launch container in the mini mr/yarn cluster
781 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
790 <id>eclipse-specific</id>
793 <name>m2e.version</name>
799 <groupId>org.apache.maven.plugins</groupId>
800 <artifactId>maven-eclipse-plugin</artifactId>
802 <additionalProjectnatures>
803 <projectnature>org.jamon.project.jamonnature</projectnature>
804 </additionalProjectnatures>
806 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
807 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
808 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
812 <name>.settings/org.jamon.prefs</name>
814 eclipse.preferences.version=1
815 templateSourceDir=src/main/jamon
816 templateOutputDir=target/generated-jamon
825 <!--This plugin's configuration is used to store Eclipse m2e settings
826 only. It has no influence on the Maven build itself and needs to
827 be kept in plugin management, not in the actual plugins. -->
829 <groupId>org.eclipse.m2e</groupId>
830 <artifactId>lifecycle-mapping</artifactId>
832 <lifecycleMappingMetadata>
835 <pluginExecutionFilter>
836 <groupId>org.jamon</groupId>
837 <artifactId>jamon-maven-plugin</artifactId>
838 <versionRange>[2.3.4,)</versionRange>
840 <goal>translate</goal>
842 </pluginExecutionFilter>
845 <runOnIncremental>false</runOnIncremental>
846 <runOnConfiguration>true</runOnConfiguration>
851 <pluginExecutionFilter>
852 <groupId>org.apache.maven.plugins</groupId>
853 <artifactId>maven-antrun-plugin</artifactId>
854 <versionRange>[1.6,)</versionRange>
858 </pluginExecutionFilter>
861 <runOnIncremental>false</runOnIncremental>
862 <runOnConfiguration>true</runOnConfiguration>
867 <pluginExecutionFilter>
868 <groupId>org.apache.maven.plugins</groupId>
869 <artifactId>maven-dependency-plugin</artifactId>
870 <versionRange>[2.8,)</versionRange>
872 <goal>build-classpath</goal>
874 </pluginExecutionFilter>
880 </lifecycleMappingMetadata>