HBASE-20444 Addendum keep folks from looking at raw version component array.
[hbase.git] / hbase-examples / pom.xml
blob88144913736ce11bce6dd313260be6d11b471744
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-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     </plugins>
73     <pluginManagement>
74       <plugins>
75         <!--This plugin's configuration is used to store Eclipse m2e settings
76              only. It has no influence on the Maven build itself.-->
77         <plugin>
78           <groupId>org.eclipse.m2e</groupId>
79           <artifactId>lifecycle-mapping</artifactId>
80           <configuration>
81             <lifecycleMappingMetadata>
82               <pluginExecutions>
83                 <pluginExecution>
84                   <pluginExecutionFilter>
85                     <groupId>org.apache.maven.plugins</groupId>
86                     <artifactId>maven-dependency-plugin</artifactId>
87                     <versionRange>[2.8,)</versionRange>
88                     <goals>
89                       <goal>build-classpath</goal>
90                     </goals>
91                   </pluginExecutionFilter>
92                   <action>
93                     <ignore/>
94                   </action>
95                 </pluginExecution>
96               </pluginExecutions>
97             </lifecycleMappingMetadata>
98           </configuration>
99         </plugin>
100       </plugins>
101     </pluginManagement>
102   </build>
103   <dependencies>
104     <dependency>
105       <groupId>org.apache.hbase.thirdparty</groupId>
106       <artifactId>hbase-shaded-miscellaneous</artifactId>
107     </dependency>
108     <dependency>
109       <groupId>org.apache.hbase.thirdparty</groupId>
110       <artifactId>hbase-shaded-netty</artifactId>
111     </dependency>
112     <dependency>
113       <groupId>org.apache.hbase</groupId>
114       <artifactId>hbase-common</artifactId>
115     </dependency>
116     <dependency>
117       <groupId>org.apache.hbase</groupId>
118       <artifactId>hbase-protocol</artifactId>
119     </dependency>
120     <dependency>
121       <groupId>org.apache.hbase</groupId>
122       <artifactId>hbase-client</artifactId>
123     </dependency>
124     <dependency>
125       <groupId>org.apache.hbase</groupId>
126       <artifactId>hbase-server</artifactId>
127     </dependency>
128     <dependency>
129       <groupId>org.apache.hbase</groupId>
130       <artifactId>hbase-mapreduce</artifactId>
131     </dependency>
132     <dependency>
133       <groupId>org.apache.hbase</groupId>
134       <artifactId>hbase-endpoint</artifactId>
135     </dependency>
136     <dependency>
137       <groupId>org.apache.hbase</groupId>
138       <artifactId>hbase-thrift</artifactId>
139     </dependency>
140     <dependency>
141       <groupId>org.apache.hbase</groupId>
142       <artifactId>hbase-metrics-api</artifactId>
143     </dependency>
144     <dependency>
145       <groupId>org.apache.hbase</groupId>
146       <artifactId>hbase-testing-util</artifactId>
147       <scope>test</scope>
148     </dependency>
149     <dependency>
150       <groupId>org.apache.thrift</groupId>
151       <artifactId>libthrift</artifactId>
152     </dependency>
153     <dependency>
154       <groupId>commons-io</groupId>
155       <artifactId>commons-io</artifactId>
156     </dependency>
157     <dependency>
158       <groupId>org.slf4j</groupId>
159       <artifactId>slf4j-api</artifactId>
160     </dependency>
161     <dependency>
162       <groupId>org.apache.zookeeper</groupId>
163       <artifactId>zookeeper</artifactId>
164     </dependency>
165     <dependency>
166       <groupId>com.google.protobuf</groupId>
167       <artifactId>protobuf-java</artifactId>
168     </dependency>
169     <dependency>
170       <groupId>org.apache.curator</groupId>
171       <artifactId>curator-framework</artifactId>
172     </dependency>
173     <dependency>
174       <groupId>org.apache.curator</groupId>
175       <artifactId>curator-client</artifactId>
176     </dependency>
177     <dependency>
178       <groupId>org.apache.curator</groupId>
179       <artifactId>curator-recipes</artifactId>
180     </dependency>
181     <dependency>
182       <groupId>com.github.stephenc.findbugs</groupId>
183       <artifactId>findbugs-annotations</artifactId>
184     </dependency>
185     <dependency>
186       <groupId>junit</groupId>
187       <artifactId>junit</artifactId>
188       <scope>test</scope>
189     </dependency>
190     <dependency>
191       <groupId>org.mockito</groupId>
192       <artifactId>mockito-core</artifactId>
193       <scope>test</scope>
194     </dependency>
195   </dependencies>
196   <profiles>
197     <!-- Skip the tests in this module -->
198     <profile>
199       <id>skipExamplesTests</id>
200       <activation>
201         <property>
202           <name>skipExamplesTests</name>
203         </property>
204       </activation>
205       <properties>
206         <surefire.skipFirstPart>true</surefire.skipFirstPart>
207         <surefire.skipSecondPart>true</surefire.skipSecondPart>
208       </properties>
209     </profile>
210     <!-- Profiles for building against different hadoop versions -->
211     <!-- There are a lot of common dependencies used here, should investigate
212          if we can combine these profiles somehow -->
213     <!-- profile for building against Hadoop 2.x.  This is the default -->
214     <profile>
215       <id>hadoop-2.0</id>
216       <activation>
217         <property>
218           <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
219           <!--h2-->
220           <name>!hadoop.profile</name>
221         </property>
222       </activation>
223       <dependencies>
224         <dependency>
225           <groupId>org.apache.hadoop</groupId>
226           <artifactId>hadoop-mapreduce-client-core</artifactId>
227         </dependency>
228         <dependency>
229           <groupId>org.apache.hadoop</groupId>
230           <artifactId>hadoop-common</artifactId>
231           <exclusions>
232             <exclusion>
233               <groupId>org.apache.htrace</groupId>
234               <artifactId>htrace-core</artifactId>
235             </exclusion>
236           </exclusions>
237         </dependency>
238       </dependencies>
239       <build>
240         <plugins>
241           <plugin>
242             <artifactId>maven-dependency-plugin</artifactId>
243             <executions>
244               <execution>
245                 <id>create-mrapp-generated-classpath</id>
246                 <phase>generate-test-resources</phase>
247                 <goals>
248                   <goal>build-classpath</goal>
249                 </goals>
250                 <configuration>
251                   <!-- needed to run the unit test for DS to generate
252                                  the required classpath that is required in the env
253                                  of the launch container in the mini mr/yarn cluster
254                                  -->
255                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
256                 </configuration>
257               </execution>
258             </executions>
259           </plugin>
260         </plugins>
261       </build>
262     </profile>
263     <!--
264        profile for building against Hadoop 3.0.x. Activate using:
265         mvn -Dhadoop.profile=3.0
266      -->
267     <profile>
268       <id>hadoop-3.0</id>
269       <activation>
270         <property>
271           <name>hadoop.profile</name>
272           <value>3.0</value>
273         </property>
274       </activation>
275       <properties>
276         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
277       </properties>
278       <dependencies>
279         <dependency>
280           <groupId>org.apache.hadoop</groupId>
281           <artifactId>hadoop-common</artifactId>
282         </dependency>
283         <dependency>
284           <groupId>org.apache.hadoop</groupId>
285           <artifactId>hadoop-minicluster</artifactId>
286           <exclusions>
287             <exclusion>
288               <groupId>org.apache.htrace</groupId>
289               <artifactId>htrace-core</artifactId>
290             </exclusion>
291           </exclusions>
292         </dependency>
293       </dependencies>
294       <build>
295         <plugins>
296           <plugin>
297             <artifactId>maven-dependency-plugin</artifactId>
298             <executions>
299               <execution>
300                 <id>create-mrapp-generated-classpath</id>
301                 <phase>generate-test-resources</phase>
302                 <goals>
303                   <goal>build-classpath</goal>
304                 </goals>
305                 <configuration>
306                   <!-- needed to run the unit test for DS to generate
307                                  the required classpath that is required in the env
308                                  of the launch container in the mini mr/yarn cluster
309                                  -->
310                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
311                 </configuration>
312               </execution>
313             </executions>
314           </plugin>
315         </plugins>
316       </build>
317     </profile>
318   </profiles>
319 </project>