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.
23 <modelVersion>4.0.0</modelVersion>
25 <artifactId>hbase-build-configuration</artifactId>
26 <groupId>org.apache.hbase</groupId>
27 <version>3.0.0-SNAPSHOT</version>
28 <relativePath>../hbase-build-configuration</relativePath>
30 <artifactId>hbase-server</artifactId>
31 <name>Apache HBase - Server</name>
32 <description>Server functionality for HBase</description>
34 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
35 <license.bundles.logo>true</license.bundles.logo>
36 <license.bundles.bootstrap>true</license.bundles.bootstrap>
37 <license.bundles.jquery>true</license.bundles.jquery>
40 <!-- Make sure resources get added before they are processed
44 <!-- Add the build webabpps to the classpth -->
46 <directory>${project.build.directory}</directory>
48 <include>hbase-webapps/**</include>
53 <!-- Our test artifact has different license info than our source/bin ones -->
55 <directory>src/test/resources/META-INF/</directory>
56 <targetPath>META-INF/</targetPath>
58 <include>NOTICE</include>
60 <filtering>true</filtering>
63 <directory>src/test/resources</directory>
65 <include>**/**</include>
70 <!-- licensing info from our bundled works -->
72 <groupId>org.apache.maven.plugins</groupId>
73 <artifactId>maven-remote-resources-plugin</artifactId>
74 <version>1.5</version>
76 <!-- resource bundle only needed at build time -->
78 <groupId>org.apache.hbase</groupId>
79 <artifactId>hbase-resource-bundle</artifactId>
80 <version>${project.version}</version>
87 <attachToTest>false</attachToTest>
89 <copyright-end-year>${build.year}</copyright-end-year>
90 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
91 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
92 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
93 <bundled-logo>${license.bundles.logo}</bundled-logo>
94 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
97 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
99 <supplementalModelArtifacts>
100 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
101 </supplementalModelArtifacts>
103 <supplementalModel>supplemental-models.xml</supplementalModel>
104 </supplementalModels>
109 <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
110 tests (this is needed for upstream projects whose tests need this jar simply for
113 <!--Make it so assembly:single does nothing in here-->
114 <artifactId>maven-assembly-plugin</artifactId>
116 <skipAssembly>true</skipAssembly>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-jar-plugin</artifactId>
123 <!-- Exclude these 2 packages, because their dependency _binary_ files
124 include the sources, and Maven 2.2 appears to add them to the sources to compile,
127 <exclude>org/apache/jute/**</exclude>
128 <exclude>org/apache/zookeeper/**</exclude>
129 <exclude>**/*.jsp</exclude>
130 <exclude>hbase-site.xml</exclude>
131 <exclude>hdfs-site.xml</exclude>
132 <exclude>log4j.properties</exclude>
133 <exclude>mapred-queues.xml</exclude>
134 <exclude>mapred-site.xml</exclude>
138 <!-- General ant tasks, bound to different build phases -->
140 <artifactId>maven-antrun-plugin</artifactId>
142 <!-- Generate web app sources -->
145 <phase>generate-sources</phase>
148 <property name="build.webapps" location="${project.build.directory}/hbase-webapps"/>
149 <property name="src.webapps" location="${basedir}/src/main/resources/hbase-webapps"/>
150 <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
151 <mkdir dir="${build.webapps}"/>
152 <copy todir="${build.webapps}">
153 <fileset dir="${src.webapps}">
154 <exclude name="**/*.jsp"/>
155 <exclude name="**/.*"/>
156 <exclude name="**/*~"/>
159 <!--The compile.classpath is passed in by maven -->
160 <taskdef classname="org.apache.jasper.JspC" name="jspcompiler" classpathref="maven.compile.classpath"/>
161 <mkdir dir="${build.webapps}/master/WEB-INF"/>
162 <jspcompiler uriroot="${src.webapps}/master" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.master" webxml="${build.webapps}/master/WEB-INF/web.xml"/>
163 <mkdir dir="${build.webapps}/regionserver/WEB-INF"/>
164 <jspcompiler uriroot="${src.webapps}/regionserver" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.regionserver" webxml="${build.webapps}/regionserver/WEB-INF/web.xml"/>
174 <groupId>org.codehaus.mojo</groupId>
175 <artifactId>build-helper-maven-plugin</artifactId>
177 <!-- Add the generated sources -->
179 <id>jspcSource-packageInfo-source</id>
180 <phase>generate-sources</phase>
182 <goal>add-source</goal>
186 <source>${project.build.directory}/generated-jamon</source>
187 <source>${project.build.directory}/generated-sources/java</source>
194 <groupId>org.jamon</groupId>
195 <artifactId>jamon-maven-plugin</artifactId>
198 <phase>generate-sources</phase>
200 <goal>translate</goal>
203 <templateSourceDir>src/main/jamon</templateSourceDir>
204 <templateOutputDir>target/generated-jamon</templateOutputDir>
209 <!-- General plugins -->
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-eclipse-plugin</artifactId>
214 <additionalProjectnatures>
215 <projectnature>org.jamon.project.jamonnature</projectnature>
216 </additionalProjectnatures>
218 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
219 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
220 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
224 <name>.settings/org.jamon.prefs</name>
226 eclipse.preferences.version=1
227 templateSourceDir=src/main/jamon
228 templateOutputDir=target/generated-jamon
234 <!-- Run findbugs -->
236 <groupId>org.codehaus.mojo</groupId>
237 <artifactId>findbugs-maven-plugin</artifactId>
239 <!-- Testing plugins -->
241 <artifactId>maven-surefire-plugin</artifactId>
243 <systemPropertyVariables>
244 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
245 </systemPropertyVariables>
249 <groupId>net.revelc.code</groupId>
250 <artifactId>warbucks-maven-plugin</artifactId>
253 <!-- General Resources -->
256 <!--This plugin's configuration is used to store Eclipse m2e settings
257 only. It has no influence on the Maven build itself and needs to
258 be kept in plugin management, not in the actual plugins. -->
260 <groupId>org.eclipse.m2e</groupId>
261 <artifactId>lifecycle-mapping</artifactId>
263 <lifecycleMappingMetadata>
266 <pluginExecutionFilter>
267 <groupId>org.jamon</groupId>
268 <artifactId>jamon-maven-plugin</artifactId>
269 <versionRange>[2.3.4,)</versionRange>
271 <goal>translate</goal>
273 </pluginExecutionFilter>
276 <runOnIncremental>false</runOnIncremental>
277 <runOnConfiguration>true</runOnConfiguration>
282 <pluginExecutionFilter>
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-antrun-plugin</artifactId>
285 <versionRange>[1.6,)</versionRange>
289 </pluginExecutionFilter>
292 <runOnIncremental>false</runOnIncremental>
293 <runOnConfiguration>true</runOnConfiguration>
298 <pluginExecutionFilter>
299 <groupId>org.apache.maven.plugins</groupId>
300 <artifactId>maven-dependency-plugin</artifactId>
301 <versionRange>[2.8,)</versionRange>
303 <goal>build-classpath</goal>
305 </pluginExecutionFilter>
311 </lifecycleMappingMetadata>
319 <groupId>org.apache.hbase.thirdparty</groupId>
320 <artifactId>hbase-shaded-protobuf</artifactId>
323 <groupId>org.apache.hbase.thirdparty</groupId>
324 <artifactId>hbase-shaded-netty</artifactId>
327 <groupId>org.apache.hbase.thirdparty</groupId>
328 <artifactId>hbase-shaded-miscellaneous</artifactId>
330 <!-- Intra-project dependencies -->
332 <groupId>org.apache.hbase</groupId>
333 <artifactId>hbase-common</artifactId>
336 <groupId>org.apache.hbase</groupId>
337 <artifactId>hbase-http</artifactId>
340 <groupId>org.apache.hbase</groupId>
341 <artifactId>hbase-http</artifactId>
342 <type>test-jar</type>
346 <!--Needed by the visiblity tags and acl CPEP things
347 in here in hbase-server (that should be out in hbase-endpoints
349 <groupId>org.apache.hbase</groupId>
350 <artifactId>hbase-protocol</artifactId>
353 <groupId>org.apache.hbase</groupId>
354 <artifactId>hbase-protocol-shaded</artifactId>
357 <groupId>org.apache.hbase</groupId>
358 <artifactId>hbase-procedure</artifactId>
361 <groupId>org.apache.hbase</groupId>
362 <artifactId>hbase-client</artifactId>
365 <groupId>org.apache.hbase</groupId>
366 <artifactId>hbase-zookeeper</artifactId>
369 <groupId>org.apache.hbase</groupId>
370 <artifactId>hbase-replication</artifactId>
373 <groupId>org.apache.hbase</groupId>
374 <artifactId>hbase-common</artifactId>
375 <type>test-jar</type>
379 <groupId>org.apache.hbase</groupId>
380 <artifactId>hbase-annotations</artifactId>
381 <type>test-jar</type>
385 <groupId>org.apache.hbase</groupId>
386 <artifactId>hbase-procedure</artifactId>
387 <type>test-jar</type>
391 <groupId>org.apache.hbase</groupId>
392 <artifactId>hbase-zookeeper</artifactId>
393 <type>test-jar</type>
397 <groupId>org.apache.hbase</groupId>
398 <artifactId>hbase-metrics-api</artifactId>
401 <groupId>org.apache.hbase</groupId>
402 <artifactId>hbase-metrics</artifactId>
405 <groupId>commons-codec</groupId>
406 <artifactId>commons-codec</artifactId>
409 <groupId>org.apache.hbase</groupId>
410 <artifactId>hbase-hadoop-compat</artifactId>
413 <groupId>org.apache.hbase</groupId>
414 <artifactId>hbase-hadoop-compat</artifactId>
415 <type>test-jar</type>
419 <groupId>org.apache.hbase</groupId>
420 <artifactId>${compat.module}</artifactId>
421 <version>${project.version}</version>
424 <groupId>org.apache.hbase</groupId>
425 <artifactId>${compat.module}</artifactId>
426 <version>${project.version}</version>
427 <type>test-jar</type>
431 <groupId>org.eclipse.jetty</groupId>
432 <artifactId>jetty-server</artifactId>
435 <groupId>org.eclipse.jetty</groupId>
436 <artifactId>jetty-servlet</artifactId>
439 <groupId>org.eclipse.jetty</groupId>
440 <artifactId>jetty-webapp</artifactId>
443 <!-- For JspC used in ant task, then needed at compile /runtime
444 because the source code made from the JSP refers to its runtime
446 <groupId>org.glassfish.web</groupId>
447 <artifactId>javax.servlet.jsp</artifactId>
449 <!-- Also used by generated sources from our JSP -->
451 <groupId>javax.servlet.jsp</groupId>
452 <artifactId>javax.servlet.jsp-api</artifactId>
454 <!-- General dependencies -->
456 <groupId>com.github.stephenc.findbugs</groupId>
457 <artifactId>findbugs-annotations</artifactId>
458 <optional>true</optional>
461 <groupId>io.dropwizard.metrics</groupId>
462 <artifactId>metrics-core</artifactId>
465 <groupId>com.google.protobuf</groupId>
466 <artifactId>protobuf-java</artifactId>
469 <groupId>commons-io</groupId>
470 <artifactId>commons-io</artifactId>
473 <groupId>org.apache.commons</groupId>
474 <artifactId>commons-lang3</artifactId>
477 <groupId>org.slf4j</groupId>
478 <artifactId>slf4j-api</artifactId>
481 <groupId>org.apache.commons</groupId>
482 <artifactId>commons-math3</artifactId>
485 <groupId>org.slf4j</groupId>
486 <artifactId>slf4j-log4j12</artifactId>
489 <groupId>log4j</groupId>
490 <artifactId>log4j</artifactId>
493 <groupId>org.apache.zookeeper</groupId>
494 <artifactId>zookeeper</artifactId>
497 <groupId>org.jamon</groupId>
498 <artifactId>jamon-runtime</artifactId>
501 <groupId>javax.servlet</groupId>
502 <artifactId>javax.servlet-api</artifactId>
504 <!-- Jackson only used in compile/runtime scope by BlockCacheUtil class
505 also used by some tests
508 <groupId>com.fasterxml.jackson.core</groupId>
509 <artifactId>jackson-databind</artifactId>
512 <groupId>com.fasterxml.jackson.core</groupId>
513 <artifactId>jackson-core</artifactId>
516 <groupId>com.fasterxml.jackson.core</groupId>
517 <artifactId>jackson-annotations</artifactId>
520 <!-- tracing Dependencies -->
522 <groupId>org.apache.htrace</groupId>
523 <artifactId>htrace-core4</artifactId>
526 <groupId>com.lmax</groupId>
527 <artifactId>disruptor</artifactId>
529 <!-- Test dependencies -->
531 <groupId>org.hamcrest</groupId>
532 <artifactId>hamcrest-core</artifactId>
536 <groupId>org.apache.hadoop</groupId>
537 <artifactId>hadoop-minikdc</artifactId>
541 <groupId>org.bouncycastle</groupId>
542 <artifactId>bcprov-jdk16</artifactId>
546 <groupId>org.apache.kerby</groupId>
547 <artifactId>kerb-client</artifactId>
551 <groupId>org.apache.kerby</groupId>
552 <artifactId>kerb-simplekdc</artifactId>
556 <groupId>org.apache.httpcomponents</groupId>
557 <artifactId>httpclient</artifactId>
561 <groupId>org.apache.httpcomponents</groupId>
562 <artifactId>httpcore</artifactId>
565 <!-- commons-logging is used by HBTU to monkey with log levels
566 have to put it at compile scope because Hadoop's IOUtils uses it
567 both for hadoop 2.7 and 3.0, so we'll fail at compile if it's at test scope.
570 <groupId>commons-logging</groupId>
571 <artifactId>commons-logging</artifactId>
572 <scope>compile</scope>
575 <groupId>org.apache.commons</groupId>
576 <artifactId>commons-crypto</artifactId>
577 <version>${commons-crypto.version}</version>
580 <groupId>net.java.dev.jna</groupId>
581 <artifactId>jna</artifactId>
586 <groupId>junit</groupId>
587 <artifactId>junit</artifactId>
591 <groupId>org.mockito</groupId>
592 <artifactId>mockito-core</artifactId>
597 <!-- Needs to make the profile in apache parent pom -->
599 <id>apache-release</id>
603 <groupId>org.apache.maven.plugins</groupId>
604 <artifactId>maven-resources-plugin</artifactId>
607 <id>license-javadocs</id>
608 <phase>prepare-package</phase>
610 <goal>copy-resources</goal>
613 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
616 <directory>src/main/javadoc/META-INF/</directory>
617 <targetPath>META-INF/</targetPath>
619 <include>LICENSE</include>
620 <include>NOTICE</include>
622 <filtering>true</filtering>
632 <!-- Skip the tests in this module -->
634 <id>skipServerTests</id>
637 <name>skipServerTests</name>
641 <surefire.skipFirstPart>true</surefire.skipFirstPart>
642 <surefire.skipSecondPart>true</surefire.skipSecondPart>
645 <!-- Special builds -->
649 <activeByDefault>false</activeByDefault>
654 <groupId>org.apache.maven.plugins</groupId>
655 <artifactId>maven-antrun-plugin</artifactId>
659 <phase>compile</phase>
660 <goals><goal>run</goal></goals>
663 <mkdir dir="${project.build.directory}/native"/>
664 <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
665 <arg line="${basedir}/src/main/native -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
667 <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
668 <arg line="VERBOSE=1"/>
678 <!-- Profiles for building against different hadoop versions -->
679 <!-- There are a lot of common dependencies used here, should investigate
680 if we can combine these profiles somehow -->
682 <!-- profile for building against Hadoop 2.x. This is the default. -->
687 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
688 <!--h2--><name>!hadoop.profile</name>
693 <groupId>org.apache.hadoop</groupId>
694 <artifactId>hadoop-common</artifactId>
697 <groupId>org.apache.hadoop</groupId>
698 <artifactId>hadoop-mapreduce-client-core</artifactId>
701 <groupId>com.google.guava</groupId>
702 <artifactId>guava</artifactId>
707 <groupId>org.apache.hadoop</groupId>
708 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
709 <type>test-jar</type>
713 <groupId>com.google.guava</groupId>
714 <artifactId>guava</artifactId>
719 <groupId>org.apache.hadoop</groupId>
720 <artifactId>hadoop-hdfs</artifactId>
723 <groupId>org.apache.hadoop</groupId>
724 <artifactId>hadoop-hdfs</artifactId>
725 <type>test-jar</type>
729 <groupId>org.apache.hadoop</groupId>
730 <artifactId>hadoop-minicluster</artifactId>
734 <groupId>com.google.guava</groupId>
735 <artifactId>guava</artifactId>
738 <groupId>org.apache.zookeeper</groupId>
739 <artifactId>zookeeper</artifactId>
743 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
745 <groupId>io.netty</groupId>
746 <artifactId>netty</artifactId>
747 <version>${netty.hadoop.version}</version>
754 <artifactId>maven-dependency-plugin</artifactId>
757 <id>create-mrapp-generated-classpath</id>
758 <phase>generate-test-resources</phase>
760 <goal>build-classpath</goal>
763 <!-- needed to run the unit test for DS to generate
764 the required classpath that is required in the env
765 of the launch container in the mini mr/yarn cluster
767 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
776 profile for building against Hadoop 3.0.x. Activate using:
777 mvn -Dhadoop.profile=3.0
783 <name>hadoop.profile</name>
789 <groupId>org.apache.hadoop</groupId>
790 <artifactId>hadoop-common</artifactId>
793 <groupId>org.apache.hadoop</groupId>
794 <artifactId>hadoop-hdfs</artifactId>
797 <groupId>org.apache.hadoop</groupId>
798 <artifactId>hadoop-hdfs-client</artifactId>
799 <version>${hadoop.version}</version>
802 <groupId>org.apache.hadoop</groupId>
803 <artifactId>hadoop-mapreduce-client-core</artifactId>
806 <groupId>org.apache.hadoop</groupId>
807 <artifactId>hadoop-hdfs</artifactId>
808 <type>test-jar</type>
812 <groupId>org.apache.hadoop</groupId>
813 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
814 <type>test-jar</type>
818 <groupId>org.apache.hadoop</groupId>
819 <artifactId>hadoop-minicluster</artifactId>
822 <!-- Hadoop needs Netty 3.x at test scope for the minicluster>
824 <groupId>io.netty</groupId>
825 <artifactId>netty</artifactId>
826 <version>${netty.hadoop.version}</version>
833 <artifactId>maven-dependency-plugin</artifactId>
836 <id>create-mrapp-generated-classpath</id>
837 <phase>generate-test-resources</phase>
839 <goal>build-classpath</goal>
842 <!-- needed to run the unit test for DS to generate
843 the required classpath that is required in the env
844 of the launch container in the mini mr/yarn cluster
846 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>