HBASE-23357 Add 2.1.8 to download page (#892)
[hbase.git] / hbase-zookeeper / pom.xml
blob7f8f2aaf6564170a75924cf89a433b5f68b2aee5
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>
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       <!-- Run findbugs -->
65       <plugin>
66         <groupId>org.codehaus.mojo</groupId>
67         <artifactId>findbugs-maven-plugin</artifactId>
68       </plugin>
69       <plugin>
70         <groupId>org.apache.maven.plugins</groupId>
71         <artifactId>maven-checkstyle-plugin</artifactId>
72         <configuration>
73           <failOnViolation>true</failOnViolation>
74         </configuration>
75       </plugin>
76       <plugin>
77         <groupId>net.revelc.code</groupId>
78         <artifactId>warbucks-maven-plugin</artifactId>
79       </plugin>
80     </plugins>
81   </build>
82   <dependencies>
83     <dependency>
84       <groupId>org.apache.hbase.thirdparty</groupId>
85       <artifactId>hbase-shaded-protobuf</artifactId>
86     </dependency>
87     <dependency>
88       <groupId>org.apache.hbase.thirdparty</groupId>
89       <artifactId>hbase-shaded-miscellaneous</artifactId>
90     </dependency>
91     <!-- Intra-project dependencies -->
92     <dependency>
93       <groupId>org.apache.hbase</groupId>
94       <artifactId>hbase-common</artifactId>
95     </dependency>
96     <dependency>
97       <groupId>org.apache.hbase</groupId>
98       <artifactId>hbase-common</artifactId>
99       <type>test-jar</type>
100       <scope>test</scope>
101     </dependency>
102     <dependency>
103       <groupId>org.apache.hbase</groupId>
104       <artifactId>hbase-client</artifactId>
105     </dependency>
106     <dependency>
107       <groupId>org.apache.hbase</groupId>
108       <artifactId>hbase-annotations</artifactId>
109       <type>test-jar</type>
110       <scope>test</scope>
111     </dependency>
112     <dependency>
113       <groupId>org.apache.hbase</groupId>
114       <artifactId>hbase-protocol-shaded</artifactId>
115     </dependency>
116     <dependency>
117       <groupId>org.apache.hbase</groupId>
118       <artifactId>hbase-hadoop-compat</artifactId>
119     </dependency>
120     <dependency>
121       <groupId>org.apache.hbase</groupId>
122       <artifactId>hbase-hadoop2-compat</artifactId>
123       <exclusions>
124         <!-- We don't need MR support classes here. -->
125         <exclusion>
126           <groupId>org.apache.hadoop</groupId>
127           <artifactId>hadoop-mapreduce-client-core</artifactId>
128         </exclusion>
129       </exclusions>
130     </dependency>
131     <!-- General dependencies -->
132     <dependency>
133        <groupId>com.github.stephenc.findbugs</groupId>
134        <artifactId>findbugs-annotations</artifactId>
135        <optional>true</optional>
136     </dependency>
137     <dependency>
138       <groupId>org.apache.commons</groupId>
139       <artifactId>commons-lang3</artifactId>
140     </dependency>
141     <dependency>
142       <groupId>org.slf4j</groupId>
143       <artifactId>slf4j-api</artifactId>
144     </dependency>
145     <dependency>
146       <groupId>log4j</groupId>
147       <artifactId>log4j</artifactId>
148     </dependency>
149     <dependency>
150       <groupId>org.apache.zookeeper</groupId>
151       <artifactId>zookeeper</artifactId>
152     </dependency>
153     <!-- Test dependencies -->
154     <dependency>
155       <groupId>junit</groupId>
156       <artifactId>junit</artifactId>
157       <scope>test</scope>
158     </dependency>
159     <dependency>
160       <groupId>org.mockito</groupId>
161       <artifactId>mockito-core</artifactId>
162       <scope>test</scope>
163     </dependency>
164   </dependencies>
165   <profiles>
166     <!-- Needs to make the profile in apache parent pom -->
167     <profile>
168       <id>apache-release</id>
169       <build>
170         <plugins>
171           <plugin>
172             <groupId>org.apache.maven.plugins</groupId>
173             <artifactId>maven-resources-plugin</artifactId>
174             <executions>
175               <execution>
176                 <id>license-javadocs</id>
177                 <phase>prepare-package</phase>
178                 <goals>
179                   <goal>copy-resources</goal>
180                 </goals>
181                 <configuration>
182                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
183                   <resources>
184                     <resource>
185                       <directory>src/main/javadoc/META-INF/</directory>
186                       <targetPath>META-INF/</targetPath>
187                       <includes>
188                         <include>LICENSE</include>
189                         <include>NOTICE</include>
190                       </includes>
191                       <filtering>true</filtering>
192                     </resource>
193                   </resources>
194                 </configuration>
195               </execution>
196             </executions>
197           </plugin>
198         </plugins>
199       </build>
200     </profile>
201     <!-- Skip the tests in this module -->
202     <profile>
203       <id>skipZooKeeperTests</id>
204       <activation>
205         <property>
206           <name>skipZooKeeperTests</name>
207         </property>
208       </activation>
209       <properties>
210         <surefire.skipFirstPart>true</surefire.skipFirstPart>
211         <surefire.skipSecondPart>true</surefire.skipSecondPart>
212       </properties>
213     </profile>
214     <!-- Profiles for building against different hadoop versions -->
215     <!-- There are a lot of common dependencies used here, should investigate
216     if we can combine these profiles somehow -->
218     <!-- profile for building against Hadoop 2.x.  This is the default.  -->
219     <profile>
220       <id>hadoop-2.0</id>
221       <activation>
222         <property>
223             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
224             <!--h2--><name>!hadoop.profile</name>
225         </property>
226       </activation>
227       <dependencies>
228         <dependency>
229           <groupId>org.apache.hadoop</groupId>
230           <artifactId>hadoop-common</artifactId>
231         </dependency>
232         <dependency>
233           <groupId>org.apache.hadoop</groupId>
234           <artifactId>hadoop-auth</artifactId>
235         </dependency>
236       </dependencies>
237       <build>
238         <plugins>
239           <plugin>
240             <artifactId>maven-dependency-plugin</artifactId>
241             <executions>
242               <execution>
243                 <id>create-mrapp-generated-classpath</id>
244                 <phase>generate-test-resources</phase>
245                 <goals>
246                   <goal>build-classpath</goal>
247                 </goals>
248                 <configuration>
249                   <!-- needed to run the unit test for DS to generate
250                   the required classpath that is required in the env
251                   of the launch container in the mini mr/yarn cluster
252                   -->
253                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
254                 </configuration>
255               </execution>
256             </executions>
257           </plugin>
258         </plugins>
259       </build>
260     </profile>
261     <!--
262       profile for building against Hadoop 3.0.x. Activate using:
263        mvn -Dhadoop.profile=3.0
264     -->
265     <profile>
266       <id>hadoop-3.0</id>
267       <activation>
268         <property>
269           <name>hadoop.profile</name>
270           <value>3.0</value>
271         </property>
272       </activation>
273       <dependencies>
274         <dependency>
275           <groupId>org.apache.hadoop</groupId>
276           <artifactId>hadoop-common</artifactId>
277         </dependency>
278         <dependency>
279           <groupId>org.apache.hadoop</groupId>
280           <artifactId>hadoop-auth</artifactId>
281         </dependency>
282       </dependencies>
283       <build>
284         <plugins>
285           <plugin>
286             <artifactId>maven-dependency-plugin</artifactId>
287             <executions>
288               <execution>
289                 <id>create-mrapp-generated-classpath</id>
290                 <phase>generate-test-resources</phase>
291                 <goals>
292                   <goal>build-classpath</goal>
293                 </goals>
294                 <configuration>
295                   <!-- needed to run the unit test for DS to generate
296                   the required classpath that is required in the env
297                   of the launch container in the mini mr/yarn cluster
298                   -->
299                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
300                 </configuration>
301               </execution>
302             </executions>
303           </plugin>
304         </plugins>
305       </build>
306     </profile>
307     <profile>
308       <id>eclipse-specific</id>
309       <activation>
310         <property>
311           <name>m2e.version</name>
312         </property>
313       </activation>
314       <build>
315         <plugins>
316           <plugin>
317             <groupId>org.apache.maven.plugins</groupId>
318             <artifactId>maven-eclipse-plugin</artifactId>
319             <configuration>
320               <additionalProjectnatures>
321                 <projectnature>org.jamon.project.jamonnature</projectnature>
322               </additionalProjectnatures>
323               <buildcommands>
324                 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
325                 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
326                 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
327               </buildcommands>
328               <additionalConfig>
329                 <file>
330                   <name>.settings/org.jamon.prefs</name>
331                   <content># now
332                     eclipse.preferences.version=1
333                     templateSourceDir=src/main/jamon
334                     templateOutputDir=target/generated-jamon
335                   </content>
336                 </file>
337               </additionalConfig>
338             </configuration>
339           </plugin>
340         </plugins>
341         <pluginManagement>
342            <plugins>
343              <!--This plugin's configuration is used to store Eclipse m2e settings
344                  only. It has no influence on the Maven build itself and needs to
345                  be kept in plugin management, not in the actual plugins. -->
346             <plugin>
347               <groupId>org.eclipse.m2e</groupId>
348               <artifactId>lifecycle-mapping</artifactId>
349               <configuration>
350                 <lifecycleMappingMetadata>
351                   <pluginExecutions>
352                     <pluginExecution>
353                       <pluginExecutionFilter>
354                         <groupId>org.apache.maven.plugins</groupId>
355                         <artifactId>maven-antrun-plugin</artifactId>
356                         <versionRange>[1.6,)</versionRange>
357                         <goals>
358                           <goal>run</goal>
359                         </goals>
360                       </pluginExecutionFilter>
361                       <action>
362                         <execute>
363                           <runOnIncremental>false</runOnIncremental>
364                           <runOnConfiguration>true</runOnConfiguration>
365                         </execute>
366                       </action>
367                     </pluginExecution>
368                     <pluginExecution>
369                       <pluginExecutionFilter>
370                         <groupId>org.apache.maven.plugins</groupId>
371                         <artifactId>maven-dependency-plugin</artifactId>
372                         <versionRange>[2.8,)</versionRange>
373                         <goals>
374                           <goal>build-classpath</goal>
375                         </goals>
376                       </pluginExecutionFilter>
377                       <action>
378                         <ignore></ignore>
379                       </action>
380                     </pluginExecution>
381                   </pluginExecutions>
382                 </lifecycleMappingMetadata>
383               </configuration>
384             </plugin>
385           </plugins>
386         </pluginManagement>
387       </build>
388     </profile>
389   </profiles>
390 </project>