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>
239 <groupId>org.mortbay.jetty</groupId>
240 <artifactId>jsp-2.1</artifactId>
241 <scope>compile</scope>
244 <groupId>tomcat</groupId>
245 <artifactId>jasper-compiler</artifactId>
246 <scope>compile</scope>
249 <groupId>tomcat</groupId>
250 <artifactId>jasper-runtime</artifactId>
252 <!-- REST dependencies -->
254 <groupId>com.google.guava</groupId>
255 <artifactId>guava</artifactId>
258 <groupId>com.google.protobuf</groupId>
259 <artifactId>protobuf-java</artifactId>
262 <groupId>com.sun.jersey</groupId>
263 <artifactId>jersey-core</artifactId>
266 <groupId>com.sun.jersey</groupId>
267 <artifactId>jersey-json</artifactId>
270 <groupId>com.sun.jersey</groupId>
271 <artifactId>jersey-server</artifactId>
274 <groupId>commons-cli</groupId>
275 <artifactId>commons-cli</artifactId>
278 <groupId>org.apache.httpcomponents</groupId>
279 <artifactId>httpclient</artifactId>
282 <groupId>org.apache.httpcomponents</groupId>
283 <artifactId>httpcore</artifactId>
286 <groupId>commons-lang</groupId>
287 <artifactId>commons-lang</artifactId>
290 <groupId>commons-logging</groupId>
291 <artifactId>commons-logging</artifactId>
294 <groupId>javax.xml.bind</groupId>
295 <artifactId>jaxb-api</artifactId>
298 <groupId>org.codehaus.jackson</groupId>
299 <artifactId>jackson-core-asl</artifactId>
302 <groupId>org.codehaus.jackson</groupId>
303 <artifactId>jackson-jaxrs</artifactId>
306 <groupId>org.mortbay.jetty</groupId>
307 <artifactId>jetty</artifactId>
310 <groupId>org.mortbay.jetty</groupId>
311 <artifactId>jetty-sslengine</artifactId>
314 <groupId>org.mortbay.jetty</groupId>
315 <artifactId>jetty-util</artifactId>
318 <groupId>org.mortbay.jetty</groupId>
319 <artifactId>jsp-api-2.1</artifactId>
322 <groupId>org.mortbay.jetty</groupId>
323 <artifactId>servlet-api-2.5</artifactId>
325 <!-- test dependencies -->
327 <groupId>org.codehaus.jackson</groupId>
328 <artifactId>jackson-mapper-asl</artifactId>
333 <!-- Skip the tests in this module -->
335 <id>skipRestTests</id>
338 <name>skipRestTests</name>
342 <surefire.skipFirstPart>true</surefire.skipFirstPart>
343 <surefire.skipSecondPart>true</surefire.skipSecondPart>
347 <id>compile-protobuf</id>
350 <name>compile-protobuf</name>
356 <groupId>org.xolstice.maven.plugins</groupId>
357 <artifactId>protobuf-maven-plugin</artifactId>
360 <id>compile-protoc</id>
361 <phase>generate-sources</phase>
371 <!-- Hadoop-specific dependencies -->
372 <!-- profile for building against Hadoop 2.0.x
379 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
380 <!--h2--><name>!hadoop.profile</name>
385 <groupId>org.apache.hadoop</groupId>
386 <artifactId>hadoop-mapreduce-client-core</artifactId>
390 <groupId>org.apache.hadoop</groupId>
391 <artifactId>hadoop-common</artifactId>
394 <groupId>org.apache.hadoop</groupId>
395 <artifactId>hadoop-auth</artifactId>
400 profile for building against Hadoop 3.0.0. Activate using:
401 mvn -Dhadoop.profile=3.0
407 <name>hadoop.profile</name>
413 <groupId>org.apache.hadoop</groupId>
414 <artifactId>hadoop-mapreduce-client-core</artifactId>
418 <groupId>org.apache.hadoop</groupId>
419 <artifactId>hadoop-common</artifactId>
422 <groupId>org.apache.hadoop</groupId>
423 <artifactId>hadoop-auth</artifactId>