HBASE-26908 Remove warnings from meta replicas feature references in the HBase book...
[hbase.git] / hbase-common / pom.xml
blob70f3b75b3e8d2c4ae7e1cb3680fb8f349158ee22
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>3.0.0-alpha-3-SNAPSHOT</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}"/>
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.apache.hbase.thirdparty</groupId>
172       <artifactId>hbase-unsafe</artifactId>
173     </dependency>
174     <dependency>
175       <groupId>org.slf4j</groupId>
176       <artifactId>slf4j-api</artifactId>
177     </dependency>
178     <dependency>
179       <groupId>commons-codec</groupId>
180       <artifactId>commons-codec</artifactId>
181       <scope>compile</scope>
182     </dependency>
183     <dependency>
184       <groupId>org.apache.commons</groupId>
185       <artifactId>commons-lang3</artifactId>
186       <scope>compile</scope>
187     </dependency>
188     <dependency>
189       <groupId>commons-io</groupId>
190       <artifactId>commons-io</artifactId>
191       <scope>compile</scope>
192     </dependency>
193     <dependency>
194       <groupId>commons-validator</groupId>
195       <artifactId>commons-validator</artifactId>
196       <scope>compile</scope>
197     </dependency>
198     <!-- tracing Dependencies -->
199     <dependency>
200       <groupId>io.opentelemetry</groupId>
201       <artifactId>opentelemetry-api</artifactId>
202     </dependency>
203     <dependency>
204       <groupId>io.opentelemetry</groupId>
205       <artifactId>opentelemetry-semconv</artifactId>
206     </dependency>
207     <dependency>
208       <groupId>org.apache.commons</groupId>
209       <artifactId>commons-crypto</artifactId>
210     </dependency>
211     <dependency>
212       <groupId>junit</groupId>
213       <artifactId>junit</artifactId>
214       <scope>test</scope>
215     </dependency>
216     <dependency>
217       <groupId>com.github.stephenc.findbugs</groupId>
218       <artifactId>findbugs-annotations</artifactId>
219       <scope>compile</scope>
220       <optional>true</optional>
221     </dependency>
222     <dependency>
223       <groupId>org.hamcrest</groupId>
224       <artifactId>hamcrest-library</artifactId>
225       <scope>test</scope>
226     </dependency>
227     <dependency>
228       <groupId>org.mockito</groupId>
229       <artifactId>mockito-core</artifactId>
230       <scope>test</scope>
231     </dependency>
232     <dependency>
233       <groupId>org.slf4j</groupId>
234       <artifactId>jcl-over-slf4j</artifactId>
235       <scope>test</scope>
236     </dependency>
237     <dependency>
238       <groupId>org.slf4j</groupId>
239       <artifactId>jul-to-slf4j</artifactId>
240       <scope>test</scope>
241     </dependency>
242     <dependency>
243       <groupId>org.apache.logging.log4j</groupId>
244       <artifactId>log4j-api</artifactId>
245       <scope>test</scope>
246     </dependency>
247     <dependency>
248       <groupId>org.apache.logging.log4j</groupId>
249       <artifactId>log4j-core</artifactId>
250       <scope>test</scope>
251     </dependency>
252     <dependency>
253       <groupId>org.apache.logging.log4j</groupId>
254       <artifactId>log4j-slf4j-impl</artifactId>
255       <scope>test</scope>
256     </dependency>
257     <dependency>
258       <groupId>org.apache.kerby</groupId>
259       <artifactId>kerb-simplekdc</artifactId>
260       <scope>test</scope>
261     </dependency>
262   </dependencies>
264   <profiles>
265     <!-- Needs to make the profile in apache parent pom -->
266     <profile>
267       <id>apache-release</id>
268       <build>
269         <plugins>
270           <plugin>
271             <groupId>org.apache.maven.plugins</groupId>
272             <artifactId>maven-resources-plugin</artifactId>
273             <executions>
274               <execution>
275                 <id>license-javadocs</id>
276                 <phase>prepare-package</phase>
277                 <goals>
278                   <goal>copy-resources</goal>
279                 </goals>
280                 <configuration>
281                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
282                   <resources>
283                     <resource>
284                       <directory>src/main/javadoc/META-INF/</directory>
285                       <targetPath>META-INF/</targetPath>
286                       <includes>
287                         <include>NOTICE</include>
288                       </includes>
289                       <filtering>true</filtering>
290                     </resource>
291                   </resources>
292                 </configuration>
293               </execution>
294             </executions>
295           </plugin>
296         </plugins>
297       </build>
298     </profile>
299     <!-- Skip the tests in this module -->
300     <profile>
301       <id>skipCommonTests</id>
302       <activation>
303         <property>
304           <name>skipCommonTests</name>
305         </property>
306       </activation>
307       <properties>
308         <surefire.skipFirstPart>true</surefire.skipFirstPart>
309         <surefire.skipSecondPart>true</surefire.skipSecondPart>
310       </properties>
311     </profile>
312     <!-- Profile for building against Hadoop 3.0.0. Activate by default -->
313     <profile>
314       <id>hadoop-3.0</id>
315       <activation>
316         <property><name>!hadoop.profile</name></property>
317       </activation>
318       <dependencies>
319         <dependency>
320           <groupId>org.apache.hadoop</groupId>
321           <artifactId>hadoop-common</artifactId>
322         </dependency>
323       </dependencies>
324       <build>
325         <plugins>
326           <plugin>
327             <artifactId>maven-dependency-plugin</artifactId>
328             <executions>
329               <execution>
330                 <id>create-mrapp-generated-classpath</id>
331                 <phase>generate-test-resources</phase>
332                 <goals>
333                   <goal>build-classpath</goal>
334                 </goals>
335                 <configuration>
336                   <!-- needed to run the unit test for DS to generate
337                   the required classpath that is required in the env
338                   of the launch container in the mini mr/yarn cluster
339                   -->
340                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
341                 </configuration>
342               </execution>
343             </executions>
344           </plugin>
345         </plugins>
346       </build>
347     </profile>
348     <profile>
349       <id>eclipse-specific</id>
350       <activation>
351         <property>
352           <name>m2e.version</name>
353         </property>
354       </activation>
355       <build>
356         <pluginManagement>
357           <plugins>
358             <!--This plugin's configuration is used to store Eclipse m2e settings
359                  only. It has no influence on the Maven build itself. -->
360             <plugin>
361               <groupId>org.eclipse.m2e</groupId>
362               <artifactId>lifecycle-mapping</artifactId>
363               <configuration>
364                 <lifecycleMappingMetadata>
365                   <pluginExecutions>
366                     <pluginExecution>
367                       <pluginExecutionFilter>
368                         <groupId>org.apache.maven.plugins</groupId>
369                         <artifactId>maven-antrun-plugin</artifactId>
370                         <versionRange>[${maven.antrun.version}]</versionRange>
371                         <goals>
372                           <goal>run</goal>
373                         </goals>
374                       </pluginExecutionFilter>
375                       <action>
376                         <execute/>
377                       </action>
378                     </pluginExecution>
379                     <pluginExecution>
380                       <pluginExecutionFilter>
381                         <groupId>org.apache.maven.plugins</groupId>
382                         <artifactId>maven-dependency-plugin</artifactId>
383                         <versionRange>[2.8,)</versionRange>
384                         <goals>
385                           <goal>build-classpath</goal>
386                         </goals>
387                       </pluginExecutionFilter>
388                       <action>
389                         <ignore></ignore>
390                       </action>
391                     </pluginExecution>
392                   </pluginExecutions>
393                 </lifecycleMappingMetadata>
394               </configuration>
395             </plugin>
396           </plugins>
397         </pluginManagement>
398       </build>
399     </profile>
400   </profiles>
401 </project>