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">
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 <modelVersion>4.0.0</modelVersion>
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>
29 <artifactId>hbase-rest</artifactId>
30 <name>Apache HBase - Rest</name>
31 <description>HBase Rest Server</description>
33 <!-- Makes sure the resources get added before they are processed
34 by placing this first -->
36 <!-- Add the build webabpps to the classpth -->
38 <directory>${project.build.directory}</directory>
40 <include>hbase-webapps/**</include>
46 <directory>src/test/resources</directory>
48 <include>**/**</include>
54 <!--Make it so assembly:single does nothing in here-->
55 <artifactId>maven-assembly-plugin</artifactId>
57 <skipAssembly>true</skipAssembly>
60 <!-- Make a jar and put the sources in the jar -->
62 <groupId>org.apache.maven.plugins</groupId>
63 <artifactId>maven-source-plugin</artifactId>
65 <!-- General ant tasks, bound to different build phases -->
67 <artifactId>maven-antrun-plugin</artifactId>
69 <!-- Generate web app sources -->
72 <phase>generate-sources</phase>
75 <property name="build.webapps" location="${project.build.directory}/hbase-webapps"/>
76 <property name="src.webapps" location="${basedir}/src/main/resources/hbase-webapps"/>
77 <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
78 <mkdir dir="${build.webapps}"/>
79 <copy todir="${build.webapps}">
80 <fileset dir="${src.webapps}">
81 <exclude name="**/*.jsp"/>
82 <exclude name="**/.*"/>
83 <exclude name="**/*~"/>
86 <!--The compile.classpath is passed in by maven -->
87 <taskdef classname="org.apache.jasper.JspC" name="jspcompiler" classpathref="maven.compile.classpath"/>
88 <mkdir dir="${build.webapps}/rest/WEB-INF"/>
89 <jspcompiler uriroot="${src.webapps}/rest" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.rest" webxml="${build.webapps}/rest/WEB-INF/web.xml"/>
99 <groupId>org.codehaus.mojo</groupId>
100 <artifactId>build-helper-maven-plugin</artifactId>
102 <!-- Add the generated sources -->
104 <id>jspcSource-packageInfo-source</id>
105 <phase>generate-sources</phase>
107 <goal>add-source</goal>
111 <source>${project.build.directory}/generated-sources/java</source>
117 <!-- Testing plugins -->
119 <artifactId>maven-surefire-plugin</artifactId>
121 <systemPropertyVariables>
122 <test.build.webapps>target/test-classes/webapps</test.build.webapps>
123 </systemPropertyVariables>
127 <groupId>org.xolstice.maven.plugins</groupId>
128 <artifactId>protobuf-maven-plugin</artifactId>
131 <id>compile-protoc</id>
132 <phase>generate-sources</phase>
140 <groupId>net.revelc.code</groupId>
141 <artifactId>warbucks-maven-plugin</artifactId>
146 <!--This plugin's configuration is used to store Eclipse m2e settings
147 only. It has no influence on the Maven build itself.-->
149 <groupId>org.eclipse.m2e</groupId>
150 <artifactId>lifecycle-mapping</artifactId>
152 <lifecycleMappingMetadata>
155 <pluginExecutionFilter>
156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-antrun-plugin</artifactId>
158 <versionRange>[1.6,)</versionRange>
162 </pluginExecutionFilter>
168 </lifecycleMappingMetadata>
175 <!-- Intra-project dependencies -->
177 <groupId>org.apache.hbase</groupId>
178 <artifactId>hbase-common</artifactId>
182 <groupId>org.apache.hbase</groupId>
183 <artifactId>hbase-common</artifactId>
184 <type>test-jar</type>
188 <groupId>org.apache.hbase</groupId>
189 <artifactId>hbase-protocol</artifactId>
193 <groupId>org.apache.hbase</groupId>
194 <artifactId>hbase-client</artifactId>
197 <groupId>org.apache.hbase</groupId>
198 <artifactId>hbase-server</artifactId>
201 <groupId>org.apache.hbase</groupId>
202 <artifactId>hbase-hadoop-compat</artifactId>
205 <groupId>org.apache.hbase</groupId>
206 <artifactId>${compat.module}</artifactId>
207 <version>${project.version}</version>
209 <!--Below MR wanted by PE-->
211 <groupId>org.apache.hbase</groupId>
212 <artifactId>hbase-mapreduce</artifactId>
215 <groupId>org.apache.hbase</groupId>
216 <artifactId>hbase-mapreduce</artifactId>
217 <type>test-jar</type>
221 <groupId>org.apache.hbase</groupId>
222 <artifactId>hbase-server</artifactId>
223 <type>test-jar</type>
227 <groupId>org.apache.hbase</groupId>
228 <artifactId>hbase-testing-util</artifactId>
232 <groupId>org.apache.hbase</groupId>
233 <artifactId>hbase-annotations</artifactId>
234 <type>test-jar</type>
237 <!-- REST dependencies -->
239 <groupId>org.apache.hbase.thirdparty</groupId>
240 <artifactId>hbase-shaded-miscellaneous</artifactId>
243 <groupId>com.google.protobuf</groupId>
244 <artifactId>protobuf-java</artifactId>
247 <groupId>org.apache.httpcomponents</groupId>
248 <artifactId>httpclient</artifactId>
251 <groupId>org.apache.httpcomponents</groupId>
252 <artifactId>httpcore</artifactId>
255 <groupId>org.apache.commons</groupId>
256 <artifactId>commons-lang3</artifactId>
259 <groupId>org.slf4j</groupId>
260 <artifactId>slf4j-api</artifactId>
263 <groupId>javax.xml.bind</groupId>
264 <artifactId>jaxb-api</artifactId>
267 <groupId>javax.servlet</groupId>
268 <artifactId>javax.servlet-api</artifactId>
271 <groupId>javax.ws.rs</groupId>
272 <artifactId>javax.ws.rs-api</artifactId>
275 <groupId>org.eclipse.jetty</groupId>
276 <artifactId>jetty-server</artifactId>
279 <groupId>org.eclipse.jetty</groupId>
280 <artifactId>jetty-servlet</artifactId>
283 <groupId>org.eclipse.jetty</groupId>
284 <artifactId>jetty-util</artifactId>
287 <groupId>org.eclipse.jetty</groupId>
288 <artifactId>jetty-http</artifactId>
291 <groupId>org.eclipse.jetty</groupId>
292 <artifactId>jetty-jmx</artifactId>
295 <groupId>org.glassfish.jersey.containers</groupId>
296 <artifactId>jersey-container-servlet-core</artifactId>
299 <groupId>com.fasterxml.jackson.jaxrs</groupId>
300 <artifactId>jackson-jaxrs-json-provider</artifactId>
303 <!-- We *might* need this for XMLStreamReader use in RemoteAdmin
304 TODO figure out if we can remove it.
306 <groupId>org.codehaus.jettison</groupId>
307 <artifactId>jettison</artifactId>
310 <groupId>stax</groupId>
311 <artifactId>stax-api</artifactId>
316 <!--For JspC used in ant task-->
317 <groupId>org.glassfish.web</groupId>
318 <artifactId>javax.servlet.jsp</artifactId>
320 <!-- Specifically needed for jetty-jsp, included
321 to bypass version scanning that hits a bad repo
324 <groupId>org.glassfish</groupId>
325 <artifactId>javax.el</artifactId>
328 <groupId>junit</groupId>
329 <artifactId>junit</artifactId>
333 <groupId>org.mockito</groupId>
334 <artifactId>mockito-core</artifactId>
338 <groupId>com.github.stephenc.findbugs</groupId>
339 <artifactId>findbugs-annotations</artifactId>
340 <optional>true</optional>
344 <!-- Skip the tests in this module -->
346 <id>skipRestTests</id>
349 <name>skipRestTests</name>
353 <surefire.skipFirstPart>true</surefire.skipFirstPart>
354 <surefire.skipSecondPart>true</surefire.skipSecondPart>
357 <!-- Hadoop-specific dependencies -->
358 <!-- profile for building against Hadoop 2.0.x
365 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
367 <name>!hadoop.profile</name>
372 <groupId>org.apache.hadoop</groupId>
373 <artifactId>hadoop-mapreduce-client-core</artifactId>
377 <groupId>com.google.guava</groupId>
378 <artifactId>guava</artifactId>
383 <groupId>org.apache.hadoop</groupId>
384 <artifactId>hadoop-annotations</artifactId>
385 <version>${hadoop-two.version}</version>
388 <groupId>org.apache.hadoop</groupId>
389 <artifactId>hadoop-common</artifactId>
392 <groupId>org.apache.hadoop</groupId>
393 <artifactId>hadoop-auth</artifactId>
398 profile for building against Hadoop 3.0.0. Activate using:
399 mvn -Dhadoop.profile=3.0
405 <name>hadoop.profile</name>
409 <dependencyManagement>
412 <groupId>org.apache.hadoop</groupId>
413 <artifactId>hadoop-yarn-server-nodemanager</artifactId>
414 <version>${hadoop-three.version}</version>
417 <groupId>com.sun.jersey</groupId>
418 <artifactId>jersey-core</artifactId>
423 <groupId>org.apache.hadoop</groupId>
424 <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
425 <version>${hadoop-three.version}</version>
428 <groupId>com.sun.jersey</groupId>
429 <artifactId>jersey-core</artifactId>
434 <groupId>org.apache.hadoop</groupId>
435 <artifactId>hadoop-yarn-server-timelineservice</artifactId>
436 <version>${hadoop-three.version}</version>
439 <groupId>javax.ws.rs</groupId>
440 <artifactId>jsr311-api</artifactId>
445 <groupId>org.apache.hadoop</groupId>
446 <artifactId>hadoop-yarn-common</artifactId>
447 <version>${hadoop-three.version}</version>
450 <groupId>com.sun.jersey</groupId>
451 <artifactId>jersey-core</artifactId>
456 </dependencyManagement>
459 <groupId>org.apache.hadoop</groupId>
460 <artifactId>hadoop-mapreduce-client-core</artifactId>
464 <groupId>org.apache.hadoop</groupId>
465 <artifactId>hadoop-annotations</artifactId>
466 <version>${hadoop-three.version}</version>
469 <groupId>org.apache.hadoop</groupId>
470 <artifactId>hadoop-common</artifactId>
473 <groupId>org.apache.hadoop</groupId>
474 <artifactId>hadoop-auth</artifactId>