HBASE-16438 Create a cell type so that chunk id is embedded in it (Ram)
[hbase.git] / hbase-rest / pom.xml
blob18e9da592fb3cb719b197cbfed5fa15e3bb71ba2
1 <?xml version="1.0"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5   <!--
6 /**
7  * Licensed to the Apache Software Foundation (ASF) under one
8  * or more contributor license agreements.  See the NOTICE file
9  * distributed with this work for additional information
10  * regarding copyright ownership.  The ASF licenses this file
11  * to you under the Apache License, Version 2.0 (the
12  * "License"); you may not use this file except in compliance
13  * with the License.  You may obtain a copy of the License at
14  *
15  *     http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  */
23 -->
24   <modelVersion>4.0.0</modelVersion>
25   <parent>
26     <artifactId>hbase</artifactId>
27     <groupId>org.apache.hbase</groupId>
28     <version>2.0.0-SNAPSHOT</version>
29     <relativePath>..</relativePath>
30   </parent>
31   <artifactId>hbase-rest</artifactId>
32   <name>Apache HBase - Rest</name>
33   <description>HBase Rest Server</description>
35   <build>
36     <!-- Makes sure the resources get added before they are processed
37       by placing this first -->
38     <resources>
39       <!-- Add the build webabpps to the classpth -->
40       <resource>
41         <directory>${project.build.directory}</directory>
42         <includes>
43           <include>hbase-webapps/**</include>
44         </includes>
45       </resource>
46     </resources>
47     <testResources>
48       <testResource>
49         <directory>src/test/resources</directory>
50         <includes>
51           <include>**/**</include>
52         </includes>
53       </testResource>
54     </testResources>
55     <plugins>
56       <plugin>
57         <groupId>org.apache.maven.plugins</groupId>
58         <artifactId>maven-site-plugin</artifactId>
59         <configuration>
60           <skip>true</skip>
61         </configuration>
62       </plugin>
63       <plugin>
64         <!--Make it so assembly:single does nothing in here-->
65         <artifactId>maven-assembly-plugin</artifactId>
66         <version>${maven.assembly.version}</version>
67         <configuration>
68           <skipAssembly>true</skipAssembly>
69         </configuration>
70       </plugin>
71       <!-- Make a jar and put the sources in the jar -->
72       <plugin>
73         <groupId>org.apache.maven.plugins</groupId>
74         <artifactId>maven-source-plugin</artifactId>
75       </plugin>
77       <!-- General ant tasks, bound to different build phases -->
78       <plugin>
79         <artifactId>maven-antrun-plugin</artifactId>
80         <executions>
81           <!-- Generate web app sources -->
82           <execution>
83             <id>generate</id>
84             <phase>generate-sources</phase>
85             <configuration>
86               <target>
87                 <property name="build.webapps" location="${project.build.directory}/hbase-webapps"/>
88                 <property name="src.webapps"
89                           location="${basedir}/src/main/resources/hbase-webapps"/>
90                 <property name="generated.sources"
91                           location="${project.build.directory}/generated-sources"/>
92                 <mkdir dir="${build.webapps}"/>
93                 <copy todir="${build.webapps}">
94                   <fileset dir="${src.webapps}">
95                     <exclude name="**/*.jsp"/>
96                     <exclude name="**/.*"/>
97                     <exclude name="**/*~"/>
98                   </fileset>
99                 </copy>
100                 <!--The compile.classpath is passed in by maven -->
101                 <taskdef classname="org.apache.jasper.JspC" name="jspcompiler"
102                          classpathref="maven.compile.classpath"/>
103                 <mkdir dir="${build.webapps}/rest/WEB-INF"/>
104                 <jspcompiler uriroot="${src.webapps}/rest" outputdir="${generated.sources}/java"
105                              package="org.apache.hadoop.hbase.generated.rest"
106                              webxml="${build.webapps}/rest/WEB-INF/web.xml"/>
107               </target>
108             </configuration>
109             <goals>
110               <goal>run</goal>
111             </goals>
112           </execution>
113         </executions>
114       </plugin>
115       <plugin>
116         <groupId>org.codehaus.mojo</groupId>
117         <artifactId>build-helper-maven-plugin</artifactId>
118         <executions>
119           <!-- Add the generated sources -->
120           <execution>
121             <id>jspcSource-packageInfo-source</id>
122             <phase>generate-sources</phase>
123             <goals>
124               <goal>add-source</goal>
125             </goals>
126             <configuration>
127               <sources>
128                 <source>${project.build.directory}/generated-sources/java</source>
129               </sources>
130             </configuration>
131           </execution>
132         </executions>
133       </plugin>
134       <!-- Testing plugins -->
135       <plugin>
136         <artifactId>maven-surefire-plugin</artifactId>
137         <configuration>
138           <properties>
139             <property>
140               <name>listener</name>
141               <value>org.apache.hadoop.hbase.ServerResourceCheckerJUnitListener</value>
142             </property>
143           </properties>
144           <systemPropertyVariables>
145             <test.build.webapps>target/test-classes/webapps</test.build.webapps>
146           </systemPropertyVariables>
147         </configuration>
148       </plugin>
149     </plugins>
150     <pluginManagement>
151       <plugins>
152         <!--This plugin's configuration is used to store Eclipse m2e settings
153              only. It has no influence on the Maven build itself.-->
154         <plugin>
155           <groupId>org.eclipse.m2e</groupId>
156           <artifactId>lifecycle-mapping</artifactId>
157           <version>1.0.0</version>
158           <configuration>
159             <lifecycleMappingMetadata>
160               <pluginExecutions>
161                 <pluginExecution>
162                   <pluginExecutionFilter>
163                     <groupId>org.apache.maven.plugins</groupId>
164                     <artifactId>maven-antrun-plugin</artifactId>
165                     <versionRange>[1.6,)</versionRange>
166                     <goals>
167                       <goal>run</goal>
168                     </goals>
169                   </pluginExecutionFilter>
170                   <action>
171                     <ignore></ignore>
172                   </action>
173                 </pluginExecution>
174               </pluginExecutions>
175             </lifecycleMappingMetadata>
176           </configuration>
177         </plugin>
178       </plugins>
179     </pluginManagement>
180   </build>
182   <dependencies>
183     <!-- Intra-project dependencies -->
184     <dependency>
185       <groupId>org.apache.hbase</groupId>
186       <artifactId>hbase-common</artifactId>
187       <type>jar</type>
188     </dependency>
189     <dependency>
190       <groupId>org.apache.hbase</groupId>
191       <artifactId>hbase-protocol</artifactId>
192       <type>jar</type>
193     </dependency>
194     <dependency>
195       <groupId>org.apache.hbase</groupId>
196       <artifactId>hbase-annotations</artifactId>
197       <exclusions>
198         <exclusion>
199           <groupId>jdk.tools</groupId>
200           <artifactId>jdk.tools</artifactId>
201         </exclusion>
202       </exclusions>
203     </dependency>
204     <dependency>
205       <groupId>org.apache.hbase</groupId>
206       <artifactId>hbase-client</artifactId>
207     </dependency>
208     <dependency>
209       <groupId>org.apache.hbase</groupId>
210       <artifactId>hbase-server</artifactId>
211     </dependency>
212     <dependency>
213       <groupId>org.apache.hbase</groupId>
214       <artifactId>hbase-hadoop-compat</artifactId>
215     </dependency>
216     <dependency>
217       <groupId>org.apache.hbase</groupId>
218       <artifactId>${compat.module}</artifactId>
219       <version>${project.version}</version>
220     </dependency>
221     <dependency>
222       <groupId>org.apache.hbase</groupId>
223       <artifactId>hbase-server</artifactId>
224       <type>test-jar</type>
225       <scope>test</scope>
226     </dependency>
227     <dependency>
228       <groupId>org.apache.hbase</groupId>
229       <artifactId>hbase-testing-util</artifactId>
230       <scope>test</scope>
231     </dependency>
232     <dependency>
233       <groupId>org.apache.hbase</groupId>
234       <artifactId>hbase-annotations</artifactId>
235       <type>test-jar</type>
236       <scope>test</scope>
237     </dependency>
238     <!-- REST dependencies -->
239     <dependency>
240       <groupId>com.google.guava</groupId>
241       <artifactId>guava</artifactId>
242     </dependency>
243     <dependency>
244       <groupId>com.google.protobuf</groupId>
245       <artifactId>protobuf-java</artifactId>
246     </dependency>
247     <dependency>
248       <groupId>commons-cli</groupId>
249       <artifactId>commons-cli</artifactId>
250     </dependency>
251     <dependency>
252       <groupId>org.apache.httpcomponents</groupId>
253       <artifactId>httpclient</artifactId>
254     </dependency>
255     <dependency>
256       <groupId>org.apache.httpcomponents</groupId>
257       <artifactId>httpcore</artifactId>
258     </dependency>
259     <dependency>
260       <groupId>commons-lang</groupId>
261       <artifactId>commons-lang</artifactId>
262     </dependency>
263     <dependency>
264       <groupId>commons-logging</groupId>
265       <artifactId>commons-logging</artifactId>
266     </dependency>
267     <dependency>
268       <groupId>javax.xml.bind</groupId>
269       <artifactId>jaxb-api</artifactId>
270     </dependency>
271     <dependency>
272       <groupId>javax.servlet</groupId>
273       <artifactId>javax.servlet-api</artifactId>
274     </dependency>
275     <dependency>
276       <groupId>org.eclipse.jetty</groupId>
277       <artifactId>jetty-server</artifactId>
278     </dependency>
279     <dependency>
280       <groupId>org.eclipse.jetty</groupId>
281       <artifactId>jetty-servlet</artifactId>
282     </dependency>
283     <dependency>
284       <groupId>org.eclipse.jetty</groupId>
285       <artifactId>jetty-util</artifactId>
286     </dependency>
287     <dependency>
288       <groupId>org.eclipse.jetty</groupId>
289       <artifactId>jetty-http</artifactId>
290     </dependency>
291     <dependency>
292       <groupId>org.eclipse.jetty</groupId>
293       <artifactId>jetty-io</artifactId>
294     </dependency>
295     <dependency>
296     <groupId>org.eclipse.jetty</groupId>
297     <artifactId>jetty-jmx</artifactId>
298     </dependency>
299     <dependency>
300       <groupId>org.eclipse.jetty</groupId>
301       <artifactId>jetty-jsp</artifactId>
302     </dependency>
303     <dependency>
304       <groupId>org.glassfish.jersey.containers</groupId>
305       <artifactId>jersey-container-servlet-core</artifactId>
306     </dependency>
307     <dependency>
308       <groupId>org.glassfish.jersey.media</groupId>
309       <artifactId>jersey-media-json-jackson1</artifactId>
310     </dependency>
311   </dependencies>
312   <profiles>
313     <!-- Skip the tests in this module -->
314     <profile>
315       <id>skipRestTests</id>
316       <activation>
317         <property>
318           <name>skipRestTests</name>
319         </property>
320       </activation>
321       <properties>
322         <surefire.skipFirstPart>true</surefire.skipFirstPart>
323         <surefire.skipSecondPart>true</surefire.skipSecondPart>
324       </properties>
325     </profile>
326         <profile>
327           <id>compile-protobuf</id>
328           <activation>
329             <property>
330               <name>compile-protobuf</name>
331             </property>
332           </activation>
333           <build>
334             <plugins>
335               <plugin>
336                 <groupId>org.xolstice.maven.plugins</groupId>
337                 <artifactId>protobuf-maven-plugin</artifactId>
338                 <executions>
339                   <execution>
340                     <id>compile-protoc</id>
341                     <phase>generate-sources</phase>
342                     <goals>
343                       <goal>compile</goal>
344                     </goals>
345                   </execution>
346                 </executions>
347               </plugin>
348             </plugins>
349           </build>
350         </profile>
351     <!-- Hadoop-specific dependencies -->
352     <!-- profile for building against Hadoop 2.0.x
353          This is the default.
354          -->
355     <profile>
356       <id>hadoop-2.0</id>
357       <activation>
358         <property>
359           <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
360           <!--h2--><name>!hadoop.profile</name>
361         </property>
362       </activation>
363       <dependencies>
364         <dependency>
365           <groupId>org.apache.hadoop</groupId>
366           <artifactId>hadoop-mapreduce-client-core</artifactId>
367           <scope>test</scope>
368         </dependency>
369         <dependency>
370           <groupId>org.apache.hadoop</groupId>
371           <artifactId>hadoop-common</artifactId>
372         </dependency>
373         <dependency>
374           <groupId>org.apache.hadoop</groupId>
375           <artifactId>hadoop-auth</artifactId>
376         </dependency>
377       </dependencies>
378     </profile>
379     <!--
380       profile for building against Hadoop 3.0.0. Activate using:
381        mvn -Dhadoop.profile=3.0
382     -->
383     <profile>
384       <id>hadoop-3.0</id>
385       <activation>
386         <property>
387           <name>hadoop.profile</name>
388           <value>3.0</value>
389         </property>
390       </activation>
391       <dependencies>
392         <dependency>
393           <groupId>org.apache.hadoop</groupId>
394           <artifactId>hadoop-mapreduce-client-core</artifactId>
395           <scope>test</scope>
396         </dependency>
397         <dependency>
398           <groupId>org.apache.hadoop</groupId>
399           <artifactId>hadoop-common</artifactId>
400         </dependency>
401         <dependency>
402           <groupId>org.apache.hadoop</groupId>
403           <artifactId>hadoop-auth</artifactId>
404         </dependency>
405       </dependencies>
406     </profile>
407   </profiles>
408 </project>