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>
30 <artifactId>hbase-common</artifactId>
31 <name>Apache HBase - Common</name>
32 <description>Common functionality for HBase</description>
38 <directory>src/main/resources/</directory>
40 <include>hbase-default.xml</include>
46 <directory>src/test/resources/META-INF/</directory>
47 <targetPath>META-INF/</targetPath>
49 <include>NOTICE</include>
51 <filtering>true</filtering>
54 <directory>src/test/resources</directory>
56 <include>**/**</include>
62 <groupId>org.apache.maven.plugins</groupId>
63 <artifactId>maven-remote-resources-plugin</artifactId>
66 <!--Make it so assembly:single does nothing in here-->
67 <artifactId>maven-assembly-plugin</artifactId>
69 <skipAssembly>true</skipAssembly>
73 <artifactId>maven-antrun-plugin</artifactId>
76 <phase>process-resources</phase>
79 <replace file="${project.build.outputDirectory}/hbase-default.xml"
80 token="@@@VERSION@@@" value="${project.version}" />
87 <!-- Generate web app sources -->
90 <phase>generate-sources</phase>
93 <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
95 <exec executable="bash">
96 <arg line="${basedir}/src/saveVersion.sh ${project.version} ${generated.sources}/java"/>
107 <groupId>org.codehaus.mojo</groupId>
108 <artifactId>build-helper-maven-plugin</artifactId>
110 <!-- Add the generated sources -->
112 <id>versionInfo-source</id>
113 <phase>generate-sources</phase>
115 <goal>add-source</goal>
119 <source>${project.build.directory}/generated-sources/java</source>
125 <!-- Make a jar and put the sources in the jar -->
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-source-plugin</artifactId>
131 <exclude>hbase-default.xml</exclude>
136 <groupId>net.revelc.code</groupId>
137 <artifactId>warbucks-maven-plugin</artifactId>
142 <!--This plugin's configuration is used to store Eclipse m2e settings
143 only. It has no influence on the Maven build itself. -->
145 <groupId>org.eclipse.m2e</groupId>
146 <artifactId>lifecycle-mapping</artifactId>
148 <lifecycleMappingMetadata>
151 <pluginExecutionFilter>
152 <groupId>org.apache.maven.plugins</groupId>
153 <artifactId>maven-antrun-plugin</artifactId>
154 <versionRange>[${maven.antrun.version}]</versionRange>
158 </pluginExecutionFilter>
164 <pluginExecutionFilter>
165 <groupId>org.apache.maven.plugins</groupId>
166 <artifactId>maven-dependency-plugin</artifactId>
167 <versionRange>[2.8,)</versionRange>
169 <goal>build-classpath</goal>
171 </pluginExecutionFilter>
177 </lifecycleMappingMetadata>
186 <groupId>org.apache.hbase</groupId>
187 <artifactId>hbase-annotations</artifactId>
188 <type>test-jar</type>
192 <groupId>org.apache.hbase.thirdparty</groupId>
193 <artifactId>hbase-shaded-miscellaneous</artifactId>
196 <groupId>org.slf4j</groupId>
197 <artifactId>slf4j-api</artifactId>
200 <groupId>commons-codec</groupId>
201 <artifactId>commons-codec</artifactId>
202 <scope>compile</scope>
205 <groupId>org.apache.commons</groupId>
206 <artifactId>commons-lang3</artifactId>
207 <scope>compile</scope>
210 <groupId>commons-io</groupId>
211 <artifactId>commons-io</artifactId>
212 <scope>compile</scope>
215 <groupId>com.google.protobuf</groupId>
216 <artifactId>protobuf-java</artifactId>
218 <!-- tracing Dependencies -->
220 <groupId>org.apache.htrace</groupId>
221 <artifactId>htrace-core4</artifactId>
224 <groupId>org.apache.commons</groupId>
225 <artifactId>commons-crypto</artifactId>
228 <groupId>junit</groupId>
229 <artifactId>junit</artifactId>
233 <groupId>com.github.stephenc.findbugs</groupId>
234 <artifactId>findbugs-annotations</artifactId>
237 <groupId>com.fasterxml.jackson.core</groupId>
238 <artifactId>jackson-databind</artifactId>
241 <groupId>org.mockito</groupId>
242 <artifactId>mockito-core</artifactId>
247 <groupId>log4j</groupId>
248 <artifactId>log4j</artifactId>
253 <!-- Needs to make the profile in apache parent pom -->
255 <id>apache-release</id>
259 <groupId>org.apache.maven.plugins</groupId>
260 <artifactId>maven-resources-plugin</artifactId>
263 <id>license-javadocs</id>
264 <phase>prepare-package</phase>
266 <goal>copy-resources</goal>
269 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
272 <directory>src/main/javadoc/META-INF/</directory>
273 <targetPath>META-INF/</targetPath>
275 <include>NOTICE</include>
277 <filtering>true</filtering>
287 <!-- Skip the tests in this module -->
289 <id>skipCommonTests</id>
292 <name>skipCommonTests</name>
296 <surefire.skipFirstPart>true</surefire.skipFirstPart>
297 <surefire.skipSecondPart>true</surefire.skipSecondPart>
302 <!-- profile for building against Hadoop 2.x. This is the default -->
307 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
308 <!--h2--><name>!hadoop.profile</name>
313 <groupId>org.apache.hadoop</groupId>
314 <artifactId>hadoop-common</artifactId>
315 <!--FYI This pulls in hadoop's guava. Its needed for Configuration
322 <artifactId>maven-dependency-plugin</artifactId>
325 <id>create-mrapp-generated-classpath</id>
326 <phase>generate-test-resources</phase>
328 <goal>build-classpath</goal>
331 <!-- needed to run the unit test for DS to generate
332 the required classpath that is required in the env
333 of the launch container in the mini mr/yarn cluster
335 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
345 profile for building against Hadoop 3.0.x. Activate using:
346 mvn -Dhadoop.profile=3.0
352 <name>hadoop.profile</name>
357 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
361 <groupId>org.apache.hadoop</groupId>
362 <artifactId>hadoop-common</artifactId>
368 <artifactId>maven-dependency-plugin</artifactId>
371 <id>create-mrapp-generated-classpath</id>
372 <phase>generate-test-resources</phase>
374 <goal>build-classpath</goal>
377 <!-- needed to run the unit test for DS to generate
378 the required classpath that is required in the env
379 of the launch container in the mini mr/yarn cluster
381 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>