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-alpha-3-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>net.revelc.code</groupId>
128 <artifactId>warbucks-maven-plugin</artifactId>
133 <!--This one is upfront to get in front of
134 any dependency that pulls in jersey-core.
135 Jersey-core has implemented version 1
136 Interfaces of what is in this dependency
137 which does version 2.-->
139 <groupId>javax.ws.rs</groupId>
140 <artifactId>javax.ws.rs-api</artifactId>
142 <!-- Intra-project dependencies -->
144 <groupId>org.apache.hbase</groupId>
145 <artifactId>hbase-logging</artifactId>
146 <type>test-jar</type>
150 <groupId>org.apache.hbase</groupId>
151 <artifactId>hbase-common</artifactId>
155 <groupId>org.apache.hbase</groupId>
156 <artifactId>hbase-common</artifactId>
157 <type>test-jar</type>
161 <groupId>org.apache.hbase</groupId>
162 <artifactId>hbase-protocol-shaded</artifactId>
166 <groupId>org.apache.hbase</groupId>
167 <artifactId>hbase-client</artifactId>
170 <groupId>org.apache.hbase</groupId>
171 <artifactId>hbase-server</artifactId>
174 <groupId>org.apache.hbase</groupId>
175 <artifactId>hbase-asyncfs</artifactId>
176 <type>test-jar</type>
180 <groupId>org.apache.hbase</groupId>
181 <artifactId>hbase-hadoop-compat</artifactId>
183 <!--Below MR wanted by PE-->
185 <groupId>org.apache.hbase</groupId>
186 <artifactId>hbase-mapreduce</artifactId>
189 <groupId>org.apache.hbase</groupId>
190 <artifactId>hbase-mapreduce</artifactId>
191 <type>test-jar</type>
195 <groupId>org.apache.hbase</groupId>
196 <artifactId>hbase-server</artifactId>
197 <type>test-jar</type>
201 <groupId>org.apache.hbase</groupId>
202 <artifactId>hbase-testing-util</artifactId>
206 <groupId>com.sun.jersey</groupId>
207 <artifactId>jersey-server</artifactId>
209 <!--This dependency pulls in hadoop-minicluster
210 which pulls in the below. It messes up
211 this build at assembly time. See HBASE-22029 -->
213 <groupId>com.sun.jersey</groupId>
214 <artifactId>jersey-core</artifactId>
219 <groupId>org.apache.hbase</groupId>
220 <artifactId>hbase-annotations</artifactId>
221 <type>test-jar</type>
225 <groupId>org.apache.hbase</groupId>
226 <artifactId>hbase-http</artifactId>
227 <type>test-jar</type>
230 <!-- REST dependencies -->
232 <groupId>org.apache.hbase.thirdparty</groupId>
233 <artifactId>hbase-shaded-miscellaneous</artifactId>
236 <groupId>org.apache.hbase.thirdparty</groupId>
237 <artifactId>hbase-shaded-protobuf</artifactId>
240 <groupId>org.apache.httpcomponents</groupId>
241 <artifactId>httpclient</artifactId>
244 <groupId>org.apache.httpcomponents</groupId>
245 <artifactId>httpcore</artifactId>
248 <groupId>org.apache.commons</groupId>
249 <artifactId>commons-lang3</artifactId>
252 <groupId>org.slf4j</groupId>
253 <artifactId>slf4j-api</artifactId>
256 <groupId>javax.xml.bind</groupId>
257 <artifactId>jaxb-api</artifactId>
260 <groupId>javax.servlet</groupId>
261 <artifactId>javax.servlet-api</artifactId>
264 <groupId>com.sun.activation</groupId>
265 <artifactId>javax.activation</artifactId>
268 <groupId>com.fasterxml.jackson.core</groupId>
269 <artifactId>jackson-annotations</artifactId>
272 <groupId>com.fasterxml.jackson.core</groupId>
273 <artifactId>jackson-core</artifactId>
276 <groupId>com.fasterxml.jackson.core</groupId>
277 <artifactId>jackson-databind</artifactId>
280 <groupId>org.apache.hbase.thirdparty</groupId>
281 <artifactId>hbase-shaded-jackson-jaxrs-json-provider</artifactId>
284 <!-- We *might* need this for XMLStreamReader use in RemoteAdmin
285 TODO figure out if we can remove it.
287 <groupId>org.codehaus.jettison</groupId>
288 <artifactId>jettison</artifactId>
291 <groupId>stax</groupId>
292 <artifactId>stax-api</artifactId>
297 <!--For JspC used in ant task-->
298 <groupId>org.glassfish.web</groupId>
299 <artifactId>javax.servlet.jsp</artifactId>
301 <!-- Specifically needed for jetty-jsp, included
302 to bypass version scanning that hits a bad repo
305 <groupId>org.glassfish</groupId>
306 <artifactId>javax.el</artifactId>
309 <groupId>org.apache.kerby</groupId>
310 <artifactId>kerb-simplekdc</artifactId>
314 <groupId>org.apache.hadoop</groupId>
315 <artifactId>hadoop-minikdc</artifactId>
319 <groupId>org.apache.kerby</groupId>
320 <artifactId>kerb-core</artifactId>
324 <groupId>commons-io</groupId>
325 <artifactId>commons-io</artifactId>
329 <groupId>junit</groupId>
330 <artifactId>junit</artifactId>
334 <groupId>org.mockito</groupId>
335 <artifactId>mockito-core</artifactId>
339 <groupId>com.github.stephenc.findbugs</groupId>
340 <artifactId>findbugs-annotations</artifactId>
341 <scope>compile</scope>
342 <optional>true</optional>
346 <groupId>org.bouncycastle</groupId>
347 <artifactId>bcprov-jdk15on</artifactId>
351 <groupId>org.slf4j</groupId>
352 <artifactId>jcl-over-slf4j</artifactId>
356 <groupId>org.slf4j</groupId>
357 <artifactId>jul-to-slf4j</artifactId>
361 <groupId>org.apache.logging.log4j</groupId>
362 <artifactId>log4j-api</artifactId>
366 <groupId>org.apache.logging.log4j</groupId>
367 <artifactId>log4j-core</artifactId>
371 <groupId>org.apache.logging.log4j</groupId>
372 <artifactId>log4j-slf4j-impl</artifactId>
376 <groupId>org.apache.logging.log4j</groupId>
377 <artifactId>log4j-1.2-api</artifactId>
382 <!-- Skip the tests in this module -->
384 <id>skipRestTests</id>
387 <name>skipRestTests</name>
391 <surefire.skipFirstPart>true</surefire.skipFirstPart>
392 <surefire.skipSecondPart>true</surefire.skipSecondPart>
395 <!-- Hadoop-specific dependencies -->
399 <property><name>!hadoop.profile</name></property>
401 <dependencyManagement>
404 <groupId>org.apache.hadoop</groupId>
405 <artifactId>hadoop-yarn-server-nodemanager</artifactId>
408 <groupId>com.sun.jersey</groupId>
409 <artifactId>jersey-core</artifactId>
414 <groupId>org.apache.hadoop</groupId>
415 <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
418 <groupId>com.sun.jersey</groupId>
419 <artifactId>jersey-core</artifactId>
424 <groupId>org.apache.hadoop</groupId>
425 <artifactId>hadoop-yarn-server-timelineservice</artifactId>
428 <groupId>javax.ws.rs</groupId>
429 <artifactId>jsr311-api</artifactId>
434 <groupId>org.apache.hadoop</groupId>
435 <artifactId>hadoop-yarn-common</artifactId>
438 <groupId>com.sun.jersey</groupId>
439 <artifactId>jersey-server</artifactId>
444 </dependencyManagement>
447 <groupId>org.apache.hadoop</groupId>
448 <artifactId>hadoop-annotations</artifactId>
451 <groupId>org.apache.hadoop</groupId>
452 <artifactId>hadoop-common</artifactId>
455 <groupId>org.apache.hadoop</groupId>
456 <artifactId>hadoop-auth</artifactId>
458 <!--Needed when jdk11/hadoop3 else complaint about
459 NoSuchMethodError: 'java.util.Map javax.ws.rs.core.Application.getProperties()'
460 when REST server is started.
463 <groupId>org.glassfish.jaxb</groupId>
464 <artifactId>jaxb-runtime</artifactId>
465 <version>2.3.2</version>
470 <id>eclipse-specific</id>
473 <name>m2e.version</name>
479 <!--This plugin's configuration is used to store Eclipse m2e settings
480 only. It has no influence on the Maven build itself.-->
482 <groupId>org.eclipse.m2e</groupId>
483 <artifactId>lifecycle-mapping</artifactId>
485 <lifecycleMappingMetadata>
488 <pluginExecutionFilter>
489 <groupId>org.apache.maven.plugins</groupId>
490 <artifactId>maven-antrun-plugin</artifactId>
491 <versionRange>[1.6,)</versionRange>
495 </pluginExecutionFilter>
501 </lifecycleMappingMetadata>