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