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>
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 -->
89 <id>generate-Version-information</id>
90 <phase>generate-sources</phase>
93 <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
95 <exec executable="bash" failonerror="true">
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>
144 <groupId>org.apache.hbase</groupId>
145 <artifactId>hbase-annotations</artifactId>
146 <type>test-jar</type>
150 <groupId>org.apache.hbase.thirdparty</groupId>
151 <artifactId>hbase-shaded-miscellaneous</artifactId>
154 <groupId>org.apache.hbase.thirdparty</groupId>
155 <artifactId>hbase-shaded-gson</artifactId>
158 <groupId>org.apache.hbase.thirdparty</groupId>
159 <artifactId>hbase-shaded-netty</artifactId>
162 <groupId>org.slf4j</groupId>
163 <artifactId>slf4j-api</artifactId>
166 <groupId>commons-codec</groupId>
167 <artifactId>commons-codec</artifactId>
168 <scope>compile</scope>
171 <groupId>org.apache.commons</groupId>
172 <artifactId>commons-lang3</artifactId>
173 <scope>compile</scope>
176 <groupId>commons-io</groupId>
177 <artifactId>commons-io</artifactId>
178 <scope>compile</scope>
181 <groupId>commons-validator</groupId>
182 <artifactId>commons-validator</artifactId>
183 <scope>compile</scope>
186 <groupId>com.google.protobuf</groupId>
187 <artifactId>protobuf-java</artifactId>
189 <!-- tracing Dependencies -->
191 <groupId>org.apache.htrace</groupId>
192 <artifactId>htrace-core4</artifactId>
195 <groupId>org.apache.commons</groupId>
196 <artifactId>commons-crypto</artifactId>
199 <groupId>junit</groupId>
200 <artifactId>junit</artifactId>
204 <groupId>com.github.stephenc.findbugs</groupId>
205 <artifactId>findbugs-annotations</artifactId>
208 <groupId>org.mockito</groupId>
209 <artifactId>mockito-core</artifactId>
214 <groupId>log4j</groupId>
215 <artifactId>log4j</artifactId>
220 <!-- Needs to make the profile in apache parent pom -->
222 <id>apache-release</id>
226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-resources-plugin</artifactId>
230 <id>license-javadocs</id>
231 <phase>prepare-package</phase>
233 <goal>copy-resources</goal>
236 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
239 <directory>src/main/javadoc/META-INF/</directory>
240 <targetPath>META-INF/</targetPath>
242 <include>NOTICE</include>
244 <filtering>true</filtering>
254 <!-- Skip the tests in this module -->
256 <id>skipCommonTests</id>
259 <name>skipCommonTests</name>
263 <surefire.skipFirstPart>true</surefire.skipFirstPart>
264 <surefire.skipSecondPart>true</surefire.skipSecondPart>
269 <!-- profile for building against Hadoop 2.x. This is the default -->
274 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
275 <!--h2--><name>!hadoop.profile</name>
280 <groupId>org.apache.hadoop</groupId>
281 <artifactId>hadoop-common</artifactId>
282 <!--FYI This pulls in hadoop's guava. Its needed for Configuration
289 <artifactId>maven-dependency-plugin</artifactId>
292 <id>create-mrapp-generated-classpath</id>
293 <phase>generate-test-resources</phase>
295 <goal>build-classpath</goal>
298 <!-- needed to run the unit test for DS to generate
299 the required classpath that is required in the env
300 of the launch container in the mini mr/yarn cluster
302 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
312 profile for building against Hadoop 3.0.x. Activate using:
313 mvn -Dhadoop.profile=3.0
319 <name>hadoop.profile</name>
324 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
328 <groupId>org.apache.hadoop</groupId>
329 <artifactId>hadoop-common</artifactId>
335 <artifactId>maven-dependency-plugin</artifactId>
338 <id>create-mrapp-generated-classpath</id>
339 <phase>generate-test-resources</phase>
341 <goal>build-classpath</goal>
344 <!-- needed to run the unit test for DS to generate
345 the required classpath that is required in the env
346 of the launch container in the mini mr/yarn cluster
348 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
357 <id>eclipse-specific</id>
360 <name>m2e.version</name>
366 <!--This plugin's configuration is used to store Eclipse m2e settings
367 only. It has no influence on the Maven build itself. -->
369 <groupId>org.eclipse.m2e</groupId>
370 <artifactId>lifecycle-mapping</artifactId>
372 <lifecycleMappingMetadata>
375 <pluginExecutionFilter>
376 <groupId>org.apache.maven.plugins</groupId>
377 <artifactId>maven-antrun-plugin</artifactId>
378 <versionRange>[${maven.antrun.version}]</versionRange>
382 </pluginExecutionFilter>
388 <pluginExecutionFilter>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-dependency-plugin</artifactId>
391 <versionRange>[2.8,)</versionRange>
393 <goal>build-classpath</goal>
395 </pluginExecutionFilter>
401 </lifecycleMappingMetadata>