HBASE-25916 Move FavoredNodeLoadBalancer to hbase-balancer module (#3327)
[hbase.git] / hbase-build-configuration / pom.xml
blob49a1dea8a199d2109386fcd976ca3ef4ea847edd
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             <configuration>
103               <source>${compileSource}</source>
104               <target>${compileSource}</target>
105               <!-- required when compiling with JDK 8 -->
106               <fork>true</fork>
107               <showWarnings>true</showWarnings>
108               <compilerArgs>
109                 <arg>-XDcompilePolicy=simple</arg>
110                 <!-- All -Xep need to be on single line see: https://github.com/google/error-prone/pull/1115 -->
111                 <arg>-Xplugin:ErrorProne -XepDisableWarningsInGeneratedCode -Xep:FallThrough:OFF -Xep:MutablePublicArray:OFF -Xep:ClassNewInstance:ERROR -Xep:MissingDefault:ERROR</arg>
112                 <!-- Required when compiling with JDK 8 -->
113                 <arg>-J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar</arg>
114               </compilerArgs>
115               <annotationProcessorPaths>
116                 <path>
117                   <groupId>com.google.errorprone</groupId>
118                   <artifactId>error_prone_core</artifactId>
119                   <version>${error-prone.version}</version>
120                 </path>
121               </annotationProcessorPaths>
122             </configuration>
123           </plugin>
124         </plugins>
125       </build>
126     </profile>
127   </profiles>
128 </project>