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.
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 <!-- Makes sure the resources get added before they are processed
40 by placing this first -->
42 <!-- Add the build webabpps to the classpth -->
44 <directory>${project.build.directory}</directory>
46 <include>hbase-webapps/**</include>
51 <!-- Our test artifact has different license info than our source/bin ones -->
53 <directory>src/test/resources/META-INF/</directory>
54 <targetPath>META-INF/</targetPath>
56 <include>NOTICE</include>
58 <filtering>true</filtering>
61 <directory>src/test/resources</directory>
63 <include>**/**</include>
69 <groupId>org.apache.maven.plugins</groupId>
70 <artifactId>maven-site-plugin</artifactId>
75 <!-- licensing info from our bundled works -->
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-remote-resources-plugin</artifactId>
79 <version>1.5</version>
84 <attachToTest>false</attachToTest>
86 <copyright-end-year>${build.year}</copyright-end-year>
87 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
88 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
89 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
90 <bundled-logo>${license.bundles.logo}</bundled-logo>
91 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
94 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
96 <supplementalModelArtifacts>
97 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
98 </supplementalModelArtifacts>
100 <supplementalModel>supplemental-models.xml</supplementalModel>
101 </supplementalModels>
106 <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
107 tests (this is needed for upstream projects whose tests need this jar simply for
110 <!--Make it so assembly:single does nothing in here-->
111 <artifactId>maven-assembly-plugin</artifactId>
113 <skipAssembly>true</skipAssembly>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-jar-plugin</artifactId>
120 <!-- Exclude these 2 packages, because their dependency _binary_ files
121 include the sources, and Maven 2.2 appears to add them to the sources to compile,
124 <exclude>org/apache/jute/**</exclude>
125 <exclude>org/apache/zookeeper/**</exclude>
126 <exclude>**/*.jsp</exclude>
127 <exclude>hbase-site.xml</exclude>
128 <exclude>hdfs-site.xml</exclude>
129 <exclude>log4j.properties</exclude>
130 <exclude>mapred-queues.xml</exclude>
131 <exclude>mapred-site.xml</exclude>
135 <!-- Make a jar and put the sources in the jar -->
137 <groupId>org.apache.maven.plugins</groupId>
138 <artifactId>maven-source-plugin</artifactId>
141 <phase>package</phase>
144 <goal>test-jar</goal>
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 <!-- General plugins -->
222 <groupId>org.apache.maven.plugins</groupId>
223 <artifactId>maven-eclipse-plugin</artifactId>
225 <additionalProjectnatures>
226 <projectnature>org.jamon.project.jamonnature</projectnature>
227 </additionalProjectnatures>
229 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
230 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
231 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
235 <name>.settings/org.jamon.prefs</name>
237 eclipse.preferences.version=1
238 templateSourceDir=src/main/jamon
239 templateOutputDir=target/generated-jamon
245 <!-- Run findbugs -->
247 <groupId>org.codehaus.mojo</groupId>
248 <artifactId>findbugs-maven-plugin</artifactId>
250 <!-- Testing plugins -->
252 <artifactId>maven-surefire-plugin</artifactId>
256 <name>listener</name>
257 <value>org.apache.hadoop.hbase.ServerResourceCheckerJUnitListener</value>
260 <systemPropertyVariables>
261 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
262 <org.apache.hadoop.hbase.shaded.io.netty.packagePrefix>org.apache.hadoop.hbase.shaded.</org.apache.hadoop.hbase.shaded.io.netty.packagePrefix>
263 </systemPropertyVariables>
267 <!-- General Resources -->
270 <!--This plugin's configuration is used to store Eclipse m2e settings
271 only. It has no influence on the Maven build itself and needs to
272 be kept in plugin management, not in the actual plugins. -->
274 <groupId>org.eclipse.m2e</groupId>
275 <artifactId>lifecycle-mapping</artifactId>
277 <lifecycleMappingMetadata>
280 <pluginExecutionFilter>
281 <groupId>org.jamon</groupId>
282 <artifactId>jamon-maven-plugin</artifactId>
283 <versionRange>[2.3.4,)</versionRange>
285 <goal>translate</goal>
287 </pluginExecutionFilter>
290 <runOnIncremental>false</runOnIncremental>
291 <runOnConfiguration>true</runOnConfiguration>
296 <pluginExecutionFilter>
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-antrun-plugin</artifactId>
299 <versionRange>[1.6,)</versionRange>
303 </pluginExecutionFilter>
306 <runOnIncremental>false</runOnIncremental>
307 <runOnConfiguration>true</runOnConfiguration>
312 <pluginExecutionFilter>
313 <groupId>org.apache.maven.plugins</groupId>
314 <artifactId>maven-dependency-plugin</artifactId>
315 <versionRange>[2.8,)</versionRange>
317 <goal>build-classpath</goal>
319 </pluginExecutionFilter>
325 <pluginExecutionFilter>
326 <groupId>org.apache.maven.plugins</groupId>
327 <artifactId>maven-compiler-plugin</artifactId>
328 <versionRange>[3.2,)</versionRange>
332 </pluginExecutionFilter>
338 </lifecycleMappingMetadata>
346 <groupId>org.apache.hbase.thirdparty</groupId>
347 <artifactId>hbase-shaded-protobuf</artifactId>
350 <groupId>org.apache.hbase.thirdparty</groupId>
351 <artifactId>hbase-shaded-netty</artifactId>
354 <groupId>org.apache.hbase.thirdparty</groupId>
355 <artifactId>hbase-shaded-miscellaneous</artifactId>
357 <!-- Intra-project dependencies -->
359 <groupId>org.apache.hbase</groupId>
360 <artifactId>hbase-common</artifactId>
363 <!--Needed by the visiblity tags and acl CPEP things
364 in here in hbase-server (that should be out in hbase-endpoints
366 <groupId>org.apache.hbase</groupId>
367 <artifactId>hbase-protocol</artifactId>
370 <groupId>org.apache.hbase</groupId>
371 <artifactId>hbase-protocol-shaded</artifactId>
374 <groupId>org.apache.hbase</groupId>
375 <artifactId>hbase-procedure</artifactId>
378 <groupId>org.apache.hbase</groupId>
379 <artifactId>hbase-client</artifactId>
382 <groupId>org.apache.hbase</groupId>
383 <artifactId>hbase-replication</artifactId>
386 <groupId>org.apache.hbase</groupId>
387 <artifactId>hbase-prefix-tree</artifactId>
388 <scope>runtime</scope>
391 <groupId>org.apache.hbase</groupId>
392 <artifactId>hbase-common</artifactId>
393 <type>test-jar</type>
397 <groupId>org.apache.hbase</groupId>
398 <artifactId>hbase-annotations</artifactId>
399 <type>test-jar</type>
403 <groupId>org.apache.hbase</groupId>
404 <artifactId>hbase-procedure</artifactId>
405 <type>test-jar</type>
409 <groupId>org.apache.hbase</groupId>
410 <artifactId>hbase-metrics-api</artifactId>
413 <groupId>org.apache.hbase</groupId>
414 <artifactId>hbase-metrics</artifactId>
416 <!-- resource bundle only needed at build time -->
418 <groupId>org.apache.hbase</groupId>
419 <artifactId>hbase-resource-bundle</artifactId>
420 <version>${project.version}</version>
421 <optional>true</optional>
424 <groupId>commons-codec</groupId>
425 <artifactId>commons-codec</artifactId>
428 <groupId>org.apache.commons</groupId>
429 <artifactId>commons-collections4</artifactId>
432 <groupId>org.apache.hbase</groupId>
433 <artifactId>hbase-hadoop-compat</artifactId>
436 <groupId>org.apache.hbase</groupId>
437 <artifactId>hbase-hadoop-compat</artifactId>
438 <type>test-jar</type>
442 <groupId>org.apache.hbase</groupId>
443 <artifactId>${compat.module}</artifactId>
444 <version>${project.version}</version>
447 <groupId>org.apache.hbase</groupId>
448 <artifactId>${compat.module}</artifactId>
449 <version>${project.version}</version>
450 <type>test-jar</type>
454 <groupId>org.eclipse.jetty</groupId>
455 <artifactId>jetty-server</artifactId>
458 <groupId>org.eclipse.jetty</groupId>
459 <artifactId>jetty-servlet</artifactId>
462 <groupId>org.eclipse.jetty</groupId>
463 <artifactId>jetty-util</artifactId>
466 <groupId>org.eclipse.jetty</groupId>
467 <artifactId>jetty-util-ajax</artifactId>
470 <groupId>org.eclipse.jetty</groupId>
471 <artifactId>jetty-jsp</artifactId>
474 <groupId>org.eclipse.jetty</groupId>
475 <artifactId>jetty-webapp</artifactId>
478 <groupId>org.eclipse.jetty</groupId>
479 <artifactId>jetty-http</artifactId>
482 <groupId>org.eclipse.jetty</groupId>
483 <artifactId>jetty-security</artifactId>
486 <groupId>com.fasterxml.jackson.core</groupId>
487 <artifactId>jackson-databind</artifactId>
490 <groupId>org.glassfish.jersey.containers</groupId>
491 <artifactId>jersey-container-servlet-core</artifactId>
494 <!--For JspC used in ant task-->
495 <groupId>org.glassfish.web</groupId>
496 <artifactId>javax.servlet.jsp</artifactId>
498 <!-- Specifically needed for jetty-jsp, included
499 to bypass version scanning that hits a bad repo
502 <groupId>org.glassfish</groupId>
503 <artifactId>javax.el</artifactId>
506 <groupId>org.codehaus.jettison</groupId>
507 <artifactId>jettison</artifactId>
510 <groupId>stax</groupId>
511 <artifactId>stax-api</artifactId>
515 <!-- General dependencies -->
517 <groupId>com.github.stephenc.findbugs</groupId>
518 <artifactId>findbugs-annotations</artifactId>
519 <optional>true</optional>
522 <groupId>io.dropwizard.metrics</groupId>
523 <artifactId>metrics-core</artifactId>
526 <groupId>com.google.protobuf</groupId>
527 <artifactId>protobuf-java</artifactId>
530 <groupId>commons-cli</groupId>
531 <artifactId>commons-cli</artifactId>
534 <groupId>commons-io</groupId>
535 <artifactId>commons-io</artifactId>
538 <groupId>org.apache.commons</groupId>
539 <artifactId>commons-lang3</artifactId>
542 <groupId>commons-logging</groupId>
543 <artifactId>commons-logging</artifactId>
546 <groupId>org.apache.commons</groupId>
547 <artifactId>commons-math3</artifactId>
550 <groupId>log4j</groupId>
551 <artifactId>log4j</artifactId>
554 <groupId>org.apache.zookeeper</groupId>
555 <artifactId>zookeeper</artifactId>
558 <groupId>org.jamon</groupId>
559 <artifactId>jamon-runtime</artifactId>
562 <groupId>javax.servlet</groupId>
563 <artifactId>javax.servlet-api</artifactId>
566 <groupId>javax.ws.rs</groupId>
567 <artifactId>javax.ws.rs-api</artifactId>
570 <!-- tracing Dependencies -->
572 <groupId>org.apache.htrace</groupId>
573 <artifactId>htrace-core</artifactId>
576 <groupId>com.lmax</groupId>
577 <artifactId>disruptor</artifactId>
579 <!-- Test dependencies -->
581 <groupId>org.hamcrest</groupId>
582 <artifactId>hamcrest-core</artifactId>
586 <groupId>org.apache.hadoop</groupId>
587 <artifactId>hadoop-minikdc</artifactId>
591 <groupId>org.bouncycastle</groupId>
592 <artifactId>bcprov-jdk16</artifactId>
596 <groupId>org.apache.kerby</groupId>
597 <artifactId>kerb-client</artifactId>
601 <groupId>org.apache.kerby</groupId>
602 <artifactId>kerb-simplekdc</artifactId>
606 <groupId>org.apache.httpcomponents</groupId>
607 <artifactId>httpclient</artifactId>
611 <groupId>org.apache.httpcomponents</groupId>
612 <artifactId>httpcore</artifactId>
616 <groupId>org.apache.commons</groupId>
617 <artifactId>commons-crypto</artifactId>
618 <version>${commons-crypto.version}</version>
621 <groupId>net.java.dev.jna</groupId>
622 <artifactId>jna</artifactId>
627 <groupId>junit</groupId>
628 <artifactId>junit</artifactId>
632 <groupId>org.mockito</groupId>
633 <artifactId>mockito-all</artifactId>
638 <!-- Needs to make the profile in apache parent pom -->
640 <id>apache-release</id>
644 <groupId>org.apache.maven.plugins</groupId>
645 <artifactId>maven-resources-plugin</artifactId>
648 <id>license-javadocs</id>
649 <phase>prepare-package</phase>
651 <goal>copy-resources</goal>
654 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
657 <directory>src/main/javadoc/META-INF/</directory>
658 <targetPath>META-INF/</targetPath>
660 <include>LICENSE</include>
661 <include>NOTICE</include>
663 <filtering>true</filtering>
673 <!-- Skip the tests in this module -->
675 <id>skipServerTests</id>
678 <name>skipServerTests</name>
682 <surefire.skipFirstPart>true</surefire.skipFirstPart>
683 <surefire.skipSecondPart>true</surefire.skipSecondPart>
686 <!-- Special builds -->
690 <activeByDefault>false</activeByDefault>
695 <groupId>org.apache.maven.plugins</groupId>
696 <artifactId>maven-antrun-plugin</artifactId>
700 <phase>compile</phase>
701 <goals><goal>run</goal></goals>
704 <mkdir dir="${project.build.directory}/native"/>
705 <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
706 <arg line="${basedir}/src/main/native -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
708 <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
709 <arg line="VERBOSE=1"/>
719 <!-- Profiles for building against different hadoop versions -->
720 <!-- There are a lot of common dependencies used here, should investigate
721 if we can combine these profiles somehow -->
723 <!-- profile for building against Hadoop 2.x. This is the default. -->
728 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
729 <!--h2--><name>!hadoop.profile</name>
734 <groupId>org.apache.hadoop</groupId>
735 <artifactId>hadoop-distcp</artifactId>
736 <version>${hadoop-two.version}</version>
739 <groupId>org.apache.hadoop</groupId>
740 <artifactId>hadoop-common</artifactId>
743 <groupId>org.apache.hadoop</groupId>
744 <artifactId>hadoop-auth</artifactId>
747 <groupId>org.apache.hadoop</groupId>
748 <artifactId>hadoop-annotations</artifactId>
749 <version>${hadoop-two.version}</version>
752 <groupId>org.apache.hadoop</groupId>
753 <artifactId>hadoop-client</artifactId>
756 <groupId>com.google.guava</groupId>
757 <artifactId>guava</artifactId>
762 <groupId>org.apache.hadoop</groupId>
763 <artifactId>hadoop-mapreduce-client-core</artifactId>
766 <groupId>com.google.guava</groupId>
767 <artifactId>guava</artifactId>
772 <groupId>org.apache.hadoop</groupId>
773 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
774 <type>test-jar</type>
778 <groupId>com.google.guava</groupId>
779 <artifactId>guava</artifactId>
784 <groupId>org.apache.hadoop</groupId>
785 <artifactId>hadoop-hdfs</artifactId>
788 <groupId>com.google.guava</groupId>
789 <artifactId>guava</artifactId>
794 <groupId>org.apache.hadoop</groupId>
795 <artifactId>hadoop-hdfs</artifactId>
796 <type>test-jar</type>
800 <groupId>com.google.guava</groupId>
801 <artifactId>guava</artifactId>
806 <groupId>org.apache.hadoop</groupId>
807 <artifactId>hadoop-minicluster</artifactId>
811 <groupId>com.google.guava</groupId>
812 <artifactId>guava</artifactId>
816 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
818 <groupId>io.netty</groupId>
819 <artifactId>netty</artifactId>
820 <version>${netty.hadoop.version}</version>
827 <artifactId>maven-dependency-plugin</artifactId>
830 <id>create-mrapp-generated-classpath</id>
831 <phase>generate-test-resources</phase>
833 <goal>build-classpath</goal>
836 <!-- needed to run the unit test for DS to generate
837 the required classpath that is required in the env
838 of the launch container in the mini mr/yarn cluster
840 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
849 profile for building against Hadoop 3.0.x. Activate using:
850 mvn -Dhadoop.profile=3.0
856 <name>hadoop.profile</name>
861 <hadoop.version>${hadoop-three.version}</hadoop.version>
865 <groupId>org.apache.hadoop</groupId>
866 <artifactId>hadoop-distcp</artifactId>
867 <version>${hadoop-three.version}</version>
870 <groupId>org.apache.hadoop</groupId>
871 <artifactId>hadoop-common</artifactId>
874 <groupId>org.apache.hadoop</groupId>
875 <artifactId>hadoop-annotations</artifactId>
876 <version>${hadoop-three.version}</version>
879 <groupId>org.apache.hadoop</groupId>
880 <artifactId>hadoop-minicluster</artifactId>
883 <groupId>com.google.guava</groupId>
884 <artifactId>guava</artifactId>
888 <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
890 <groupId>io.netty</groupId>
891 <artifactId>netty</artifactId>
892 <version>${netty.hadoop.version}</version>
899 <artifactId>maven-dependency-plugin</artifactId>
902 <id>create-mrapp-generated-classpath</id>
903 <phase>generate-test-resources</phase>
905 <goal>build-classpath</goal>
908 <!-- needed to run the unit test for DS to generate
909 the required classpath that is required in the env
910 of the launch container in the mini mr/yarn cluster
912 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>