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">
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
15 * http://www.apache.org/licenses/LICENSE-2.0
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.
24 <modelVersion>4.0.0</modelVersion>
26 <artifactId>hbase</artifactId>
27 <groupId>org.apache.hbase</groupId>
28 <version>2.0.0-SNAPSHOT</version>
29 <relativePath>..</relativePath>
31 <artifactId>hbase-rest</artifactId>
32 <name>Apache HBase - Rest</name>
33 <description>HBase Rest Server</description>
36 <!-- Makes sure the resources get added before they are processed
37 by placing this first -->
39 <!-- Add the build webabpps to the classpth -->
41 <directory>${project.build.directory}</directory>
43 <include>hbase-webapps/**</include>
49 <directory>src/test/resources</directory>
51 <include>**/**</include>
57 <groupId>org.apache.maven.plugins</groupId>
58 <artifactId>maven-site-plugin</artifactId>
64 <!--Make it so assembly:single does nothing in here-->
65 <artifactId>maven-assembly-plugin</artifactId>
66 <version>${maven.assembly.version}</version>
68 <skipAssembly>true</skipAssembly>
71 <!-- Make a jar and put the sources in the jar -->
73 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-source-plugin</artifactId>
77 <!-- General ant tasks, bound to different build phases -->
79 <artifactId>maven-antrun-plugin</artifactId>
81 <!-- Generate web app sources -->
84 <phase>generate-sources</phase>
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="**/*~"/>
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"/>
116 <groupId>org.codehaus.mojo</groupId>
117 <artifactId>build-helper-maven-plugin</artifactId>
119 <!-- Add the generated sources -->
121 <id>jspcSource-packageInfo-source</id>
122 <phase>generate-sources</phase>
124 <goal>add-source</goal>
128 <source>${project.build.directory}/generated-sources/java</source>
134 <!-- Testing plugins -->
136 <artifactId>maven-surefire-plugin</artifactId>
140 <name>listener</name>
141 <value>org.apache.hadoop.hbase.ServerResourceCheckerJUnitListener</value>
144 <systemPropertyVariables>
145 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
146 </systemPropertyVariables>
152 <!--This plugin's configuration is used to store Eclipse m2e settings
153 only. It has no influence on the Maven build itself.-->
155 <groupId>org.eclipse.m2e</groupId>
156 <artifactId>lifecycle-mapping</artifactId>
157 <version>1.0.0</version>
159 <lifecycleMappingMetadata>
162 <pluginExecutionFilter>
163 <groupId>org.apache.maven.plugins</groupId>
164 <artifactId>maven-antrun-plugin</artifactId>
165 <versionRange>[1.6,)</versionRange>
169 </pluginExecutionFilter>
175 </lifecycleMappingMetadata>
183 <!-- Intra-project dependencies -->
185 <groupId>org.apache.hbase</groupId>
186 <artifactId>hbase-common</artifactId>
190 <groupId>org.apache.hbase</groupId>
191 <artifactId>hbase-protocol</artifactId>
195 <groupId>org.apache.hbase</groupId>
196 <artifactId>hbase-annotations</artifactId>
199 <groupId>jdk.tools</groupId>
200 <artifactId>jdk.tools</artifactId>
205 <groupId>org.apache.hbase</groupId>
206 <artifactId>hbase-client</artifactId>
209 <groupId>org.apache.hbase</groupId>
210 <artifactId>hbase-server</artifactId>
213 <groupId>org.apache.hbase</groupId>
214 <artifactId>hbase-hadoop-compat</artifactId>
217 <groupId>org.apache.hbase</groupId>
218 <artifactId>${compat.module}</artifactId>
219 <version>${project.version}</version>
222 <groupId>org.apache.hbase</groupId>
223 <artifactId>hbase-server</artifactId>
224 <type>test-jar</type>
228 <groupId>org.apache.hbase</groupId>
229 <artifactId>hbase-testing-util</artifactId>
233 <groupId>org.apache.hbase</groupId>
234 <artifactId>hbase-annotations</artifactId>
235 <type>test-jar</type>
238 <!-- REST dependencies -->
240 <groupId>com.google.guava</groupId>
241 <artifactId>guava</artifactId>
244 <groupId>com.google.protobuf</groupId>
245 <artifactId>protobuf-java</artifactId>
248 <groupId>commons-cli</groupId>
249 <artifactId>commons-cli</artifactId>
252 <groupId>org.apache.httpcomponents</groupId>
253 <artifactId>httpclient</artifactId>
256 <groupId>org.apache.httpcomponents</groupId>
257 <artifactId>httpcore</artifactId>
260 <groupId>commons-lang</groupId>
261 <artifactId>commons-lang</artifactId>
264 <groupId>commons-logging</groupId>
265 <artifactId>commons-logging</artifactId>
268 <groupId>javax.xml.bind</groupId>
269 <artifactId>jaxb-api</artifactId>
272 <groupId>javax.servlet</groupId>
273 <artifactId>javax.servlet-api</artifactId>
276 <groupId>org.eclipse.jetty</groupId>
277 <artifactId>jetty-server</artifactId>
280 <groupId>org.eclipse.jetty</groupId>
281 <artifactId>jetty-servlet</artifactId>
284 <groupId>org.eclipse.jetty</groupId>
285 <artifactId>jetty-util</artifactId>
288 <groupId>org.eclipse.jetty</groupId>
289 <artifactId>jetty-http</artifactId>
292 <groupId>org.eclipse.jetty</groupId>
293 <artifactId>jetty-io</artifactId>
296 <groupId>org.eclipse.jetty</groupId>
297 <artifactId>jetty-jmx</artifactId>
300 <groupId>org.eclipse.jetty</groupId>
301 <artifactId>jetty-jsp</artifactId>
304 <groupId>org.glassfish.jersey.containers</groupId>
305 <artifactId>jersey-container-servlet-core</artifactId>
308 <groupId>org.glassfish.jersey.media</groupId>
309 <artifactId>jersey-media-json-jackson1</artifactId>
313 <!-- Skip the tests in this module -->
315 <id>skipRestTests</id>
318 <name>skipRestTests</name>
322 <surefire.skipFirstPart>true</surefire.skipFirstPart>
323 <surefire.skipSecondPart>true</surefire.skipSecondPart>
327 <id>compile-protobuf</id>
330 <name>compile-protobuf</name>
336 <groupId>org.xolstice.maven.plugins</groupId>
337 <artifactId>protobuf-maven-plugin</artifactId>
340 <id>compile-protoc</id>
341 <phase>generate-sources</phase>
351 <!-- Hadoop-specific dependencies -->
352 <!-- profile for building against Hadoop 2.0.x
359 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
360 <!--h2--><name>!hadoop.profile</name>
365 <groupId>org.apache.hadoop</groupId>
366 <artifactId>hadoop-mapreduce-client-core</artifactId>
370 <groupId>org.apache.hadoop</groupId>
371 <artifactId>hadoop-common</artifactId>
374 <groupId>org.apache.hadoop</groupId>
375 <artifactId>hadoop-auth</artifactId>
380 profile for building against Hadoop 3.0.0. Activate using:
381 mvn -Dhadoop.profile=3.0
387 <name>hadoop.profile</name>
393 <groupId>org.apache.hadoop</groupId>
394 <artifactId>hadoop-mapreduce-client-core</artifactId>
398 <groupId>org.apache.hadoop</groupId>
399 <artifactId>hadoop-common</artifactId>
402 <groupId>org.apache.hadoop</groupId>
403 <artifactId>hadoop-auth</artifactId>