HBASE-26805 TestRegionHDFSBlockLocationFinder is flaky (#4169)
[hbase.git] / hbase-zookeeper / pom.xml
blob27e11832c315ab0e046dcdf9c7918439c9f48cb6
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>
29   <artifactId>hbase-zookeeper</artifactId>
30   <name>Apache HBase - Zookeeper</name>
31   <description>Zookeeper Helpers for HBase</description>
33   <build>
34     <!-- Makes sure the resources get added before they are processed
35       by placing this first -->
36     <testResources>
37       <!-- Our test artifact has different license info than our source/bin ones -->
38       <testResource>
39         <directory>src/test/resources/META-INF/</directory>
40         <targetPath>META-INF/</targetPath>
41         <includes>
42           <include>NOTICE</include>
43         </includes>
44         <filtering>true</filtering>
45       </testResource>
46       <testResource>
47         <directory>src/test/resources</directory>
48         <includes>
49           <include>**/**</include>
50         </includes>
51       </testResource>
52     </testResources>
53     <plugins>
54       <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
55         tests (this is needed for upstream projects whose tests need this jar simply for
56         compilation) -->
57       <plugin>
58         <!--Make it so assembly:single does nothing in here-->
59         <artifactId>maven-assembly-plugin</artifactId>
60         <configuration>
61           <skipAssembly>true</skipAssembly>
62         </configuration>
63       </plugin>
64       <plugin>
65         <groupId>org.apache.maven.plugins</groupId>
66         <artifactId>maven-checkstyle-plugin</artifactId>
67         <configuration>
68           <failOnViolation>true</failOnViolation>
69         </configuration>
70       </plugin>
71       <plugin>
72         <groupId>net.revelc.code</groupId>
73         <artifactId>warbucks-maven-plugin</artifactId>
74       </plugin>
75     </plugins>
76   </build>
77   <dependencies>
78     <dependency>
79       <groupId>org.apache.hbase.thirdparty</groupId>
80       <artifactId>hbase-shaded-protobuf</artifactId>
81     </dependency>
82     <dependency>
83       <groupId>org.apache.hbase.thirdparty</groupId>
84       <artifactId>hbase-shaded-miscellaneous</artifactId>
85     </dependency>
86     <!-- Intra-project dependencies -->
87     <dependency>
88       <groupId>org.apache.hbase</groupId>
89       <artifactId>hbase-common</artifactId>
90     </dependency>
91     <dependency>
92       <groupId>org.apache.hbase</groupId>
93       <artifactId>hbase-common</artifactId>
94       <type>test-jar</type>
95       <scope>test</scope>
96     </dependency>
97     <dependency>
98       <groupId>org.apache.hbase</groupId>
99       <artifactId>hbase-client</artifactId>
100     </dependency>
101     <dependency>
102       <groupId>org.apache.hbase</groupId>
103       <artifactId>hbase-annotations</artifactId>
104       <type>test-jar</type>
105       <scope>test</scope>
106     </dependency>
107     <dependency>
108       <groupId>org.apache.hbase</groupId>
109       <artifactId>hbase-logging</artifactId>
110       <type>test-jar</type>
111       <scope>test</scope>
112     </dependency>
113     <dependency>
114       <groupId>org.apache.hbase</groupId>
115       <artifactId>hbase-protocol-shaded</artifactId>
116     </dependency>
117     <dependency>
118       <groupId>org.apache.hbase</groupId>
119       <artifactId>hbase-hadoop-compat</artifactId>
120       <exclusions>
121         <!-- We don't need MR support classes here. -->
122         <exclusion>
123           <groupId>org.apache.hadoop</groupId>
124           <artifactId>hadoop-mapreduce-client-core</artifactId>
125         </exclusion>
126       </exclusions>
127     </dependency>
128     <!-- General dependencies -->
129     <dependency>
130       <groupId>com.github.stephenc.findbugs</groupId>
131       <artifactId>findbugs-annotations</artifactId>
132       <scope>compile</scope>
133       <optional>true</optional>
134     </dependency>
135     <dependency>
136       <groupId>org.apache.commons</groupId>
137       <artifactId>commons-lang3</artifactId>
138     </dependency>
139     <dependency>
140       <groupId>org.slf4j</groupId>
141       <artifactId>slf4j-api</artifactId>
142     </dependency>
143     <dependency>
144       <groupId>org.apache.zookeeper</groupId>
145       <artifactId>zookeeper</artifactId>
146     </dependency>
147     <dependency>
148       <groupId>io.opentelemetry</groupId>
149       <artifactId>opentelemetry-api</artifactId>
150     </dependency>
151     <!-- Test dependencies -->
152     <dependency>
153       <groupId>junit</groupId>
154       <artifactId>junit</artifactId>
155       <scope>test</scope>
156     </dependency>
157     <dependency>
158       <groupId>org.mockito</groupId>
159       <artifactId>mockito-core</artifactId>
160       <scope>test</scope>
161     </dependency>
162     <dependency>
163       <groupId>org.slf4j</groupId>
164       <artifactId>jcl-over-slf4j</artifactId>
165       <scope>test</scope>
166     </dependency>
167     <dependency>
168       <groupId>org.slf4j</groupId>
169       <artifactId>jul-to-slf4j</artifactId>
170       <scope>test</scope>
171     </dependency>
172     <dependency>
173       <groupId>org.apache.logging.log4j</groupId>
174       <artifactId>log4j-api</artifactId>
175       <scope>test</scope>
176     </dependency>
177     <dependency>
178       <groupId>org.apache.logging.log4j</groupId>
179       <artifactId>log4j-core</artifactId>
180       <scope>test</scope>
181     </dependency>
182     <dependency>
183       <groupId>org.apache.logging.log4j</groupId>
184       <artifactId>log4j-slf4j-impl</artifactId>
185       <scope>test</scope>
186     </dependency>
187   </dependencies>
188   <profiles>
189     <!-- Needs to make the profile in apache parent pom -->
190     <profile>
191       <id>apache-release</id>
192       <build>
193         <plugins>
194           <plugin>
195             <groupId>org.apache.maven.plugins</groupId>
196             <artifactId>maven-resources-plugin</artifactId>
197             <executions>
198               <execution>
199                 <id>license-javadocs</id>
200                 <phase>prepare-package</phase>
201                 <goals>
202                   <goal>copy-resources</goal>
203                 </goals>
204                 <configuration>
205                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
206                   <resources>
207                     <resource>
208                       <directory>src/main/javadoc/META-INF/</directory>
209                       <targetPath>META-INF/</targetPath>
210                       <includes>
211                         <include>LICENSE</include>
212                         <include>NOTICE</include>
213                       </includes>
214                       <filtering>true</filtering>
215                     </resource>
216                   </resources>
217                 </configuration>
218               </execution>
219             </executions>
220           </plugin>
221         </plugins>
222       </build>
223     </profile>
224     <!-- Skip the tests in this module -->
225     <profile>
226       <id>skipZooKeeperTests</id>
227       <activation>
228         <property>
229           <name>skipZooKeeperTests</name>
230         </property>
231       </activation>
232       <properties>
233         <surefire.skipFirstPart>true</surefire.skipFirstPart>
234         <surefire.skipSecondPart>true</surefire.skipSecondPart>
235       </properties>
236     </profile>
237     <!-- Profiles for building against different hadoop versions -->
238     <!-- There are a lot of common dependencies used here, should investigate
239     if we can combine these profiles somehow -->
240     <!-- Profile for building against Hadoop 3.0.0. Activate by default -->
241     <profile>
242       <id>hadoop-3.0</id>
243       <activation>
244         <property><name>!hadoop.profile</name></property>
245       </activation>
246       <dependencies>
247         <dependency>
248           <groupId>org.apache.hadoop</groupId>
249           <artifactId>hadoop-common</artifactId>
250         </dependency>
251         <dependency>
252           <groupId>org.apache.hadoop</groupId>
253           <artifactId>hadoop-auth</artifactId>
254         </dependency>
255       </dependencies>
256       <build>
257         <plugins>
258           <plugin>
259             <artifactId>maven-dependency-plugin</artifactId>
260             <executions>
261               <execution>
262                 <id>create-mrapp-generated-classpath</id>
263                 <phase>generate-test-resources</phase>
264                 <goals>
265                   <goal>build-classpath</goal>
266                 </goals>
267                 <configuration>
268                   <!-- needed to run the unit test for DS to generate
269                   the required classpath that is required in the env
270                   of the launch container in the mini mr/yarn cluster
271                   -->
272                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
273                 </configuration>
274               </execution>
275             </executions>
276           </plugin>
277         </plugins>
278       </build>
279     </profile>
280     <profile>
281       <id>eclipse-specific</id>
282       <activation>
283         <property>
284           <name>m2e.version</name>
285         </property>
286       </activation>
287       <build>
288         <plugins>
289           <plugin>
290             <groupId>org.apache.maven.plugins</groupId>
291             <artifactId>maven-eclipse-plugin</artifactId>
292             <configuration>
293               <additionalProjectnatures>
294                 <projectnature>org.jamon.project.jamonnature</projectnature>
295               </additionalProjectnatures>
296               <buildcommands>
297                 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
298                 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
299                 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
300               </buildcommands>
301               <additionalConfig>
302                 <file>
303                   <name>.settings/org.jamon.prefs</name>
304                   <content># now
305                     eclipse.preferences.version=1
306                     templateSourceDir=src/main/jamon
307                     templateOutputDir=target/generated-jamon
308                   </content>
309                 </file>
310               </additionalConfig>
311             </configuration>
312           </plugin>
313         </plugins>
314         <pluginManagement>
315            <plugins>
316              <!--This plugin's configuration is used to store Eclipse m2e settings
317                  only. It has no influence on the Maven build itself and needs to
318                  be kept in plugin management, not in the actual plugins. -->
319             <plugin>
320               <groupId>org.eclipse.m2e</groupId>
321               <artifactId>lifecycle-mapping</artifactId>
322               <configuration>
323                 <lifecycleMappingMetadata>
324                   <pluginExecutions>
325                     <pluginExecution>
326                       <pluginExecutionFilter>
327                         <groupId>org.apache.maven.plugins</groupId>
328                         <artifactId>maven-antrun-plugin</artifactId>
329                         <versionRange>[1.6,)</versionRange>
330                         <goals>
331                           <goal>run</goal>
332                         </goals>
333                       </pluginExecutionFilter>
334                       <action>
335                         <execute>
336                           <runOnIncremental>false</runOnIncremental>
337                           <runOnConfiguration>true</runOnConfiguration>
338                         </execute>
339                       </action>
340                     </pluginExecution>
341                     <pluginExecution>
342                       <pluginExecutionFilter>
343                         <groupId>org.apache.maven.plugins</groupId>
344                         <artifactId>maven-dependency-plugin</artifactId>
345                         <versionRange>[2.8,)</versionRange>
346                         <goals>
347                           <goal>build-classpath</goal>
348                         </goals>
349                       </pluginExecutionFilter>
350                       <action>
351                         <ignore></ignore>
352                       </action>
353                     </pluginExecution>
354                   </pluginExecutions>
355                 </lifecycleMappingMetadata>
356               </configuration>
357             </plugin>
358           </plugins>
359         </pluginManagement>
360       </build>
361     </profile>
362   </profiles>
363 </project>