HBASE-23798 Remove hbase-prototcol module (#1360)
[hbase.git] / hbase-examples / pom.xml
blobe95d6a22fbb0f37a0c7efe7a12a65a8cd0e8c30a
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-examples</artifactId>
30   <name>Apache HBase - Examples</name>
31   <description>Examples of HBase usage</description>
32   <!--REMOVE-->
33   <build>
34     <plugins>
35       <plugin>
36         <!--Make it so assembly:single does nothing in here-->
37         <artifactId>maven-assembly-plugin</artifactId>
38         <configuration>
39           <skipAssembly>true</skipAssembly>
40         </configuration>
41       </plugin>
42       <plugin>
43         <artifactId>maven-surefire-plugin</artifactId>
44         <configuration>
45           <!-- Have to set the groups here because we only do
46                     split tests in this package, so groups on live in this module -->
47           <groups>${surefire.firstPartGroups}</groups>
48         </configuration>
49       </plugin>
50       <!-- Make a jar and put the sources in the jar -->
51       <plugin>
52         <groupId>org.apache.maven.plugins</groupId>
53         <artifactId>maven-source-plugin</artifactId>
54       </plugin>
55       <plugin>
56         <groupId>org.xolstice.maven.plugins</groupId>
57         <artifactId>protobuf-maven-plugin</artifactId>
58         <executions>
59           <execution>
60             <id>compile-protoc</id>
61             <phase>generate-sources</phase>
62             <goals>
63               <goal>compile</goal>
64             </goals>
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-miscellaneous</artifactId>
85     </dependency>
86     <dependency>
87       <groupId>org.apache.hbase.thirdparty</groupId>
88       <artifactId>hbase-shaded-netty</artifactId>
89     </dependency>
90     <dependency>
91       <groupId>org.apache.hbase</groupId>
92       <artifactId>hbase-common</artifactId>
93     </dependency>
94     <dependency>
95       <groupId>org.apache.hbase</groupId>
96       <artifactId>hbase-client</artifactId>
97     </dependency>
98     <dependency>
99       <groupId>org.apache.hbase</groupId>
100       <artifactId>hbase-server</artifactId>
101     </dependency>
102     <dependency>
103       <groupId>org.apache.hbase</groupId>
104       <artifactId>hbase-mapreduce</artifactId>
105     </dependency>
106     <dependency>
107       <groupId>org.apache.hbase</groupId>
108       <artifactId>hbase-endpoint</artifactId>
109     </dependency>
110     <dependency>
111       <groupId>org.apache.hbase</groupId>
112       <artifactId>hbase-thrift</artifactId>
113     </dependency>
114     <dependency>
115       <groupId>org.apache.hbase</groupId>
116       <artifactId>hbase-metrics-api</artifactId>
117     </dependency>
118     <dependency>
119       <groupId>org.apache.hbase</groupId>
120       <artifactId>hbase-testing-util</artifactId>
121       <scope>test</scope>
122     </dependency>
123     <dependency>
124       <groupId>org.apache.thrift</groupId>
125       <artifactId>libthrift</artifactId>
126     </dependency>
127     <dependency>
128       <groupId>commons-io</groupId>
129       <artifactId>commons-io</artifactId>
130     </dependency>
131     <dependency>
132       <groupId>org.slf4j</groupId>
133       <artifactId>slf4j-api</artifactId>
134     </dependency>
135     <dependency>
136       <groupId>org.apache.zookeeper</groupId>
137       <artifactId>zookeeper</artifactId>
138     </dependency>
139     <dependency>
140       <groupId>com.google.protobuf</groupId>
141       <artifactId>protobuf-java</artifactId>
142     </dependency>
143     <dependency>
144       <groupId>org.apache.curator</groupId>
145       <artifactId>curator-framework</artifactId>
146     </dependency>
147     <dependency>
148       <groupId>org.apache.curator</groupId>
149       <artifactId>curator-client</artifactId>
150     </dependency>
151     <dependency>
152       <groupId>org.apache.curator</groupId>
153       <artifactId>curator-recipes</artifactId>
154     </dependency>
155     <dependency>
156       <groupId>com.github.stephenc.findbugs</groupId>
157       <artifactId>findbugs-annotations</artifactId>
158       <scope>compile</scope>
159       <optional>true</optional>
160     </dependency>
161     <dependency>
162       <groupId>org.apache.hbase</groupId>
163       <artifactId>hbase-rest</artifactId>
164     </dependency>
165     <dependency>
166       <groupId>junit</groupId>
167       <artifactId>junit</artifactId>
168       <scope>test</scope>
169     </dependency>
170     <dependency>
171       <groupId>org.mockito</groupId>
172       <artifactId>mockito-core</artifactId>
173       <scope>test</scope>
174     </dependency>
175     <dependency>
176       <groupId>org.apache.hadoop</groupId>
177       <artifactId>hadoop-minikdc</artifactId>
178       <scope>test</scope>
179       <exclusions>
180         <exclusion>
181           <groupId>bouncycastle</groupId>
182           <artifactId>bcprov-jdk15</artifactId>
183         </exclusion>
184       </exclusions>
185     </dependency>
186     <dependency>
187       <groupId>org.bouncycastle</groupId>
188       <artifactId>bcprov-jdk15on</artifactId>
189       <scope>test</scope>
190     </dependency>
191     <dependency>
192       <groupId>org.apache.hbase</groupId>
193       <artifactId>hbase-http</artifactId>
194       <scope>test</scope>
195       <type>test-jar</type>
196     </dependency>
197   </dependencies>
198   <profiles>
199     <!-- Skip the tests in this module -->
200     <profile>
201       <id>skipExamplesTests</id>
202       <activation>
203         <property>
204           <name>skipExamplesTests</name>
205         </property>
206       </activation>
207       <properties>
208         <surefire.skipFirstPart>true</surefire.skipFirstPart>
209         <surefire.skipSecondPart>true</surefire.skipSecondPart>
210       </properties>
211     </profile>
212     <!-- Profiles for building against different hadoop versions -->
213     <!-- There are a lot of common dependencies used here, should investigate
214          if we can combine these profiles somehow -->
215     <!-- profile for building against Hadoop 2.x.  This is the default -->
216     <profile>
217       <id>hadoop-2.0</id>
218       <activation>
219         <property>
220           <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
221           <!--h2-->
222           <name>!hadoop.profile</name>
223         </property>
224       </activation>
225       <dependencies>
226         <dependency>
227           <groupId>org.apache.hadoop</groupId>
228           <artifactId>hadoop-mapreduce-client-core</artifactId>
229         </dependency>
230         <dependency>
231           <groupId>org.apache.hadoop</groupId>
232           <artifactId>hadoop-common</artifactId>
233         </dependency>
234       </dependencies>
235       <build>
236         <plugins>
237           <plugin>
238             <artifactId>maven-dependency-plugin</artifactId>
239             <executions>
240               <execution>
241                 <id>create-mrapp-generated-classpath</id>
242                 <phase>generate-test-resources</phase>
243                 <goals>
244                   <goal>build-classpath</goal>
245                 </goals>
246                 <configuration>
247                   <!-- needed to run the unit test for DS to generate
248                                  the required classpath that is required in the env
249                                  of the launch container in the mini mr/yarn cluster
250                                  -->
251                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
252                 </configuration>
253               </execution>
254             </executions>
255           </plugin>
256         </plugins>
257       </build>
258     </profile>
259     <!--
260        profile for building against Hadoop 3.0.x. Activate using:
261         mvn -Dhadoop.profile=3.0
262      -->
263     <profile>
264       <id>hadoop-3.0</id>
265       <activation>
266         <property>
267           <name>hadoop.profile</name>
268           <value>3.0</value>
269         </property>
270       </activation>
271       <properties>
272         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
273       </properties>
274       <dependencies>
275         <dependency>
276           <groupId>org.apache.hadoop</groupId>
277           <artifactId>hadoop-common</artifactId>
278         </dependency>
279         <dependency>
280           <groupId>org.apache.hadoop</groupId>
281           <artifactId>hadoop-minicluster</artifactId>
282         </dependency>
283       </dependencies>
284       <build>
285         <plugins>
286           <plugin>
287             <artifactId>maven-dependency-plugin</artifactId>
288             <executions>
289               <execution>
290                 <id>create-mrapp-generated-classpath</id>
291                 <phase>generate-test-resources</phase>
292                 <goals>
293                   <goal>build-classpath</goal>
294                 </goals>
295                 <configuration>
296                   <!-- needed to run the unit test for DS to generate
297                                  the required classpath that is required in the env
298                                  of the launch container in the mini mr/yarn cluster
299                                  -->
300                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
301                 </configuration>
302               </execution>
303             </executions>
304           </plugin>
305         </plugins>
306       </build>
307     </profile>
308     <profile>
309       <id>eclipse-specific</id>
310       <activation>
311         <property>
312           <name>m2e.version</name>
313         </property>
314       </activation>
315       <build>
316         <pluginManagement>
317           <plugins>
318             <!--This plugin's configuration is used to store Eclipse m2e settings
319                  only. It has no influence on the Maven build itself.-->
320             <plugin>
321               <groupId>org.eclipse.m2e</groupId>
322               <artifactId>lifecycle-mapping</artifactId>
323               <configuration>
324                 <lifecycleMappingMetadata>
325                   <pluginExecutions>
326                     <pluginExecution>
327                       <pluginExecutionFilter>
328                         <groupId>org.apache.maven.plugins</groupId>
329                         <artifactId>maven-dependency-plugin</artifactId>
330                         <versionRange>[2.8,)</versionRange>
331                         <goals>
332                           <goal>build-classpath</goal>
333                         </goals>
334                       </pluginExecutionFilter>
335                       <action>
336                         <ignore/>
337                       </action>
338                     </pluginExecution>
339                   </pluginExecutions>
340                 </lifecycleMappingMetadata>
341               </configuration>
342             </plugin>
343           </plugins>
344         </pluginManagement>
345       </build>
346     </profile>
347   </profiles>
348 </project>