2 <project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://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 one is upfront to get in front of
147 any dependency that pulls in jersey-core.
148 Jersey-core has implemented version 1
149 Interfaces of what is in this dependency
150 which does version 2.-->
152 <groupId>javax.ws.rs</groupId>
153 <artifactId>javax.ws.rs-api</artifactId>
155 <!-- Intra-project dependencies -->
157 <groupId>org.apache.hbase</groupId>
158 <artifactId>hbase-common</artifactId>
162 <groupId>org.apache.hbase</groupId>
163 <artifactId>hbase-common</artifactId>
164 <type>test-jar</type>
168 <groupId>org.apache.hbase</groupId>
169 <artifactId>hbase-protocol</artifactId>
173 <groupId>org.apache.hbase</groupId>
174 <artifactId>hbase-client</artifactId>
177 <groupId>org.apache.hbase</groupId>
178 <artifactId>hbase-server</artifactId>
181 <groupId>org.apache.hbase</groupId>
182 <artifactId>hbase-hadoop-compat</artifactId>
185 <groupId>org.apache.hbase</groupId>
186 <artifactId>${compat.module}</artifactId>
187 <version>${project.version}</version>
189 <!--Below MR wanted by PE-->
191 <groupId>org.apache.hbase</groupId>
192 <artifactId>hbase-mapreduce</artifactId>
195 <groupId>org.apache.hbase</groupId>
196 <artifactId>hbase-mapreduce</artifactId>
197 <type>test-jar</type>
201 <groupId>org.apache.hbase</groupId>
202 <artifactId>hbase-server</artifactId>
203 <type>test-jar</type>
207 <groupId>org.apache.hbase</groupId>
208 <artifactId>hbase-testing-util</artifactId>
211 <!--This dependency pulls in hadoop-minicluster
212 which pulls in the below. It messes up
213 this build at assembly time. See HBASE-22029-->
215 <groupId>com.sun.jersey</groupId>
216 <artifactId>jersey-core</artifactId>
221 <groupId>org.apache.hbase</groupId>
222 <artifactId>hbase-annotations</artifactId>
223 <type>test-jar</type>
227 <groupId>org.apache.hbase</groupId>
228 <artifactId>hbase-http</artifactId>
229 <type>test-jar</type>
232 <!-- REST dependencies -->
234 <groupId>org.apache.hbase.thirdparty</groupId>
235 <artifactId>hbase-shaded-miscellaneous</artifactId>
238 <groupId>com.google.protobuf</groupId>
239 <artifactId>protobuf-java</artifactId>
242 <groupId>org.apache.httpcomponents</groupId>
243 <artifactId>httpclient</artifactId>
246 <groupId>org.apache.httpcomponents</groupId>
247 <artifactId>httpcore</artifactId>
250 <groupId>org.apache.commons</groupId>
251 <artifactId>commons-lang3</artifactId>
254 <groupId>org.slf4j</groupId>
255 <artifactId>slf4j-api</artifactId>
258 <groupId>javax.xml.bind</groupId>
259 <artifactId>jaxb-api</artifactId>
262 <groupId>javax.servlet</groupId>
263 <artifactId>javax.servlet-api</artifactId>
266 <groupId>com.sun.activation</groupId>
267 <artifactId>javax.activation</artifactId>
270 <groupId>org.eclipse.jetty</groupId>
271 <artifactId>jetty-server</artifactId>
274 <groupId>org.eclipse.jetty</groupId>
275 <artifactId>jetty-servlet</artifactId>
278 <groupId>org.eclipse.jetty</groupId>
279 <artifactId>jetty-util</artifactId>
282 <groupId>org.eclipse.jetty</groupId>
283 <artifactId>jetty-http</artifactId>
286 <groupId>org.eclipse.jetty</groupId>
287 <artifactId>jetty-jmx</artifactId>
290 <groupId>org.glassfish.jersey.containers</groupId>
291 <artifactId>jersey-container-servlet-core</artifactId>
294 <groupId>com.fasterxml.jackson.jaxrs</groupId>
295 <artifactId>jackson-jaxrs-json-provider</artifactId>
298 <groupId>com.fasterxml.jackson.core</groupId>
299 <artifactId>jackson-annotations</artifactId>
302 <groupId>com.fasterxml.jackson.core</groupId>
303 <artifactId>jackson-core</artifactId>
306 <groupId>com.fasterxml.jackson.core</groupId>
307 <artifactId>jackson-databind</artifactId>
310 <!-- We *might* need this for XMLStreamReader use in RemoteAdmin
311 TODO figure out if we can remove it.
313 <groupId>org.codehaus.jettison</groupId>
314 <artifactId>jettison</artifactId>
317 <groupId>stax</groupId>
318 <artifactId>stax-api</artifactId>
323 <!--For JspC used in ant task-->
324 <groupId>org.glassfish.web</groupId>
325 <artifactId>javax.servlet.jsp</artifactId>
327 <!-- Specifically needed for jetty-jsp, included
328 to bypass version scanning that hits a bad repo
331 <groupId>org.glassfish</groupId>
332 <artifactId>javax.el</artifactId>
335 <groupId>org.apache.kerby</groupId>
336 <artifactId>kerb-simplekdc</artifactId>
340 <groupId>org.apache.hadoop</groupId>
341 <artifactId>hadoop-minikdc</artifactId>
345 <groupId>org.apache.kerby</groupId>
346 <artifactId>kerb-core</artifactId>
350 <groupId>commons-io</groupId>
351 <artifactId>commons-io</artifactId>
355 <groupId>junit</groupId>
356 <artifactId>junit</artifactId>
360 <groupId>org.mockito</groupId>
361 <artifactId>mockito-core</artifactId>
365 <groupId>com.github.stephenc.findbugs</groupId>
366 <artifactId>findbugs-annotations</artifactId>
367 <optional>true</optional>
371 <groupId>org.bouncycastle</groupId>
372 <artifactId>bcprov-jdk15on</artifactId>
377 <!-- Skip the tests in this module -->
379 <id>skipRestTests</id>
382 <name>skipRestTests</name>
386 <surefire.skipFirstPart>true</surefire.skipFirstPart>
387 <surefire.skipSecondPart>true</surefire.skipSecondPart>
390 <!-- Hadoop-specific dependencies -->
391 <!-- profile for building against Hadoop 2.0.x
398 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
400 <name>!hadoop.profile</name>
405 <groupId>org.apache.hadoop</groupId>
406 <artifactId>hadoop-mapreduce-client-core</artifactId>
410 <groupId>com.google.guava</groupId>
411 <artifactId>guava</artifactId>
416 <groupId>org.apache.hadoop</groupId>
417 <artifactId>hadoop-annotations</artifactId>
420 <groupId>org.apache.hadoop</groupId>
421 <artifactId>hadoop-common</artifactId>
424 <groupId>org.apache.hadoop</groupId>
425 <artifactId>hadoop-auth</artifactId>
430 profile for building against Hadoop 3.0.0. Activate using:
431 mvn -Dhadoop.profile=3.0
437 <name>hadoop.profile</name>
441 <dependencyManagement>
444 <groupId>org.apache.hadoop</groupId>
445 <artifactId>hadoop-yarn-server-nodemanager</artifactId>
448 <groupId>com.sun.jersey</groupId>
449 <artifactId>jersey-core</artifactId>
454 <groupId>org.apache.hadoop</groupId>
455 <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
458 <groupId>com.sun.jersey</groupId>
459 <artifactId>jersey-core</artifactId>
464 <groupId>org.apache.hadoop</groupId>
465 <artifactId>hadoop-yarn-server-timelineservice</artifactId>
468 <groupId>javax.ws.rs</groupId>
469 <artifactId>jsr311-api</artifactId>
474 <groupId>org.apache.hadoop</groupId>
475 <artifactId>hadoop-yarn-common</artifactId>
478 <groupId>com.sun.jersey</groupId>
479 <artifactId>jersey-core</artifactId>
484 </dependencyManagement>
487 <groupId>org.apache.hadoop</groupId>
488 <artifactId>hadoop-mapreduce-client-core</artifactId>
492 <groupId>org.apache.hadoop</groupId>
493 <artifactId>hadoop-annotations</artifactId>
496 <groupId>org.apache.hadoop</groupId>
497 <artifactId>hadoop-common</artifactId>
500 <groupId>org.apache.hadoop</groupId>
501 <artifactId>hadoop-auth</artifactId>
506 <id>eclipse-specific</id>
509 <name>m2e.version</name>
515 <!--This plugin's configuration is used to store Eclipse m2e settings
516 only. It has no influence on the Maven build itself.-->
518 <groupId>org.eclipse.m2e</groupId>
519 <artifactId>lifecycle-mapping</artifactId>
521 <lifecycleMappingMetadata>
524 <pluginExecutionFilter>
525 <groupId>org.apache.maven.plugins</groupId>
526 <artifactId>maven-antrun-plugin</artifactId>
527 <versionRange>[1.6,)</versionRange>
531 </pluginExecutionFilter>
537 </lifecycleMappingMetadata>