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>2.4.5</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-logging</artifactId>
159 <type>test-jar</type>
163 <groupId>org.apache.hbase</groupId>
164 <artifactId>hbase-common</artifactId>
168 <groupId>org.apache.hbase</groupId>
169 <artifactId>hbase-common</artifactId>
170 <type>test-jar</type>
174 <groupId>org.apache.hbase</groupId>
175 <artifactId>hbase-protocol</artifactId>
179 <groupId>org.apache.hbase</groupId>
180 <artifactId>hbase-client</artifactId>
183 <groupId>org.apache.hbase</groupId>
184 <artifactId>hbase-server</artifactId>
187 <groupId>org.apache.hbase</groupId>
188 <artifactId>hbase-asyncfs</artifactId>
189 <type>test-jar</type>
193 <groupId>org.apache.hbase</groupId>
194 <artifactId>hbase-hadoop-compat</artifactId>
197 <groupId>org.apache.hbase</groupId>
198 <artifactId>${compat.module}</artifactId>
199 <version>${project.version}</version>
201 <!--Below MR wanted by PE-->
203 <groupId>org.apache.hbase</groupId>
204 <artifactId>hbase-mapreduce</artifactId>
207 <groupId>org.apache.hbase</groupId>
208 <artifactId>hbase-mapreduce</artifactId>
209 <type>test-jar</type>
213 <groupId>org.apache.hbase</groupId>
214 <artifactId>hbase-server</artifactId>
215 <type>test-jar</type>
219 <groupId>org.apache.hbase</groupId>
220 <artifactId>hbase-testing-util</artifactId>
223 <!--This dependency pulls in hadoop-minicluster
224 which pulls in the below. It messes up
225 this build at assembly time. See HBASE-22029 -->
227 <groupId>com.sun.jersey</groupId>
228 <artifactId>jersey-core</artifactId>
233 <groupId>org.apache.hbase</groupId>
234 <artifactId>hbase-annotations</artifactId>
235 <type>test-jar</type>
239 <groupId>org.apache.hbase</groupId>
240 <artifactId>hbase-http</artifactId>
241 <type>test-jar</type>
244 <!-- REST dependencies -->
246 <groupId>org.apache.hbase.thirdparty</groupId>
247 <artifactId>hbase-shaded-miscellaneous</artifactId>
250 <groupId>com.google.protobuf</groupId>
251 <artifactId>protobuf-java</artifactId>
254 <groupId>org.apache.httpcomponents</groupId>
255 <artifactId>httpclient</artifactId>
258 <groupId>org.apache.httpcomponents</groupId>
259 <artifactId>httpcore</artifactId>
262 <groupId>org.apache.commons</groupId>
263 <artifactId>commons-lang3</artifactId>
266 <groupId>org.slf4j</groupId>
267 <artifactId>slf4j-api</artifactId>
270 <groupId>javax.xml.bind</groupId>
271 <artifactId>jaxb-api</artifactId>
274 <groupId>javax.servlet</groupId>
275 <artifactId>javax.servlet-api</artifactId>
278 <groupId>com.sun.activation</groupId>
279 <artifactId>javax.activation</artifactId>
282 <groupId>com.fasterxml.jackson.jaxrs</groupId>
283 <artifactId>jackson-jaxrs-json-provider</artifactId>
286 <groupId>com.fasterxml.jackson.core</groupId>
287 <artifactId>jackson-annotations</artifactId>
290 <groupId>com.fasterxml.jackson.core</groupId>
291 <artifactId>jackson-core</artifactId>
294 <groupId>com.fasterxml.jackson.core</groupId>
295 <artifactId>jackson-databind</artifactId>
298 <!-- We *might* need this for XMLStreamReader use in RemoteAdmin
299 TODO figure out if we can remove it.
301 <groupId>org.codehaus.jettison</groupId>
302 <artifactId>jettison</artifactId>
305 <groupId>stax</groupId>
306 <artifactId>stax-api</artifactId>
311 <!--For JspC used in ant task-->
312 <groupId>org.glassfish.web</groupId>
313 <artifactId>javax.servlet.jsp</artifactId>
315 <!-- Specifically needed for jetty-jsp, included
316 to bypass version scanning that hits a bad repo
319 <groupId>org.glassfish</groupId>
320 <artifactId>javax.el</artifactId>
323 <groupId>org.apache.kerby</groupId>
324 <artifactId>kerb-simplekdc</artifactId>
328 <groupId>org.apache.hadoop</groupId>
329 <artifactId>hadoop-minikdc</artifactId>
333 <groupId>org.apache.kerby</groupId>
334 <artifactId>kerb-core</artifactId>
338 <groupId>commons-io</groupId>
339 <artifactId>commons-io</artifactId>
343 <groupId>junit</groupId>
344 <artifactId>junit</artifactId>
348 <groupId>org.mockito</groupId>
349 <artifactId>mockito-core</artifactId>
353 <groupId>com.github.stephenc.findbugs</groupId>
354 <artifactId>findbugs-annotations</artifactId>
355 <scope>compile</scope>
356 <optional>true</optional>
360 <groupId>org.bouncycastle</groupId>
361 <artifactId>bcprov-jdk15on</artifactId>
365 <groupId>org.slf4j</groupId>
366 <artifactId>jcl-over-slf4j</artifactId>
370 <groupId>org.slf4j</groupId>
371 <artifactId>jul-to-slf4j</artifactId>
375 <groupId>org.slf4j</groupId>
376 <artifactId>slf4j-log4j12</artifactId>
380 <groupId>log4j</groupId>
381 <artifactId>log4j</artifactId>
386 <!-- Skip the tests in this module -->
388 <id>skipRestTests</id>
391 <name>skipRestTests</name>
395 <surefire.skipFirstPart>true</surefire.skipFirstPart>
396 <surefire.skipSecondPart>true</surefire.skipSecondPart>
399 <!-- Hadoop-specific dependencies -->
400 <!-- profile for building against Hadoop 2.0.x
407 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
409 <name>!hadoop.profile</name>
414 <groupId>org.apache.hadoop</groupId>
415 <artifactId>hadoop-mapreduce-client-core</artifactId>
419 <groupId>com.google.guava</groupId>
420 <artifactId>guava</artifactId>
425 <groupId>org.apache.hadoop</groupId>
426 <artifactId>hadoop-annotations</artifactId>
429 <groupId>org.apache.hadoop</groupId>
430 <artifactId>hadoop-common</artifactId>
433 <groupId>org.apache.hadoop</groupId>
434 <artifactId>hadoop-auth</artifactId>
439 profile for building against Hadoop 3.0.0. Activate using:
440 mvn -Dhadoop.profile=3.0
446 <name>hadoop.profile</name>
450 <dependencyManagement>
453 <groupId>org.apache.hadoop</groupId>
454 <artifactId>hadoop-yarn-server-nodemanager</artifactId>
457 <groupId>com.sun.jersey</groupId>
458 <artifactId>jersey-core</artifactId>
463 <groupId>org.apache.hadoop</groupId>
464 <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
467 <groupId>com.sun.jersey</groupId>
468 <artifactId>jersey-core</artifactId>
473 <groupId>org.apache.hadoop</groupId>
474 <artifactId>hadoop-yarn-server-timelineservice</artifactId>
477 <groupId>javax.ws.rs</groupId>
478 <artifactId>jsr311-api</artifactId>
483 <groupId>org.apache.hadoop</groupId>
484 <artifactId>hadoop-yarn-common</artifactId>
487 <groupId>com.sun.jersey</groupId>
488 <artifactId>jersey-core</artifactId>
493 </dependencyManagement>
496 <groupId>org.apache.hadoop</groupId>
497 <artifactId>hadoop-mapreduce-client-core</artifactId>
501 <groupId>com.google.guava</groupId>
502 <artifactId>guava</artifactId>
507 <groupId>org.apache.hadoop</groupId>
508 <artifactId>hadoop-annotations</artifactId>
511 <groupId>org.apache.hadoop</groupId>
512 <artifactId>hadoop-common</artifactId>
515 <groupId>org.apache.hadoop</groupId>
516 <artifactId>hadoop-auth</artifactId>
518 <!--Needed when jdk11/hadoop3 else complaint about
519 NoSuchMethodError: 'java.util.Map javax.ws.rs.core.Application.getProperties()'
520 when REST server is started.
523 <groupId>org.glassfish.jaxb</groupId>
524 <artifactId>jaxb-runtime</artifactId>
525 <version>2.3.2</version>
530 <id>eclipse-specific</id>
533 <name>m2e.version</name>
539 <!--This plugin's configuration is used to store Eclipse m2e settings
540 only. It has no influence on the Maven build itself.-->
542 <groupId>org.eclipse.m2e</groupId>
543 <artifactId>lifecycle-mapping</artifactId>
545 <lifecycleMappingMetadata>
548 <pluginExecutionFilter>
549 <groupId>org.apache.maven.plugins</groupId>
550 <artifactId>maven-antrun-plugin</artifactId>
551 <versionRange>[1.6,)</versionRange>
555 </pluginExecutionFilter>
561 </lifecycleMappingMetadata>