Preparing hbase release 2.4.8RC0; tagging and updates to CHANGES.md and RELEASENOTES.md
[hbase.git] / hbase-zookeeper / pom.xml
blobb5772830521b9fc1adc8dc113917d47a431367c7
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>2.4.8</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     </dependency>
121     <dependency>
122       <groupId>org.apache.hbase</groupId>
123       <artifactId>hbase-hadoop2-compat</artifactId>
124       <exclusions>
125         <!-- We don't need MR support classes here. -->
126         <exclusion>
127           <groupId>org.apache.hadoop</groupId>
128           <artifactId>hadoop-mapreduce-client-core</artifactId>
129         </exclusion>
130       </exclusions>
131     </dependency>
132     <!-- General dependencies -->
133     <dependency>
134       <groupId>com.github.stephenc.findbugs</groupId>
135       <artifactId>findbugs-annotations</artifactId>
136       <scope>compile</scope>
137       <optional>true</optional>
138     </dependency>
139     <dependency>
140       <groupId>org.apache.commons</groupId>
141       <artifactId>commons-lang3</artifactId>
142     </dependency>
143     <dependency>
144       <groupId>org.slf4j</groupId>
145       <artifactId>slf4j-api</artifactId>
146     </dependency>
147     <dependency>
148       <groupId>org.apache.zookeeper</groupId>
149       <artifactId>zookeeper</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.slf4j</groupId>
174       <artifactId>slf4j-log4j12</artifactId>
175       <scope>test</scope>
176     </dependency>
177     <dependency>
178       <groupId>log4j</groupId>
179       <artifactId>log4j</artifactId>
180       <scope>test</scope>
181     </dependency>
182   </dependencies>
183   <profiles>
184     <!-- Needs to make the profile in apache parent pom -->
185     <profile>
186       <id>apache-release</id>
187       <build>
188         <plugins>
189           <plugin>
190             <groupId>org.apache.maven.plugins</groupId>
191             <artifactId>maven-resources-plugin</artifactId>
192             <executions>
193               <execution>
194                 <id>license-javadocs</id>
195                 <phase>prepare-package</phase>
196                 <goals>
197                   <goal>copy-resources</goal>
198                 </goals>
199                 <configuration>
200                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
201                   <resources>
202                     <resource>
203                       <directory>src/main/javadoc/META-INF/</directory>
204                       <targetPath>META-INF/</targetPath>
205                       <includes>
206                         <include>LICENSE</include>
207                         <include>NOTICE</include>
208                       </includes>
209                       <filtering>true</filtering>
210                     </resource>
211                   </resources>
212                 </configuration>
213               </execution>
214             </executions>
215           </plugin>
216         </plugins>
217       </build>
218     </profile>
219     <!-- Skip the tests in this module -->
220     <profile>
221       <id>skipZooKeeperTests</id>
222       <activation>
223         <property>
224           <name>skipZooKeeperTests</name>
225         </property>
226       </activation>
227       <properties>
228         <surefire.skipFirstPart>true</surefire.skipFirstPart>
229         <surefire.skipSecondPart>true</surefire.skipSecondPart>
230       </properties>
231     </profile>
232     <!-- Profiles for building against different hadoop versions -->
233     <!-- There are a lot of common dependencies used here, should investigate
234     if we can combine these profiles somehow -->
236     <!-- profile for building against Hadoop 2.x.  This is the default.  -->
237     <profile>
238       <id>hadoop-2.0</id>
239       <activation>
240         <property>
241             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
242             <!--h2--><name>!hadoop.profile</name>
243         </property>
244       </activation>
245       <dependencies>
246         <dependency>
247           <groupId>org.apache.hadoop</groupId>
248           <artifactId>hadoop-common</artifactId>
249         </dependency>
250         <dependency>
251           <groupId>org.apache.hadoop</groupId>
252           <artifactId>hadoop-auth</artifactId>
253         </dependency>
254       </dependencies>
255       <build>
256         <plugins>
257           <plugin>
258             <artifactId>maven-dependency-plugin</artifactId>
259             <executions>
260               <execution>
261                 <id>create-mrapp-generated-classpath</id>
262                 <phase>generate-test-resources</phase>
263                 <goals>
264                   <goal>build-classpath</goal>
265                 </goals>
266                 <configuration>
267                   <!-- needed to run the unit test for DS to generate
268                   the required classpath that is required in the env
269                   of the launch container in the mini mr/yarn cluster
270                   -->
271                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
272                 </configuration>
273               </execution>
274             </executions>
275           </plugin>
276         </plugins>
277       </build>
278     </profile>
279     <!--
280       profile for building against Hadoop 3.0.x. Activate using:
281        mvn -Dhadoop.profile=3.0
282     -->
283     <profile>
284       <id>hadoop-3.0</id>
285       <activation>
286         <property>
287           <name>hadoop.profile</name>
288           <value>3.0</value>
289         </property>
290       </activation>
291       <dependencies>
292         <dependency>
293           <groupId>org.apache.hadoop</groupId>
294           <artifactId>hadoop-common</artifactId>
295         </dependency>
296         <dependency>
297           <groupId>org.apache.hadoop</groupId>
298           <artifactId>hadoop-auth</artifactId>
299         </dependency>
300       </dependencies>
301       <build>
302         <plugins>
303           <plugin>
304             <artifactId>maven-dependency-plugin</artifactId>
305             <executions>
306               <execution>
307                 <id>create-mrapp-generated-classpath</id>
308                 <phase>generate-test-resources</phase>
309                 <goals>
310                   <goal>build-classpath</goal>
311                 </goals>
312                 <configuration>
313                   <!-- needed to run the unit test for DS to generate
314                   the required classpath that is required in the env
315                   of the launch container in the mini mr/yarn cluster
316                   -->
317                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
318                 </configuration>
319               </execution>
320             </executions>
321           </plugin>
322         </plugins>
323       </build>
324     </profile>
325     <profile>
326       <id>eclipse-specific</id>
327       <activation>
328         <property>
329           <name>m2e.version</name>
330         </property>
331       </activation>
332       <build>
333         <plugins>
334           <plugin>
335             <groupId>org.apache.maven.plugins</groupId>
336             <artifactId>maven-eclipse-plugin</artifactId>
337             <configuration>
338               <additionalProjectnatures>
339                 <projectnature>org.jamon.project.jamonnature</projectnature>
340               </additionalProjectnatures>
341               <buildcommands>
342                 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
343                 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
344                 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
345               </buildcommands>
346               <additionalConfig>
347                 <file>
348                   <name>.settings/org.jamon.prefs</name>
349                   <content># now
350                     eclipse.preferences.version=1
351                     templateSourceDir=src/main/jamon
352                     templateOutputDir=target/generated-jamon
353                   </content>
354                 </file>
355               </additionalConfig>
356             </configuration>
357           </plugin>
358         </plugins>
359         <pluginManagement>
360            <plugins>
361              <!--This plugin's configuration is used to store Eclipse m2e settings
362                  only. It has no influence on the Maven build itself and needs to
363                  be kept in plugin management, not in the actual plugins. -->
364             <plugin>
365               <groupId>org.eclipse.m2e</groupId>
366               <artifactId>lifecycle-mapping</artifactId>
367               <configuration>
368                 <lifecycleMappingMetadata>
369                   <pluginExecutions>
370                     <pluginExecution>
371                       <pluginExecutionFilter>
372                         <groupId>org.apache.maven.plugins</groupId>
373                         <artifactId>maven-antrun-plugin</artifactId>
374                         <versionRange>[1.6,)</versionRange>
375                         <goals>
376                           <goal>run</goal>
377                         </goals>
378                       </pluginExecutionFilter>
379                       <action>
380                         <execute>
381                           <runOnIncremental>false</runOnIncremental>
382                           <runOnConfiguration>true</runOnConfiguration>
383                         </execute>
384                       </action>
385                     </pluginExecution>
386                     <pluginExecution>
387                       <pluginExecutionFilter>
388                         <groupId>org.apache.maven.plugins</groupId>
389                         <artifactId>maven-dependency-plugin</artifactId>
390                         <versionRange>[2.8,)</versionRange>
391                         <goals>
392                           <goal>build-classpath</goal>
393                         </goals>
394                       </pluginExecutionFilter>
395                       <action>
396                         <ignore></ignore>
397                       </action>
398                     </pluginExecution>
399                   </pluginExecutions>
400                 </lifecycleMappingMetadata>
401               </configuration>
402             </plugin>
403           </plugins>
404         </pluginManagement>
405       </build>
406     </profile>
407   </profiles>
408 </project>