HBASE-17401 Removed unnecessary semicolons in hbase-annotations
[hbase.git] / hbase-rest / pom.xml
blob53fbad452be8a23cab6a1e07a05d644d8f4fe178
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     <dependency>
239       <groupId>org.mortbay.jetty</groupId>
240       <artifactId>jsp-2.1</artifactId>
241       <scope>compile</scope>
242     </dependency>
243     <dependency>
244       <groupId>tomcat</groupId>
245       <artifactId>jasper-compiler</artifactId>
246       <scope>compile</scope>
247     </dependency>
248     <dependency>
249       <groupId>tomcat</groupId>
250       <artifactId>jasper-runtime</artifactId>
251     </dependency>
252     <!-- REST dependencies -->
253     <dependency>
254       <groupId>com.google.guava</groupId>
255       <artifactId>guava</artifactId>
256     </dependency>
257     <dependency>
258       <groupId>com.google.protobuf</groupId>
259       <artifactId>protobuf-java</artifactId>
260     </dependency>
261     <dependency>
262       <groupId>com.sun.jersey</groupId>
263       <artifactId>jersey-core</artifactId>
264     </dependency>
265     <dependency>
266       <groupId>com.sun.jersey</groupId>
267       <artifactId>jersey-json</artifactId>
268     </dependency>
269     <dependency>
270       <groupId>com.sun.jersey</groupId>
271       <artifactId>jersey-server</artifactId>
272     </dependency>
273     <dependency>
274       <groupId>commons-cli</groupId>
275       <artifactId>commons-cli</artifactId>
276     </dependency>
277     <dependency>
278       <groupId>org.apache.httpcomponents</groupId>
279       <artifactId>httpclient</artifactId>
280     </dependency>
281     <dependency>
282       <groupId>org.apache.httpcomponents</groupId>
283       <artifactId>httpcore</artifactId>
284     </dependency>
285     <dependency>
286       <groupId>commons-lang</groupId>
287       <artifactId>commons-lang</artifactId>
288     </dependency>
289     <dependency>
290       <groupId>commons-logging</groupId>
291       <artifactId>commons-logging</artifactId>
292     </dependency>
293     <dependency>
294       <groupId>javax.xml.bind</groupId>
295       <artifactId>jaxb-api</artifactId>
296     </dependency>
297     <dependency>
298       <groupId>org.codehaus.jackson</groupId>
299       <artifactId>jackson-core-asl</artifactId>
300     </dependency>
301     <dependency>
302       <groupId>org.codehaus.jackson</groupId>
303       <artifactId>jackson-jaxrs</artifactId>
304     </dependency>
305     <dependency>
306       <groupId>org.mortbay.jetty</groupId>
307       <artifactId>jetty</artifactId>
308     </dependency>
309     <dependency>
310       <groupId>org.mortbay.jetty</groupId>
311       <artifactId>jetty-sslengine</artifactId>
312     </dependency>
313     <dependency>
314       <groupId>org.mortbay.jetty</groupId>
315       <artifactId>jetty-util</artifactId>
316     </dependency>
317     <dependency>
318       <groupId>org.mortbay.jetty</groupId>
319       <artifactId>jsp-api-2.1</artifactId>
320     </dependency>
321     <dependency>
322       <groupId>org.mortbay.jetty</groupId>
323       <artifactId>servlet-api-2.5</artifactId>
324     </dependency>
325     <!-- test dependencies -->
326     <dependency>
327       <groupId>org.codehaus.jackson</groupId>
328       <artifactId>jackson-mapper-asl</artifactId>
329       <scope>test</scope>
330     </dependency>
331   </dependencies>
332   <profiles>
333     <!-- Skip the tests in this module -->
334     <profile>
335       <id>skipRestTests</id>
336       <activation>
337         <property>
338           <name>skipRestTests</name>
339         </property>
340       </activation>
341       <properties>
342         <surefire.skipFirstPart>true</surefire.skipFirstPart>
343         <surefire.skipSecondPart>true</surefire.skipSecondPart>
344       </properties>
345     </profile>
346         <profile>
347           <id>compile-protobuf</id>
348           <activation>
349             <property>
350               <name>compile-protobuf</name>
351             </property>
352           </activation>
353           <build>
354             <plugins>
355               <plugin>
356                 <groupId>org.xolstice.maven.plugins</groupId>
357                 <artifactId>protobuf-maven-plugin</artifactId>
358                 <executions>
359                   <execution>
360                     <id>compile-protoc</id>
361                     <phase>generate-sources</phase>
362                     <goals>
363                       <goal>compile</goal>
364                     </goals>
365                   </execution>
366                 </executions>
367               </plugin>
368             </plugins>
369           </build>
370         </profile>
371     <!-- Hadoop-specific dependencies -->
372     <!-- profile for building against Hadoop 2.0.x
373          This is the default.
374          -->
375     <profile>
376       <id>hadoop-2.0</id>
377       <activation>
378         <property>
379           <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
380           <!--h2--><name>!hadoop.profile</name>
381         </property>
382       </activation>
383       <dependencies>
384         <dependency>
385           <groupId>org.apache.hadoop</groupId>
386           <artifactId>hadoop-mapreduce-client-core</artifactId>
387           <scope>test</scope>
388         </dependency>
389         <dependency>
390           <groupId>org.apache.hadoop</groupId>
391           <artifactId>hadoop-common</artifactId>
392         </dependency>
393         <dependency>
394           <groupId>org.apache.hadoop</groupId>
395           <artifactId>hadoop-auth</artifactId>
396         </dependency>
397       </dependencies>
398     </profile>
399     <!--
400       profile for building against Hadoop 3.0.0. Activate using:
401        mvn -Dhadoop.profile=3.0
402     -->
403     <profile>
404       <id>hadoop-3.0</id>
405       <activation>
406         <property>
407           <name>hadoop.profile</name>
408           <value>3.0</value>
409         </property>
410       </activation>
411       <dependencies>
412         <dependency>
413           <groupId>org.apache.hadoop</groupId>
414           <artifactId>hadoop-mapreduce-client-core</artifactId>
415           <scope>test</scope>
416         </dependency>
417         <dependency>
418           <groupId>org.apache.hadoop</groupId>
419           <artifactId>hadoop-common</artifactId>
420         </dependency>
421         <dependency>
422           <groupId>org.apache.hadoop</groupId>
423           <artifactId>hadoop-auth</artifactId>
424         </dependency>
425       </dependencies>
426     </profile>
427   </profiles>
428 </project>