HBASE-22615 Make TestChoreService more robust to timing
[hbase.git] / hbase-build-configuration / pom.xml
blob477f724336983c4355caa99b17b47a5d12b45de8
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</artifactId>
25     <groupId>org.apache.hbase</groupId>
26     <version>3.0.0-SNAPSHOT</version>
27     <relativePath>..</relativePath>
28   </parent>
30   <artifactId>hbase-build-configuration</artifactId>
31   <name>Apache HBase - Build Configuration</name>
32   <description>Configure the build-support artifacts for maven build</description>
34   <packaging>pom</packaging>
35   <build>
36     <plugins>
37       <plugin>
38         <groupId>org.apache.maven.plugins</groupId>
39         <artifactId>maven-site-plugin</artifactId>
40         <configuration>
41           <skip>true</skip>
42         </configuration>
43       </plugin>
44       <plugin>
45         <!--Make it so assembly:single does nothing in here-->
46         <artifactId>maven-assembly-plugin</artifactId>
47         <configuration>
48           <skipAssembly>true</skipAssembly>
49         </configuration>
50       </plugin>
51     </plugins>
52   </build>
53   <dependencies>
54     <dependency>
55       <groupId>org.apache.hbase</groupId>
56       <artifactId>hbase-annotations</artifactId>
57       <type>test-jar</type>
58       <scope>test</scope>
59     </dependency>
60     <dependency>
61       <groupId>org.apache.yetus</groupId>
62       <artifactId>audience-annotations</artifactId>
63     </dependency>
64   </dependencies>
65   <profiles>
66     <profile>
67       <id>errorProne</id>
68       <activation>
69         <activeByDefault>false</activeByDefault>
70       </activation>
71       <properties>
72         <!-- https://errorprone.info/docs/installation Maven section has details -->
73         <!-- required when compiling with JDK 8 -->
74         <javac.version>9+181-r4173-1</javac.version>
75       </properties>
76       <dependencies>
77         <dependency>
78           <groupId>com.google.errorprone</groupId>
79           <artifactId>error_prone_core</artifactId>
80           <version>${error-prone.version}</version>
81           <scope>provided</scope>
82           <exclusions>
83             <exclusion>
84               <groupId>com.google.code.findbugs</groupId>
85               <artifactId>jsr305</artifactId>
86             </exclusion>
87           </exclusions>
88         </dependency>
89         <dependency>
90           <groupId>com.google.errorprone</groupId>
91           <artifactId>javac</artifactId>
92           <version>${javac.version}</version>
93           <scope>provided</scope>
94         </dependency>
95       </dependencies>
96       <build>
97         <plugins>
98           <!-- Turn on error-prone -->
99           <plugin>
100             <groupId>org.apache.maven.plugins</groupId>
101             <artifactId>maven-compiler-plugin</artifactId>
102             <version>${maven.compiler.version}</version>
103             <configuration>
104               <source>${compileSource}</source>
105               <target>${compileSource}</target>
106               <!-- required when compiling with JDK 8 -->
107               <fork>true</fork>
108               <showWarnings>true</showWarnings>
109               <compilerArgs>
110                 <arg>-XDcompilePolicy=simple</arg>
111                 <!-- All -Xep need to be on single line see: https://github.com/google/error-prone/pull/1115 -->
112                 <arg>-Xplugin:ErrorProne -XepDisableWarningsInGeneratedCode -Xep:FallThrough:OFF -Xep:ClassNewInstance:ERROR -Xep:MissingDefault:ERROR</arg>
113                 <!-- Required when compiling with JDK 8 -->
114                 <arg>-J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar</arg>
115               </compilerArgs>
116               <annotationProcessorPaths>
117                 <path>
118                   <groupId>com.google.errorprone</groupId>
119                   <artifactId>error_prone_core</artifactId>
120                   <version>${error-prone.version}</version>
121                 </path>
122               </annotationProcessorPaths>
123             </configuration>
124           </plugin>
125         </plugins>
126       </build>
127     </profile>
128   </profiles>
129 </project>