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</artifactId>
25 <groupId>org.apache.hbase</groupId>
26 <version>2.0.0-SNAPSHOT</version>
27 <relativePath>..</relativePath>
30 <artifactId>hbase-common</artifactId>
31 <name>Apache HBase - Common</name>
32 <description>Common functionality for HBase</description>
37 <directory>src/main/resources/</directory>
39 <include>hbase-default.xml</include>
45 <directory>src/test/resources/META-INF/</directory>
46 <targetPath>META-INF/</targetPath>
48 <include>NOTICE</include>
50 <filtering>true</filtering>
55 <groupId>org.apache.maven.plugins</groupId>
56 <artifactId>maven-remote-resources-plugin</artifactId>
59 <groupId>org.apache.maven.plugins</groupId>
60 <artifactId>maven-site-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>
126 <artifactId>maven-surefire-plugin</artifactId>
130 <name>listener</name>
131 <value>org.apache.hadoop.hbase.ResourceCheckerJUnitListener</value>
135 <!-- Always skip the second part executions, since we only run
136 simple unit tests in this module -->
139 <id>secondPartTestsExecution</id>
150 <!-- Make a jar and put the sources in the jar -->
152 <groupId>org.apache.maven.plugins</groupId>
153 <artifactId>maven-source-plugin</artifactId>
156 <exclude>hbase-default.xml</exclude>
163 <!--This plugin's configuration is used to store Eclipse m2e settings
164 only. It has no influence on the Maven build itself. -->
166 <groupId>org.eclipse.m2e</groupId>
167 <artifactId>lifecycle-mapping</artifactId>
168 <version>1.0.0</version>
170 <lifecycleMappingMetadata>
173 <pluginExecutionFilter>
174 <groupId>org.apache.maven.plugins</groupId>
175 <artifactId>maven-antrun-plugin</artifactId>
176 <versionRange>[${maven.antrun.version}]</versionRange>
180 </pluginExecutionFilter>
186 <pluginExecutionFilter>
187 <groupId>org.apache.maven.plugins</groupId>
188 <artifactId>maven-dependency-plugin</artifactId>
189 <versionRange>[2.8,)</versionRange>
191 <goal>build-classpath</goal>
193 </pluginExecutionFilter>
199 <pluginExecutionFilter>
200 <groupId>org.apache.maven.plugins</groupId>
201 <artifactId>maven-compiler-plugin</artifactId>
202 <versionRange>[3.2,)</versionRange>
206 </pluginExecutionFilter>
212 </lifecycleMappingMetadata>
221 <groupId>org.apache.hbase</groupId>
222 <artifactId>hbase-annotations</artifactId>
225 <groupId>jdk.tools</groupId>
226 <artifactId>jdk.tools</artifactId>
231 <groupId>org.apache.hbase</groupId>
232 <artifactId>hbase-annotations</artifactId>
233 <type>test-jar</type>
236 <!-- General dependencies -->
238 <groupId>com.google.guava</groupId>
239 <artifactId>guava</artifactId>
242 <groupId>commons-logging</groupId>
243 <artifactId>commons-logging</artifactId>
246 <groupId>commons-codec</groupId>
247 <artifactId>commons-codec</artifactId>
248 <scope>compile</scope>
251 <groupId>commons-lang</groupId>
252 <artifactId>commons-lang</artifactId>
253 <scope>compile</scope>
256 <groupId>commons-collections</groupId>
257 <artifactId>commons-collections</artifactId>
258 <scope>compile</scope>
261 <groupId>commons-io</groupId>
262 <artifactId>commons-io</artifactId>
263 <scope>compile</scope>
266 <groupId>com.google.protobuf</groupId>
267 <artifactId>protobuf-java</artifactId>
270 <groupId>org.mortbay.jetty</groupId>
271 <artifactId>jetty-util</artifactId>
273 <!-- tracing Dependencies -->
275 <groupId>org.apache.htrace</groupId>
276 <artifactId>htrace-core</artifactId>
279 <groupId>org.apache.commons</groupId>
280 <artifactId>commons-crypto</artifactId>
285 <!-- Needs to make the profile in apache parent pom -->
287 <id>apache-release</id>
291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-resources-plugin</artifactId>
295 <id>license-javadocs</id>
296 <phase>prepare-package</phase>
298 <goal>copy-resources</goal>
301 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
304 <directory>src/main/javadoc/META-INF/</directory>
305 <targetPath>META-INF/</targetPath>
307 <include>NOTICE</include>
309 <filtering>true</filtering>
319 <!-- Skip the tests in this module -->
321 <id>skipCommonTests</id>
324 <name>skipCommonTests</name>
328 <surefire.skipFirstPart>true</surefire.skipFirstPart>
333 <!-- profile for building against Hadoop 2.x. This is the default -->
338 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
339 <!--h2--><name>!hadoop.profile</name>
344 <groupId>org.apache.hadoop</groupId>
345 <artifactId>hadoop-common</artifactId>
351 <artifactId>maven-dependency-plugin</artifactId>
354 <id>create-mrapp-generated-classpath</id>
355 <phase>generate-test-resources</phase>
357 <goal>build-classpath</goal>
360 <!-- needed to run the unit test for DS to generate
361 the required classpath that is required in the env
362 of the launch container in the mini mr/yarn cluster
364 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
374 profile for building against Hadoop 3.0.x. Activate using:
375 mvn -Dhadoop.profile=3.0
381 <name>hadoop.profile</name>
386 <hadoop.version>3.0-SNAPSHOT</hadoop.version>
390 <groupId>org.apache.hadoop</groupId>
391 <artifactId>hadoop-common</artifactId>
397 <artifactId>maven-dependency-plugin</artifactId>
400 <id>create-mrapp-generated-classpath</id>
401 <phase>generate-test-resources</phase>
403 <goal>build-classpath</goal>
406 <!-- needed to run the unit test for DS to generate
407 the required classpath that is required in the env
408 of the launch container in the mini mr/yarn cluster
410 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>