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