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.0</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 <!--Needed by the visiblity tags and acl CPEP things
277 in here in hbase-server (that should be out in hbase-endpoints
279 <groupId>org.apache.hbase</groupId>
280 <artifactId>hbase-protocol</artifactId>
283 <groupId>org.apache.hbase</groupId>
284 <artifactId>hbase-protocol-shaded</artifactId>
287 <groupId>org.apache.hbase</groupId>
288 <artifactId>hbase-procedure</artifactId>
291 <groupId>org.apache.hbase</groupId>
292 <artifactId>hbase-client</artifactId>
295 <groupId>org.apache.hbase</groupId>
296 <artifactId>hbase-zookeeper</artifactId>
299 <groupId>org.apache.hbase</groupId>
300 <artifactId>hbase-replication</artifactId>
303 <groupId>org.apache.hbase</groupId>
304 <artifactId>hbase-common</artifactId>
305 <type>test-jar</type>
309 <groupId>org.apache.hbase</groupId>
310 <artifactId>hbase-annotations</artifactId>
311 <type>test-jar</type>
315 <groupId>org.apache.hbase</groupId>
316 <artifactId>hbase-procedure</artifactId>
317 <type>test-jar</type>
321 <groupId>org.apache.hbase</groupId>
322 <artifactId>hbase-zookeeper</artifactId>
323 <type>test-jar</type>
327 <groupId>org.apache.hbase</groupId>
328 <artifactId>hbase-metrics-api</artifactId>
331 <groupId>org.apache.hbase</groupId>
332 <artifactId>hbase-metrics</artifactId>
335 <groupId>commons-codec</groupId>
336 <artifactId>commons-codec</artifactId>
339 <groupId>org.apache.hbase</groupId>
340 <artifactId>hbase-hadoop-compat</artifactId>
343 <groupId>org.apache.hbase</groupId>
344 <artifactId>hbase-hadoop-compat</artifactId>
345 <type>test-jar</type>
349 <groupId>org.apache.hbase</groupId>
350 <artifactId>${compat.module}</artifactId>
351 <version>${project.version}</version>
354 <groupId>org.apache.hbase</groupId>
355 <artifactId>${compat.module}</artifactId>
356 <version>${project.version}</version>
357 <type>test-jar</type>
361 <groupId>org.apache.hbase</groupId>
362 <artifactId>hbase-asyncfs</artifactId>
365 <groupId>org.apache.hbase</groupId>
366 <artifactId>hbase-asyncfs</artifactId>
367 <type>test-jar</type>
371 <!-- For JspC used in ant task, then needed at compile /runtime
372 because the source code made from the JSP refers to its runtime
374 <groupId>org.glassfish.web</groupId>
375 <artifactId>javax.servlet.jsp</artifactId>
377 <!-- Also used by generated sources from our JSP -->
379 <groupId>javax.servlet.jsp</groupId>
380 <artifactId>javax.servlet.jsp-api</artifactId>
382 <!-- General dependencies -->
384 <groupId>com.github.stephenc.findbugs</groupId>
385 <artifactId>findbugs-annotations</artifactId>
386 <scope>compile</scope>
387 <optional>true</optional>
390 <groupId>com.github.ben-manes.caffeine</groupId>
391 <artifactId>caffeine</artifactId>
394 <groupId>io.dropwizard.metrics</groupId>
395 <artifactId>metrics-core</artifactId>
398 <groupId>com.google.protobuf</groupId>
399 <artifactId>protobuf-java</artifactId>
402 <groupId>commons-io</groupId>
403 <artifactId>commons-io</artifactId>
406 <groupId>org.apache.commons</groupId>
407 <artifactId>commons-lang3</artifactId>
410 <groupId>org.slf4j</groupId>
411 <artifactId>slf4j-api</artifactId>
414 <groupId>org.apache.commons</groupId>
415 <artifactId>commons-math3</artifactId>
418 <groupId>org.apache.zookeeper</groupId>
419 <artifactId>zookeeper</artifactId>
422 <groupId>org.jamon</groupId>
423 <artifactId>jamon-runtime</artifactId>
426 <groupId>javax.servlet</groupId>
427 <artifactId>javax.servlet-api</artifactId>
429 <!-- tracing Dependencies -->
431 <groupId>org.apache.htrace</groupId>
432 <artifactId>htrace-core4</artifactId>
435 <groupId>com.lmax</groupId>
436 <artifactId>disruptor</artifactId>
438 <!-- Test dependencies -->
440 <groupId>org.hamcrest</groupId>
441 <artifactId>hamcrest-core</artifactId>
445 <groupId>org.hamcrest</groupId>
446 <artifactId>hamcrest-library</artifactId>
450 <groupId>org.bouncycastle</groupId>
451 <artifactId>bcprov-jdk15on</artifactId>
455 <groupId>org.apache.hadoop</groupId>
456 <artifactId>hadoop-minikdc</artifactId>
460 <groupId>bouncycastle</groupId>
461 <artifactId>bcprov-jdk15</artifactId>
466 <groupId>org.apache.kerby</groupId>
467 <artifactId>kerb-client</artifactId>
471 <groupId>org.apache.kerby</groupId>
472 <artifactId>kerb-simplekdc</artifactId>
476 <groupId>org.apache.httpcomponents</groupId>
477 <artifactId>httpclient</artifactId>
481 <groupId>org.apache.httpcomponents</groupId>
482 <artifactId>httpcore</artifactId>
486 <groupId>org.apache.commons</groupId>
487 <artifactId>commons-crypto</artifactId>
490 <groupId>net.java.dev.jna</groupId>
491 <artifactId>jna</artifactId>
496 <groupId>junit</groupId>
497 <artifactId>junit</artifactId>
501 <groupId>org.mockito</groupId>
502 <artifactId>mockito-core</artifactId>
506 <groupId>org.slf4j</groupId>
507 <artifactId>jcl-over-slf4j</artifactId>
511 <groupId>org.slf4j</groupId>
512 <artifactId>jul-to-slf4j</artifactId>
516 <groupId>org.slf4j</groupId>
517 <artifactId>slf4j-log4j12</artifactId>
521 <groupId>log4j</groupId>
522 <artifactId>log4j</artifactId>
527 <!-- Needs to make the profile in apache parent pom -->
529 <id>apache-release</id>
533 <groupId>org.apache.maven.plugins</groupId>
534 <artifactId>maven-resources-plugin</artifactId>
537 <id>license-javadocs</id>
538 <phase>prepare-package</phase>
540 <goal>copy-resources</goal>
543 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
546 <directory>src/main/javadoc/META-INF/</directory>
547 <targetPath>META-INF/</targetPath>
549 <include>LICENSE</include>
550 <include>NOTICE</include>
552 <filtering>true</filtering>
562 <!-- Skip the tests in this module -->
564 <id>skipServerTests</id>
567 <name>skipServerTests</name>
571 <surefire.skipFirstPart>true</surefire.skipFirstPart>
572 <surefire.skipSecondPart>true</surefire.skipSecondPart>
575 <!-- Special builds -->
579 <activeByDefault>false</activeByDefault>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-antrun-plugin</artifactId>
589 <phase>compile</phase>
590 <goals><goal>run</goal></goals>
593 <mkdir dir="${project.build.directory}/native"/>
594 <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
595 <arg line="${basedir}/src/main/native -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
597 <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
598 <arg line="VERBOSE=1"/>
608 <!-- Profiles for building against different hadoop versions -->
609 <!-- There are a lot of common dependencies used here, should investigate
610 if we can combine these profiles somehow -->
612 <!-- profile for building against Hadoop 2.x. This is the default. -->
617 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
618 <!--h2--><name>!hadoop.profile</name>
623 <groupId>org.apache.hadoop</groupId>
624 <artifactId>hadoop-distcp</artifactId>
627 <groupId>org.apache.hadoop</groupId>
628 <artifactId>hadoop-common</artifactId>
631 <groupId>org.apache.hadoop</groupId>
632 <artifactId>hadoop-auth</artifactId>
635 <groupId>org.apache.hadoop</groupId>
636 <artifactId>hadoop-annotations</artifactId>
639 <groupId>org.apache.hadoop</groupId>
640 <artifactId>hadoop-mapreduce-client-core</artifactId>
643 <groupId>com.google.guava</groupId>
644 <artifactId>guava</artifactId>
647 <groupId>javax.xml.bind</groupId>
648 <artifactId>java-api</artifactId>
651 <groupId>javax.xml.bind</groupId>
652 <artifactId>jaxb-api</artifactId>
657 <groupId>org.apache.hadoop</groupId>
658 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
659 <type>test-jar</type>
663 <groupId>com.google.guava</groupId>
664 <artifactId>guava</artifactId>
669 <groupId>org.apache.hadoop</groupId>
670 <artifactId>hadoop-hdfs</artifactId>
673 <groupId>org.apache.hadoop</groupId>
674 <artifactId>hadoop-hdfs</artifactId>
675 <type>test-jar</type>
679 <groupId>org.apache.hadoop</groupId>
680 <artifactId>hadoop-minicluster</artifactId>
684 <groupId>com.google.guava</groupId>
685 <artifactId>guava</artifactId>
688 <groupId>org.apache.zookeeper</groupId>
689 <artifactId>zookeeper</artifactId>
693 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
695 <groupId>io.netty</groupId>
696 <artifactId>netty</artifactId>
697 <version>${netty.hadoop.version}</version>
704 <artifactId>maven-dependency-plugin</artifactId>
707 <id>create-mrapp-generated-classpath</id>
708 <phase>generate-test-resources</phase>
710 <goal>build-classpath</goal>
713 <!-- needed to run the unit test for DS to generate
714 the required classpath that is required in the env
715 of the launch container in the mini mr/yarn cluster
717 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
726 profile for building against Hadoop 3.0.x. Activate using:
727 mvn -Dhadoop.profile=3.0
733 <name>hadoop.profile</name>
739 <groupId>org.apache.hadoop</groupId>
740 <artifactId>hadoop-distcp</artifactId>
743 <groupId>org.apache.hadoop</groupId>
744 <artifactId>hadoop-common</artifactId>
747 <groupId>org.apache.hadoop</groupId>
748 <artifactId>hadoop-hdfs</artifactId>
751 <groupId>org.apache.hadoop</groupId>
752 <artifactId>hadoop-hdfs-client</artifactId>
755 <groupId>org.apache.hadoop</groupId>
756 <artifactId>hadoop-mapreduce-client-core</artifactId>
759 <groupId>javax.xml.bind</groupId>
760 <artifactId>jaxb-api</artifactId>
763 <groupId>javax.ws.rs</groupId>
764 <artifactId>jsr311-api</artifactId>
769 <groupId>org.apache.hadoop</groupId>
770 <artifactId>hadoop-hdfs</artifactId>
771 <type>test-jar</type>
775 <groupId>org.apache.hadoop</groupId>
776 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
777 <type>test-jar</type>
781 <groupId>org.apache.hadoop</groupId>
782 <artifactId>hadoop-annotations</artifactId>
785 <groupId>org.apache.hadoop</groupId>
786 <artifactId>hadoop-minicluster</artifactId>
790 <groupId>javax.xml.bind</groupId>
791 <artifactId>jaxb-api</artifactId>
794 <groupId>javax.ws.rs</groupId>
795 <artifactId>jsr311-api</artifactId>
799 <!-- Hadoop needs Netty 3.x at test scope for the minicluster>
801 <groupId>io.netty</groupId>
802 <artifactId>netty</artifactId>
803 <version>${netty.hadoop.version}</version>
810 <artifactId>maven-dependency-plugin</artifactId>
813 <id>create-mrapp-generated-classpath</id>
814 <phase>generate-test-resources</phase>
816 <goal>build-classpath</goal>
819 <!-- needed to run the unit test for DS to generate
820 the required classpath that is required in the env
821 of the launch container in the mini mr/yarn cluster
823 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
832 <id>eclipse-specific</id>
835 <name>m2e.version</name>
841 <groupId>org.apache.maven.plugins</groupId>
842 <artifactId>maven-eclipse-plugin</artifactId>
844 <additionalProjectnatures>
845 <projectnature>org.jamon.project.jamonnature</projectnature>
846 </additionalProjectnatures>
848 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
849 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
850 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
854 <name>.settings/org.jamon.prefs</name>
856 eclipse.preferences.version=1
857 templateSourceDir=src/main/jamon
858 templateOutputDir=target/generated-jamon
867 <!--This plugin's configuration is used to store Eclipse m2e settings
868 only. It has no influence on the Maven build itself and needs to
869 be kept in plugin management, not in the actual plugins. -->
871 <groupId>org.eclipse.m2e</groupId>
872 <artifactId>lifecycle-mapping</artifactId>
874 <lifecycleMappingMetadata>
877 <pluginExecutionFilter>
878 <groupId>org.jamon</groupId>
879 <artifactId>jamon-maven-plugin</artifactId>
880 <versionRange>[2.3.4,)</versionRange>
882 <goal>translate</goal>
884 </pluginExecutionFilter>
887 <runOnIncremental>false</runOnIncremental>
888 <runOnConfiguration>true</runOnConfiguration>
893 <pluginExecutionFilter>
894 <groupId>org.apache.maven.plugins</groupId>
895 <artifactId>maven-antrun-plugin</artifactId>
896 <versionRange>[1.6,)</versionRange>
900 </pluginExecutionFilter>
903 <runOnIncremental>false</runOnIncremental>
904 <runOnConfiguration>true</runOnConfiguration>
909 <pluginExecutionFilter>
910 <groupId>org.apache.maven.plugins</groupId>
911 <artifactId>maven-dependency-plugin</artifactId>
912 <versionRange>[2.8,)</versionRange>
914 <goal>build-classpath</goal>
916 </pluginExecutionFilter>
922 </lifecycleMappingMetadata>