Revert "Preparing development version 2.4.2-SNAPSHOT"
[hbase.git] / hbase-endpoint / pom.xml
blob7dd7ec518b71a1e4e1118c2fada083102bdcb1c9
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.1</version>
27     <relativePath>../hbase-build-configuration</relativePath>
28   </parent>
29   <artifactId>hbase-endpoint</artifactId>
30   <name>Apache HBase - Coprocessor Endpoint</name>
31   <description>HBase Coprocessor Endpoint implementations</description>
32   <!--REMOVE-->
33   <properties>
34     <maven.javadoc.skip>true</maven.javadoc.skip>
35   </properties>
36   <build>
37     <plugins>
38       <!-- Make a jar and put the sources in the jar -->
39       <plugin>
40         <groupId>org.apache.maven.plugins</groupId>
41         <artifactId>maven-source-plugin</artifactId>
42       </plugin>
43       <plugin>
44         <!--Make it so assembly:single does nothing in here-->
45         <artifactId>maven-assembly-plugin</artifactId>
46         <configuration>
47           <skipAssembly>true</skipAssembly>
48         </configuration>
49       </plugin>
50       <plugin>
51         <groupId>org.xolstice.maven.plugins</groupId>
52         <artifactId>protobuf-maven-plugin</artifactId>
53         <executions>
54           <execution>
55             <id>compile-protoc</id>
56             <phase>generate-sources</phase>
57             <goals>
58               <goal>compile</goal>
59             </goals>
60              <configuration>
61               <additionalProtoPathElements>
62                 <additionalProtoPathElement>${basedir}/../hbase-protocol/src/main/protobuf</additionalProtoPathElement>
63               </additionalProtoPathElements>
64              </configuration>
65           </execution>
66         </executions>
67       </plugin>
68       <plugin>
69         <groupId>net.revelc.code</groupId>
70         <artifactId>warbucks-maven-plugin</artifactId>
71       </plugin>
72       <plugin>
73         <groupId>org.apache.maven.plugins</groupId>
74         <artifactId>maven-checkstyle-plugin</artifactId>
75         <configuration>
76             <failOnViolation>true</failOnViolation>
77         </configuration>
78       </plugin>
79     </plugins>
80   </build>
81   <dependencies>
82     <dependency>
83       <groupId>org.apache.hbase.thirdparty</groupId>
84       <artifactId>hbase-shaded-protobuf</artifactId>
85     </dependency>
86     <dependency>
87       <groupId>org.apache.hbase.thirdparty</groupId>
88       <artifactId>hbase-shaded-miscellaneous</artifactId>
89     </dependency>
90     <dependency>
91       <groupId>org.apache.hbase</groupId>
92       <artifactId>hbase-annotations</artifactId>
93       <type>test-jar</type>
94       <scope>test</scope>
95     </dependency>
96     <dependency>
97       <groupId>org.apache.hbase</groupId>
98       <artifactId>hbase-logging</artifactId>
99       <type>test-jar</type>
100       <scope>test</scope>
101     </dependency>
102     <dependency>
103       <groupId>org.apache.hbase</groupId>
104       <artifactId>hbase-common</artifactId>
105     </dependency>
106     <dependency>
107       <groupId>org.apache.hbase</groupId>
108       <artifactId>hbase-common</artifactId>
109       <type>test-jar</type>
110       <scope>test</scope>
111     </dependency>
112     <dependency>
113       <groupId>org.apache.hbase</groupId>
114       <artifactId>hbase-hadoop-compat</artifactId>
115     </dependency>
116     <dependency>
117       <groupId>org.apache.hbase</groupId>
118       <artifactId>hbase-hadoop-compat</artifactId>
119       <type>test-jar</type>
120       <scope>test</scope>
121     </dependency>
122     <dependency>
123       <groupId>org.apache.hbase</groupId>
124       <artifactId>${compat.module}</artifactId>
125       <version>${project.version}</version>
126     </dependency>
127     <dependency>
128       <groupId>org.apache.hbase</groupId>
129       <artifactId>${compat.module}</artifactId>
130       <version>${project.version}</version>
131       <type>test-jar</type>
132       <scope>test</scope>
133     </dependency>
134     <dependency>
135       <groupId>org.apache.hbase</groupId>
136       <artifactId>hbase-protocol</artifactId>
137     </dependency>
138     <dependency>
139       <groupId>org.apache.hbase</groupId>
140       <artifactId>hbase-protocol-shaded</artifactId>
141     </dependency>
142     <dependency>
143       <groupId>org.apache.hbase</groupId>
144       <artifactId>hbase-client</artifactId>
145     </dependency>
146     <!--Some of the CPEPs use hbase server-side internals; they shouldn't!-->
147     <dependency>
148       <groupId>org.apache.hbase</groupId>
149       <artifactId>hbase-zookeeper</artifactId>
150     </dependency>
151     <dependency>
152       <groupId>org.apache.hbase</groupId>
153       <artifactId>hbase-zookeeper</artifactId>
154       <type>test-jar</type>
155       <scope>test</scope>
156     </dependency>
157     <dependency>
158       <groupId>org.bouncycastle</groupId>
159       <artifactId>bcprov-jdk15on</artifactId>
160       <scope>test</scope>
161     </dependency>
162     <dependency>
163       <groupId>org.apache.hbase</groupId>
164       <artifactId>hbase-server</artifactId>
165     </dependency>
166     <dependency>
167       <groupId>org.apache.hbase</groupId>
168       <artifactId>hbase-server</artifactId>
169       <type>test-jar</type>
170       <scope>test</scope>
171     </dependency>
172     <dependency>
173       <groupId>org.apache.hbase</groupId>
174       <artifactId>hbase-asyncfs</artifactId>
175       <type>test-jar</type>
176       <scope>test</scope>
177     </dependency>
178     <dependency>
179       <groupId>org.apache.hbase</groupId>
180       <artifactId>hbase-http</artifactId>
181       <type>test-jar</type>
182       <scope>test</scope>
183     </dependency>
184     <!-- The coprocessor.Export needs mapreduce.Import and mapreduce.Export to run the unit tests -->
185     <!-- see org.apache.hadoop.hbase.coprocessor.TestImportExport -->
186     <dependency>
187       <groupId>org.apache.hbase</groupId>
188       <artifactId>hbase-mapreduce</artifactId>
189     </dependency>
190     <dependency>
191       <groupId>org.apache.hbase</groupId>
192       <artifactId>hbase-mapreduce</artifactId>
193       <type>test-jar</type>
194       <scope>test</scope>
195     </dependency>
196     <dependency>
197       <groupId>org.apache.hadoop</groupId>
198       <artifactId>hadoop-minikdc</artifactId>
199       <scope>test</scope>
200     </dependency>
201     <!-- General dependencies -->
202     <dependency>
203       <groupId>org.slf4j</groupId>
204       <artifactId>slf4j-api</artifactId>
205     </dependency>
206     <dependency>
207       <groupId>org.apache.curator</groupId>
208       <artifactId>curator-client</artifactId>
209     </dependency>
210     <dependency>
211       <groupId>junit</groupId>
212       <artifactId>junit</artifactId>
213       <scope>test</scope>
214     </dependency>
215     <dependency>
216       <groupId>org.mockito</groupId>
217       <artifactId>mockito-core</artifactId>
218       <scope>test</scope>
219     </dependency>
220     <dependency>
221       <groupId>org.slf4j</groupId>
222       <artifactId>jcl-over-slf4j</artifactId>
223       <scope>test</scope>
224     </dependency>
225     <dependency>
226       <groupId>org.slf4j</groupId>
227       <artifactId>jul-to-slf4j</artifactId>
228       <scope>test</scope>
229     </dependency>
230     <dependency>
231       <groupId>org.slf4j</groupId>
232       <artifactId>slf4j-log4j12</artifactId>
233       <scope>test</scope>
234     </dependency>
235     <dependency>
236       <groupId>log4j</groupId>
237       <artifactId>log4j</artifactId>
238       <scope>test</scope>
239     </dependency>
240   </dependencies>
241   <profiles>
242     <!-- Skip the tests in this module -->
243     <profile>
244       <id>skipRpcTests</id>
245       <activation>
246         <property>
247           <name>skipRpcTests</name>
248         </property>
249       </activation>
250       <properties>
251         <surefire.skipFirstPart>true</surefire.skipFirstPart>
252         <surefire.skipSecondPart>true</surefire.skipSecondPart>
253       </properties>
254     </profile>
255     <!-- Profiles for building against different hadoop versions -->
256     <!-- There are a lot of common dependencies used here, should investigate
257     if we can combine these profiles somehow -->
258     <!-- profile for building against Hadoop 2.x.  This is the default.  -->
259     <profile>
260       <id>hadoop-2.0</id>
261       <activation>
262         <property>
263           <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
264           <!--h2-->
265           <name>!hadoop.profile</name>
266         </property>
267       </activation>
268       <dependencies>
269         <dependency>
270           <groupId>org.apache.hadoop</groupId>
271           <artifactId>hadoop-common</artifactId>
272         </dependency>
273         <dependency>
274           <groupId>org.apache.hadoop</groupId>
275           <artifactId>hadoop-auth</artifactId>
276         </dependency>
277         <dependency>
278           <groupId>org.apache.hadoop</groupId>
279           <artifactId>hadoop-client</artifactId>
280           <exclusions>
281             <exclusion>
282               <groupId>com.google.guava</groupId>
283               <artifactId>guava</artifactId>
284             </exclusion>
285           </exclusions>
286         </dependency>
287         <dependency>
288           <groupId>org.apache.hadoop</groupId>
289           <artifactId>hadoop-hdfs</artifactId>
290         </dependency>
291         <dependency>
292           <groupId>org.apache.hadoop</groupId>
293           <artifactId>hadoop-hdfs</artifactId>
294           <type>test-jar</type>
295           <scope>test</scope>
296         </dependency>
297         <dependency>
298           <groupId>org.apache.hadoop</groupId>
299           <artifactId>hadoop-minicluster</artifactId>
300           <scope>test</scope>
301           <exclusions>
302             <exclusion>
303               <groupId>com.google.guava</groupId>
304               <artifactId>guava</artifactId>
305             </exclusion>
306             <exclusion>
307               <groupId>org.apache.zookeeper</groupId>
308               <artifactId>zookeeper</artifactId>
309             </exclusion>
310           </exclusions>
311         </dependency>
312         <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
313         <dependency>
314           <groupId>io.netty</groupId>
315           <artifactId>netty</artifactId>
316           <version>${netty.hadoop.version}</version>
317           <scope>test</scope>
318         </dependency>
319       </dependencies>
320     </profile>
321     <!--
322       profile for building against Hadoop 3.0.x. Activate using:
323        mvn -Dhadoop.profile=3.0
324     -->
325     <profile>
326       <id>hadoop-3.0</id>
327       <activation>
328         <property>
329           <name>hadoop.profile</name>
330           <value>3.0</value>
331         </property>
332       </activation>
333       <dependencies>
334         <dependency>
335           <groupId>org.apache.hadoop</groupId>
336           <artifactId>hadoop-common</artifactId>
337         </dependency>
338         <dependency>
339           <groupId>org.apache.hadoop</groupId>
340           <artifactId>hadoop-minicluster</artifactId>
341           <exclusions>
342             <exclusion>
343               <groupId>com.google.guava</groupId>
344               <artifactId>guava</artifactId>
345             </exclusion>
346             <exclusion>
347               <groupId>javax.xml.bind.</groupId>
348               <artifactId>jaxb-api</artifactId>
349             </exclusion>
350             <exclusion>
351               <groupId>javax.ws.rs</groupId>
352               <artifactId>jsr311-api</artifactId>
353             </exclusion>
354           </exclusions>
355         </dependency>
356         <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
357         <dependency>
358           <groupId>io.netty</groupId>
359           <artifactId>netty</artifactId>
360           <version>3.6.2.Final</version>
361           <scope>test</scope>
362         </dependency>
363       </dependencies>
364     </profile>
365     <profile>
366       <id>eclipse-specific</id>
367       <activation>
368         <property>
369           <name>m2e.version</name>
370         </property>
371       </activation>
372       <build>
373         <pluginManagement>
374           <plugins>
375             <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
376             <plugin>
377               <groupId>org.eclipse.m2e</groupId>
378               <artifactId>lifecycle-mapping</artifactId>
379               <version>1.0.0</version>
380               <configuration>
381                 <lifecycleMappingMetadata>
382                   <pluginExecutions>
383                     <pluginExecution>
384                       <pluginExecutionFilter>
385                         <groupId>org.apache.hadoop</groupId>
386                         <artifactId>hadoop-maven-plugins</artifactId>
387                         <versionRange>[2.0.5-alpha,)</versionRange>
388                         <goals>
389                           <goal>protoc</goal>
390                         </goals>
391                       </pluginExecutionFilter>
392                       <action>
393                         <ignore/>
394                       </action>
395                     </pluginExecution>
396                   </pluginExecutions>
397                 </lifecycleMappingMetadata>
398               </configuration>
399             </plugin>
400           </plugins>
401         </pluginManagement>
402       </build>
403     </profile>
404   </profiles>
405 </project>