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>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-common</artifactId>
149 <groupId>org.apache.hbase</groupId>
150 <artifactId>hbase-common</artifactId>
151 <type>test-jar</type>
155 <groupId>org.apache.hbase</groupId>
156 <artifactId>hbase-protocol-shaded</artifactId>
160 <groupId>org.apache.hbase</groupId>
161 <artifactId>hbase-client</artifactId>
164 <groupId>org.apache.hbase</groupId>
165 <artifactId>hbase-server</artifactId>
168 <groupId>org.apache.hbase</groupId>
169 <artifactId>hbase-hadoop-compat</artifactId>
172 <groupId>org.apache.hbase</groupId>
173 <artifactId>${compat.module}</artifactId>
174 <version>${project.version}</version>
176 <!--Below MR wanted by PE-->
178 <groupId>org.apache.hbase</groupId>
179 <artifactId>hbase-mapreduce</artifactId>
182 <groupId>org.apache.hbase</groupId>
183 <artifactId>hbase-mapreduce</artifactId>
184 <type>test-jar</type>
188 <groupId>org.apache.hbase</groupId>
189 <artifactId>hbase-server</artifactId>
190 <type>test-jar</type>
194 <groupId>org.apache.hbase</groupId>
195 <artifactId>hbase-testing-util</artifactId>
198 <!--This dependency pulls in hadoop-minicluster
199 which pulls in the below. It messes up
200 this build at assembly time. See HBASE-22029-->
202 <groupId>com.sun.jersey</groupId>
203 <artifactId>jersey-core</artifactId>
208 <groupId>org.apache.hbase</groupId>
209 <artifactId>hbase-annotations</artifactId>
210 <type>test-jar</type>
214 <groupId>org.apache.hbase</groupId>
215 <artifactId>hbase-http</artifactId>
216 <type>test-jar</type>
219 <!-- REST dependencies -->
221 <groupId>org.apache.hbase.thirdparty</groupId>
222 <artifactId>hbase-shaded-miscellaneous</artifactId>
225 <groupId>org.apache.hbase.thirdparty</groupId>
226 <artifactId>hbase-shaded-protobuf</artifactId>
229 <groupId>org.apache.httpcomponents</groupId>
230 <artifactId>httpclient</artifactId>
233 <groupId>org.apache.httpcomponents</groupId>
234 <artifactId>httpcore</artifactId>
237 <groupId>org.apache.commons</groupId>
238 <artifactId>commons-lang3</artifactId>
241 <groupId>org.slf4j</groupId>
242 <artifactId>slf4j-api</artifactId>
245 <groupId>javax.xml.bind</groupId>
246 <artifactId>jaxb-api</artifactId>
249 <groupId>javax.servlet</groupId>
250 <artifactId>javax.servlet-api</artifactId>
253 <groupId>com.sun.activation</groupId>
254 <artifactId>javax.activation</artifactId>
257 <groupId>org.eclipse.jetty</groupId>
258 <artifactId>jetty-server</artifactId>
261 <groupId>org.eclipse.jetty</groupId>
262 <artifactId>jetty-servlet</artifactId>
265 <groupId>org.eclipse.jetty</groupId>
266 <artifactId>jetty-util</artifactId>
269 <groupId>org.eclipse.jetty</groupId>
270 <artifactId>jetty-http</artifactId>
273 <groupId>org.eclipse.jetty</groupId>
274 <artifactId>jetty-jmx</artifactId>
277 <groupId>org.glassfish.jersey.containers</groupId>
278 <artifactId>jersey-container-servlet-core</artifactId>
281 <groupId>com.fasterxml.jackson.jaxrs</groupId>
282 <artifactId>jackson-jaxrs-json-provider</artifactId>
285 <groupId>com.fasterxml.jackson.core</groupId>
286 <artifactId>jackson-annotations</artifactId>
289 <groupId>com.fasterxml.jackson.core</groupId>
290 <artifactId>jackson-core</artifactId>
293 <groupId>com.fasterxml.jackson.core</groupId>
294 <artifactId>jackson-databind</artifactId>
297 <!-- We *might* need this for XMLStreamReader use in RemoteAdmin
298 TODO figure out if we can remove it.
300 <groupId>org.codehaus.jettison</groupId>
301 <artifactId>jettison</artifactId>
304 <groupId>stax</groupId>
305 <artifactId>stax-api</artifactId>
310 <!--For JspC used in ant task-->
311 <groupId>org.glassfish.web</groupId>
312 <artifactId>javax.servlet.jsp</artifactId>
314 <!-- Specifically needed for jetty-jsp, included
315 to bypass version scanning that hits a bad repo
318 <groupId>org.glassfish</groupId>
319 <artifactId>javax.el</artifactId>
322 <groupId>org.apache.kerby</groupId>
323 <artifactId>kerb-simplekdc</artifactId>
327 <groupId>org.apache.hadoop</groupId>
328 <artifactId>hadoop-minikdc</artifactId>
332 <groupId>org.apache.kerby</groupId>
333 <artifactId>kerb-core</artifactId>
337 <groupId>commons-io</groupId>
338 <artifactId>commons-io</artifactId>
342 <groupId>junit</groupId>
343 <artifactId>junit</artifactId>
347 <groupId>org.mockito</groupId>
348 <artifactId>mockito-core</artifactId>
352 <groupId>com.github.stephenc.findbugs</groupId>
353 <artifactId>findbugs-annotations</artifactId>
354 <scope>compile</scope>
355 <optional>true</optional>
359 <groupId>org.bouncycastle</groupId>
360 <artifactId>bcprov-jdk15on</artifactId>
365 <!-- Skip the tests in this module -->
367 <id>skipRestTests</id>
370 <name>skipRestTests</name>
374 <surefire.skipFirstPart>true</surefire.skipFirstPart>
375 <surefire.skipSecondPart>true</surefire.skipSecondPart>
378 <!-- Hadoop-specific dependencies -->
379 <!-- profile for building against Hadoop 2.0.x
386 <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
388 <name>!hadoop.profile</name>
393 <groupId>org.apache.hadoop</groupId>
394 <artifactId>hadoop-mapreduce-client-core</artifactId>
398 <groupId>com.google.guava</groupId>
399 <artifactId>guava</artifactId>
404 <groupId>org.apache.hadoop</groupId>
405 <artifactId>hadoop-annotations</artifactId>
408 <groupId>org.apache.hadoop</groupId>
409 <artifactId>hadoop-common</artifactId>
412 <groupId>org.apache.hadoop</groupId>
413 <artifactId>hadoop-auth</artifactId>
418 profile for building against Hadoop 3.0.0. Activate using:
419 mvn -Dhadoop.profile=3.0
425 <name>hadoop.profile</name>
429 <dependencyManagement>
432 <groupId>org.apache.hadoop</groupId>
433 <artifactId>hadoop-yarn-server-nodemanager</artifactId>
436 <groupId>com.sun.jersey</groupId>
437 <artifactId>jersey-core</artifactId>
442 <groupId>org.apache.hadoop</groupId>
443 <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
446 <groupId>com.sun.jersey</groupId>
447 <artifactId>jersey-core</artifactId>
452 <groupId>org.apache.hadoop</groupId>
453 <artifactId>hadoop-yarn-server-timelineservice</artifactId>
456 <groupId>javax.ws.rs</groupId>
457 <artifactId>jsr311-api</artifactId>
462 <groupId>org.apache.hadoop</groupId>
463 <artifactId>hadoop-yarn-common</artifactId>
466 <groupId>com.sun.jersey</groupId>
467 <artifactId>jersey-core</artifactId>
472 </dependencyManagement>
475 <groupId>org.apache.hadoop</groupId>
476 <artifactId>hadoop-mapreduce-client-core</artifactId>
480 <groupId>org.apache.hadoop</groupId>
481 <artifactId>hadoop-annotations</artifactId>
484 <groupId>org.apache.hadoop</groupId>
485 <artifactId>hadoop-common</artifactId>
488 <groupId>org.apache.hadoop</groupId>
489 <artifactId>hadoop-auth</artifactId>
494 <id>eclipse-specific</id>
497 <name>m2e.version</name>
503 <!--This plugin's configuration is used to store Eclipse m2e settings
504 only. It has no influence on the Maven build itself.-->
506 <groupId>org.eclipse.m2e</groupId>
507 <artifactId>lifecycle-mapping</artifactId>
509 <lifecycleMappingMetadata>
512 <pluginExecutionFilter>
513 <groupId>org.apache.maven.plugins</groupId>
514 <artifactId>maven-antrun-plugin</artifactId>
515 <versionRange>[1.6,)</versionRange>
519 </pluginExecutionFilter>
525 </lifecycleMappingMetadata>