Revert "Preparing development version 2.4.2-SNAPSHOT"
[hbase.git] / hbase-common / pom.xml
blobda3ca312b966f3b40c167df0ba26262a2b7efaef
1 <?xml version="1.0"?>
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">
3 <!--
4 /**
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
12  *
13  *     http://www.apache.org/licenses/LICENSE-2.0
14  *
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.
20  */
21 -->
22   <modelVersion>4.0.0</modelVersion>
23   <parent>
24     <artifactId>hbase-build-configuration</artifactId>
25     <groupId>org.apache.hbase</groupId>
26     <version>2.4.1</version>
27     <relativePath>../hbase-build-configuration</relativePath>
28   </parent>
30   <artifactId>hbase-common</artifactId>
31   <name>Apache HBase - Common</name>
32   <description>Common functionality for HBase</description>
34   <build>
35     <resources>
36       <resource>
37           <directory>src/main/resources/</directory>
38           <includes>
39               <include>hbase-default.xml</include>
40           </includes>
41       </resource>
42     </resources>
43     <testResources>
44       <testResource>
45         <directory>src/test/resources/META-INF/</directory>
46         <targetPath>META-INF/</targetPath>
47         <includes>
48           <include>NOTICE</include>
49         </includes>
50         <filtering>true</filtering>
51       </testResource>
52       <testResource>
53         <directory>src/test/resources</directory>
54         <includes>
55           <include>**/**</include>
56         </includes>
57       </testResource>
58     </testResources>
59     <plugins>
60       <plugin>
61         <groupId>org.apache.maven.plugins</groupId>
62         <artifactId>maven-remote-resources-plugin</artifactId>
63       </plugin>
64       <plugin>
65         <!--Make it so assembly:single does nothing in here-->
66         <artifactId>maven-assembly-plugin</artifactId>
67         <configuration>
68           <skipAssembly>true</skipAssembly>
69         </configuration>
70       </plugin>
71         <plugin>
72             <artifactId>maven-antrun-plugin</artifactId>
73             <executions>
74           <execution>
75             <phase>process-resources</phase>
76             <configuration>
77               <target>
78                 <replace file="${project.build.outputDirectory}/hbase-default.xml"
79                   token="@@@VERSION@@@" value="${project.version}" />
80               </target>
81             </configuration>
82             <goals>
83               <goal>run</goal>
84             </goals>
85           </execution>
86                 <!-- Generate web app sources -->
87                 <execution>
88                     <id>generate-Version-information</id>
89                     <phase>generate-sources</phase>
90                     <configuration>
91                         <target>
92                             <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
94                             <exec executable="bash" failonerror="true">
95                                 <arg line="${basedir}/src/saveVersion.sh ${project.version} ${generated.sources}/java"/>
96                             </exec>
97                         </target>
98                     </configuration>
99                     <goals>
100                         <goal>run</goal>
101                     </goals>
102                 </execution>
103             </executions>
104         </plugin>
105         <plugin>
106             <groupId>org.codehaus.mojo</groupId>
107             <artifactId>build-helper-maven-plugin</artifactId>
108             <executions>
109                 <!-- Add the generated sources -->
110                 <execution>
111                     <id>versionInfo-source</id>
112                     <phase>generate-sources</phase>
113                     <goals>
114                         <goal>add-source</goal>
115                     </goals>
116                     <configuration>
117                         <sources>
118                             <source>${project.build.directory}/generated-sources/java</source>
119                         </sources>
120                     </configuration>
121                 </execution>
122             </executions>
123         </plugin>
124         <!-- Make a jar and put the sources in the jar -->
125         <plugin>
126           <groupId>org.apache.maven.plugins</groupId>
127           <artifactId>maven-source-plugin</artifactId>
128           <configuration>
129             <excludes>
130               <exclude>hbase-default.xml</exclude>
131             </excludes>
132           </configuration>
133         </plugin>
134       <plugin>
135         <groupId>net.revelc.code</groupId>
136         <artifactId>warbucks-maven-plugin</artifactId>
137       </plugin>
138     </plugins>
139   </build>
141   <dependencies>
142     <dependency>
143       <groupId>org.apache.hbase</groupId>
144       <artifactId>hbase-annotations</artifactId>
145       <type>test-jar</type>
146       <scope>test</scope>
147     </dependency>
148     <dependency>
149       <groupId>org.apache.hbase</groupId>
150       <artifactId>hbase-logging</artifactId>
151     </dependency>
152     <dependency>
153       <groupId>org.apache.hbase</groupId>
154       <artifactId>hbase-logging</artifactId>
155       <type>test-jar</type>
156       <scope>test</scope>
157     </dependency>
158     <dependency>
159       <groupId>org.apache.hbase.thirdparty</groupId>
160       <artifactId>hbase-shaded-miscellaneous</artifactId>
161     </dependency>
162     <dependency>
163       <groupId>org.apache.hbase.thirdparty</groupId>
164       <artifactId>hbase-shaded-gson</artifactId>
165     </dependency>
166     <dependency>
167       <groupId>org.apache.hbase.thirdparty</groupId>
168       <artifactId>hbase-shaded-netty</artifactId>
169     </dependency>
170     <dependency>
171       <groupId>org.slf4j</groupId>
172       <artifactId>slf4j-api</artifactId>
173     </dependency>
174     <dependency>
175       <groupId>commons-codec</groupId>
176       <artifactId>commons-codec</artifactId>
177       <scope>compile</scope>
178     </dependency>
179     <dependency>
180       <groupId>org.apache.commons</groupId>
181       <artifactId>commons-lang3</artifactId>
182       <scope>compile</scope>
183     </dependency>
184     <dependency>
185       <groupId>commons-io</groupId>
186       <artifactId>commons-io</artifactId>
187       <scope>compile</scope>
188     </dependency>
189     <dependency>
190       <groupId>com.google.protobuf</groupId>
191       <artifactId>protobuf-java</artifactId>
192     </dependency>
193     <!-- tracing Dependencies -->
194     <dependency>
195       <groupId>org.apache.htrace</groupId>
196       <artifactId>htrace-core4</artifactId>
197     </dependency>
198     <dependency>
199       <groupId>org.apache.commons</groupId>
200       <artifactId>commons-crypto</artifactId>
201     </dependency>
202     <dependency>
203       <groupId>junit</groupId>
204       <artifactId>junit</artifactId>
205       <scope>test</scope>
206     </dependency>
207     <dependency>
208       <groupId>com.github.stephenc.findbugs</groupId>
209       <artifactId>findbugs-annotations</artifactId>
210       <scope>compile</scope>
211       <optional>true</optional>
212     </dependency>
213     <dependency>
214       <groupId>org.hamcrest</groupId>
215       <artifactId>hamcrest-library</artifactId>
216       <scope>test</scope>
217     </dependency>
218     <dependency>
219       <groupId>org.mockito</groupId>
220       <artifactId>mockito-core</artifactId>
221       <scope>test</scope>
222     </dependency>
223     <dependency>
224       <groupId>org.slf4j</groupId>
225       <artifactId>jcl-over-slf4j</artifactId>
226       <scope>test</scope>
227     </dependency>
228     <dependency>
229       <groupId>org.slf4j</groupId>
230       <artifactId>jul-to-slf4j</artifactId>
231       <scope>test</scope>
232     </dependency>
233     <dependency>
234       <groupId>org.slf4j</groupId>
235       <artifactId>slf4j-log4j12</artifactId>
236       <scope>test</scope>
237     </dependency>
238     <dependency>
239       <groupId>log4j</groupId>
240       <artifactId>log4j</artifactId>
241       <scope>test</scope>
242     </dependency>
243     <dependency>
244       <groupId>org.apache.kerby</groupId>
245       <artifactId>kerb-simplekdc</artifactId>
246       <scope>test</scope>
247     </dependency>
248   </dependencies>
250   <profiles>
251     <!-- Needs to make the profile in apache parent pom -->
252     <profile>
253       <id>apache-release</id>
254       <build>
255         <plugins>
256           <plugin>
257             <groupId>org.apache.maven.plugins</groupId>
258             <artifactId>maven-resources-plugin</artifactId>
259             <executions>
260               <execution>
261                 <id>license-javadocs</id>
262                 <phase>prepare-package</phase>
263                 <goals>
264                   <goal>copy-resources</goal>
265                 </goals>
266                 <configuration>
267                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
268                   <resources>
269                     <resource>
270                       <directory>src/main/javadoc/META-INF/</directory>
271                       <targetPath>META-INF/</targetPath>
272                       <includes>
273                         <include>NOTICE</include>
274                       </includes>
275                       <filtering>true</filtering>
276                     </resource>
277                   </resources>
278                 </configuration>
279               </execution>
280             </executions>
281           </plugin>
282         </plugins>
283       </build>
284     </profile>
285     <!-- Skip the tests in this module -->
286     <profile>
287       <id>skipCommonTests</id>
288       <activation>
289         <property>
290           <name>skipCommonTests</name>
291         </property>
292       </activation>
293       <properties>
294         <surefire.skipFirstPart>true</surefire.skipFirstPart>
295         <surefire.skipSecondPart>true</surefire.skipSecondPart>
296       </properties>
297     </profile>
300     <!-- profile for building against Hadoop 2.x.  This is the default -->
301     <profile>
302       <id>hadoop-2.0</id>
303       <activation>
304         <property>
305             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
306             <!--h2--><name>!hadoop.profile</name>
307         </property>
308       </activation>
309       <dependencies>
310         <dependency>
311           <groupId>org.apache.hadoop</groupId>
312           <artifactId>hadoop-common</artifactId>
313           <!--FYI This pulls in hadoop's guava. Its needed for Configuration
314                at least-->
315         </dependency>
316       </dependencies>
317       <build>
318         <plugins>
319           <plugin>
320             <artifactId>maven-dependency-plugin</artifactId>
321             <executions>
322               <execution>
323                 <id>create-mrapp-generated-classpath</id>
324                 <phase>generate-test-resources</phase>
325                 <goals>
326                   <goal>build-classpath</goal>
327                 </goals>
328                 <configuration>
329                   <!-- needed to run the unit test for DS to generate
330                   the required classpath that is required in the env
331                   of the launch container in the mini mr/yarn cluster
332                   -->
333                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
334                 </configuration>
335               </execution>
336             </executions>
337           </plugin>
338         </plugins>
339       </build>
340     </profile>
342     <!--
343       profile for building against Hadoop 3.0.x. Activate using:
344        mvn -Dhadoop.profile=3.0
345     -->
346     <profile>
347       <id>hadoop-3.0</id>
348       <activation>
349         <property>
350           <name>hadoop.profile</name>
351           <value>3.0</value>
352         </property>
353       </activation>
354       <dependencies>
355         <dependency>
356           <groupId>org.apache.hadoop</groupId>
357           <artifactId>hadoop-common</artifactId>
358         </dependency>
359       </dependencies>
360       <build>
361         <plugins>
362           <plugin>
363             <artifactId>maven-dependency-plugin</artifactId>
364             <executions>
365               <execution>
366                 <id>create-mrapp-generated-classpath</id>
367                 <phase>generate-test-resources</phase>
368                 <goals>
369                   <goal>build-classpath</goal>
370                 </goals>
371                 <configuration>
372                   <!-- needed to run the unit test for DS to generate
373                   the required classpath that is required in the env
374                   of the launch container in the mini mr/yarn cluster
375                   -->
376                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
377                 </configuration>
378               </execution>
379             </executions>
380           </plugin>
381         </plugins>
382       </build>
383     </profile>
384     <profile>
385       <id>eclipse-specific</id>
386       <activation>
387         <property>
388           <name>m2e.version</name>
389         </property>
390       </activation>
391       <build>
392         <pluginManagement>
393           <plugins>
394             <!--This plugin's configuration is used to store Eclipse m2e settings
395                  only. It has no influence on the Maven build itself. -->
396             <plugin>
397               <groupId>org.eclipse.m2e</groupId>
398               <artifactId>lifecycle-mapping</artifactId>
399               <configuration>
400                 <lifecycleMappingMetadata>
401                   <pluginExecutions>
402                     <pluginExecution>
403                       <pluginExecutionFilter>
404                         <groupId>org.apache.maven.plugins</groupId>
405                         <artifactId>maven-antrun-plugin</artifactId>
406                         <versionRange>[${maven.antrun.version}]</versionRange>
407                         <goals>
408                           <goal>run</goal>
409                         </goals>
410                       </pluginExecutionFilter>
411                       <action>
412                         <execute/>
413                       </action>
414                     </pluginExecution>
415                     <pluginExecution>
416                       <pluginExecutionFilter>
417                         <groupId>org.apache.maven.plugins</groupId>
418                         <artifactId>maven-dependency-plugin</artifactId>
419                         <versionRange>[2.8,)</versionRange>
420                         <goals>
421                           <goal>build-classpath</goal>
422                         </goals>
423                       </pluginExecutionFilter>
424                       <action>
425                         <ignore></ignore>
426                       </action>
427                     </pluginExecution>
428                   </pluginExecutions>
429                 </lifecycleMappingMetadata>
430               </configuration>
431             </plugin>
432           </plugins>
433         </pluginManagement>
434       </build>
435     </profile>
436   </profiles>
437 </project>