2014-10-07 18:08:54 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2019-05-21 15:34:25 -04:00
|
|
|
<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">
|
2014-10-07 18:08:54 -04:00
|
|
|
<!--
|
|
|
|
/**
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
-->
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
2017-08-19 04:23:52 -04:00
|
|
|
<artifactId>hbase-build-configuration</artifactId>
|
2022-10-23 23:50:48 -04:00
|
|
|
<version>${revision}</version>
|
2017-08-19 04:23:52 -04:00
|
|
|
<relativePath>../hbase-build-configuration</relativePath>
|
2014-10-07 18:08:54 -04:00
|
|
|
</parent>
|
|
|
|
<artifactId>hbase-rest</artifactId>
|
2015-07-15 06:12:36 -04:00
|
|
|
<name>Apache HBase - Rest</name>
|
2014-10-07 18:08:54 -04:00
|
|
|
<description>HBase Rest Server</description>
|
|
|
|
<dependencies>
|
2022-03-19 07:45:29 -04:00
|
|
|
<!--This one is upfront to get in front of
|
|
|
|
any dependency that pulls in jersey-core.
|
|
|
|
Jersey-core has implemented version 1
|
|
|
|
Interfaces of what is in this dependency
|
|
|
|
which does version 2.-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.ws.rs</groupId>
|
|
|
|
<artifactId>javax.ws.rs-api</artifactId>
|
|
|
|
</dependency>
|
2014-10-07 18:08:54 -04:00
|
|
|
<!-- Intra-project dependencies -->
|
2020-05-13 05:59:21 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-logging</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-10-07 18:08:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-common</artifactId>
|
|
|
|
<type>jar</type>
|
|
|
|
</dependency>
|
2017-08-31 11:03:22 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-common</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-07-20 19:25:40 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-protocol</artifactId>
|
|
|
|
<type>jar</type>
|
|
|
|
</dependency>
|
2014-10-07 18:08:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-client</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-server</artifactId>
|
|
|
|
</dependency>
|
2020-05-09 00:00:45 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-asyncfs</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2017-10-02 17:31:48 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-hadoop-compat</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>${compat.module}</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2017-09-02 16:14:09 -04:00
|
|
|
<!--Below MR wanted by PE-->
|
HBASE-18640 Move mapreduce out of hbase-server into separate module.
- Moves out o.a.h.h.{mapred, mapreduce} to new hbase-mapreduce module which depends
on hbase-server because of classes like *Snapshot{Input,Output}Format.java, WALs, replication, etc
- hbase-backup depends on it for WALPlayer and MR job stuff
- A bunch of tools needed to be pulled into hbase-mapreduce becuase of their dependencies on MR.
These are: CompactionTool, LoadTestTool, PerformanceEvaluation, ExportSnapshot
This is better place of them than hbase-server. But ideal place would be in separate hbase-tools module.
- There were some tests in hbase-server which were digging into these tools for static util funtions or
confs. Moved these to better/easily shared place. For eg. security related stuff to HBaseKerberosUtils.
- Note that hbase-mapreduce has secondPartExecution tests. On my machine they took like 20 min, so maybe
more on apache jenkins. That's basically equal reduction of runtime of hbase-server tests, which is a
big win!
Change-Id: Ieeb7235014717ca83ee5cb13b2a27fddfa6838e8
2017-08-20 17:34:16 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-mapreduce</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-mapreduce</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-10-07 18:08:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-server</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-testing-util</artifactId>
|
|
|
|
<scope>test</scope>
|
2019-03-25 09:25:15 -04:00
|
|
|
<exclusions>
|
|
|
|
<!--This dependency pulls in hadoop-minicluster
|
|
|
|
which pulls in the below. It messes up
|
2020-04-24 01:22:35 -04:00
|
|
|
this build at assembly time. See HBASE-22029 -->
|
2019-03-25 09:25:15 -04:00
|
|
|
<exclusion>
|
|
|
|
<groupId>com.sun.jersey</groupId>
|
|
|
|
<artifactId>jersey-core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2014-10-07 18:08:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-annotations</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2019-02-22 15:53:24 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase</groupId>
|
|
|
|
<artifactId>hbase-http</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-10-07 18:08:54 -04:00
|
|
|
<!-- REST dependencies -->
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependency>
|
2017-07-07 01:43:46 -04:00
|
|
|
<groupId>org.apache.hbase.thirdparty</groupId>
|
|
|
|
<artifactId>hbase-shaded-miscellaneous</artifactId>
|
2015-01-21 16:12:57 -05:00
|
|
|
</dependency>
|
2014-10-07 18:08:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.protobuf</groupId>
|
|
|
|
<artifactId>protobuf-java</artifactId>
|
|
|
|
</dependency>
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependency>
|
2016-05-05 16:41:26 -04:00
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
|
<artifactId>httpclient</artifactId>
|
2015-01-21 16:12:57 -05:00
|
|
|
</dependency>
|
2016-08-11 00:28:45 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
|
<artifactId>httpcore</artifactId>
|
|
|
|
</dependency>
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependency>
|
2017-08-24 14:10:17 -04:00
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
2015-01-21 16:12:57 -05:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2017-12-18 05:14:30 -05:00
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
2015-01-21 16:12:57 -05:00
|
|
|
</dependency>
|
2014-10-07 18:08:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.xml.bind</groupId>
|
|
|
|
<artifactId>jaxb-api</artifactId>
|
|
|
|
</dependency>
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependency>
|
2017-01-30 14:54:54 -05:00
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
2017-06-28 17:28:40 -04:00
|
|
|
</dependency>
|
2019-04-15 20:52:44 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.sun.activation</groupId>
|
|
|
|
<artifactId>javax.activation</artifactId>
|
|
|
|
</dependency>
|
2019-02-22 03:24:22 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-annotations</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
</dependency>
|
2021-12-30 23:10:08 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hbase.thirdparty</groupId>
|
|
|
|
<artifactId>hbase-shaded-jackson-jaxrs-json-provider</artifactId>
|
|
|
|
</dependency>
|
2018-04-09 14:37:44 -04:00
|
|
|
<dependency>
|
|
|
|
<!-- We *might* need this for XMLStreamReader use in RemoteAdmin
|
|
|
|
TODO figure out if we can remove it.
|
|
|
|
-->
|
|
|
|
<groupId>org.codehaus.jettison</groupId>
|
|
|
|
<artifactId>jettison</artifactId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>stax</groupId>
|
|
|
|
<artifactId>stax-api</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2017-09-04 16:10:20 -04:00
|
|
|
<dependency>
|
|
|
|
<!--For JspC used in ant task-->
|
|
|
|
<groupId>org.glassfish.web</groupId>
|
|
|
|
<artifactId>javax.servlet.jsp</artifactId>
|
|
|
|
</dependency>
|
2017-09-18 09:47:22 -04:00
|
|
|
<!-- Specifically needed for jetty-jsp, included
|
|
|
|
to bypass version scanning that hits a bad repo
|
|
|
|
see HBASE-18831 -->
|
2017-09-15 20:30:12 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.glassfish</groupId>
|
|
|
|
<artifactId>javax.el</artifactId>
|
|
|
|
</dependency>
|
2019-02-22 15:53:24 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.kerby</groupId>
|
|
|
|
<artifactId>kerb-simplekdc</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.kerby</groupId>
|
|
|
|
<artifactId>kerb-core</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2017-08-31 11:03:22 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
2017-10-03 01:53:34 -04:00
|
|
|
<artifactId>mockito-core</artifactId>
|
2017-08-31 11:03:22 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2020-03-11 22:18:09 -04:00
|
|
|
<groupId>com.github.stephenc.findbugs</groupId>
|
|
|
|
<artifactId>findbugs-annotations</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<optional>true</optional>
|
2017-08-31 11:03:22 -04:00
|
|
|
</dependency>
|
2019-03-05 01:45:11 -05:00
|
|
|
<!--Test-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcprov-jdk15on</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2020-05-13 05:59:21 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>jcl-over-slf4j</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>jul-to-slf4j</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2022-03-11 14:17:43 -05:00
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-api</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-core</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-slf4j-impl</artifactId>
|
2020-05-13 05:59:21 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2022-03-11 14:17:43 -05:00
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-1.2-api</artifactId>
|
2020-05-13 05:59:21 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-10-07 18:08:54 -04:00
|
|
|
</dependencies>
|
2022-05-01 10:41:49 -04:00
|
|
|
<build>
|
2014-10-07 18:08:54 -04:00
|
|
|
<!-- Makes sure the resources get added before they are processed
|
|
|
|
by placing this first -->
|
|
|
|
<resources>
|
|
|
|
<!-- Add the build webabpps to the classpth -->
|
|
|
|
<resource>
|
|
|
|
<directory>${project.build.directory}</directory>
|
|
|
|
<includes>
|
|
|
|
<include>hbase-webapps/**</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>src/test/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/**</include>
|
|
|
|
</includes>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
2019-03-21 12:34:12 -04:00
|
|
|
<plugins>
|
2022-05-01 10:41:49 -04:00
|
|
|
<plugin>
|
2014-10-07 18:08:54 -04:00
|
|
|
<!--Make it so assembly:single does nothing in here-->
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skipAssembly>true</skipAssembly>
|
|
|
|
</configuration>
|
2018-03-21 21:24:14 -04:00
|
|
|
</plugin>
|
2014-10-07 18:08:54 -04:00
|
|
|
<!-- Make a jar and put the sources in the jar -->
|
2022-05-01 10:41:49 -04:00
|
|
|
<plugin>
|
2019-03-21 12:34:12 -04:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2014-10-07 18:08:54 -04:00
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
2018-03-21 21:24:14 -04:00
|
|
|
</plugin>
|
2014-10-07 18:08:54 -04:00
|
|
|
<!-- General ant tasks, bound to different build phases -->
|
2022-05-01 10:41:49 -04:00
|
|
|
<plugin>
|
2019-03-21 12:34:12 -04:00
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2017-07-05 15:06:29 -04:00
|
|
|
<executions>
|
2014-10-07 18:08:54 -04:00
|
|
|
<!-- Generate web app sources -->
|
2017-07-05 15:06:29 -04:00
|
|
|
<execution>
|
2014-10-07 18:08:54 -04:00
|
|
|
<id>generate</id>
|
2022-05-01 10:41:49 -04:00
|
|
|
<goals>
|
2014-10-07 18:08:54 -04:00
|
|
|
<goal>run</goal>
|
2022-05-01 10:41:49 -04:00
|
|
|
</goals>
|
2017-07-05 15:06:29 -04:00
|
|
|
<phase>generate-sources</phase>
|
2014-10-07 18:08:54 -04:00
|
|
|
<configuration>
|
2022-05-01 10:41:49 -04:00
|
|
|
<target>
|
2014-10-07 18:08:54 -04:00
|
|
|
<property location="${project.build.directory}/hbase-webapps" name="build.webapps"/>
|
2017-07-05 15:06:29 -04:00
|
|
|
<property location="${basedir}/src/main/resources/hbase-webapps" name="src.webapps"/>
|
|
|
|
<property location="${project.build.directory}/generated-sources" name="generated.sources"/>
|
2014-10-07 18:08:54 -04:00
|
|
|
<mkdir dir="${build.webapps}"/>
|
|
|
|
<copy todir="${build.webapps}">
|
|
|
|
<fileset dir="${src.webapps}">
|
|
|
|
<exclude name="**/*.jsp"/>
|
|
|
|
<exclude name="**/.*"/>
|
|
|
|
<exclude name="**/*~"/>
|
|
|
|
</fileset>
|
2022-05-01 10:41:49 -04:00
|
|
|
</copy>
|
2014-10-07 18:08:54 -04:00
|
|
|
<!--The compile.classpath is passed in by maven -->
|
2017-07-05 15:06:29 -04:00
|
|
|
<taskdef classname="org.apache.jasper.JspC" classpathref="maven.compile.classpath" name="jspcompiler"/>
|
2014-10-07 18:08:54 -04:00
|
|
|
<mkdir dir="${build.webapps}/rest/WEB-INF"/>
|
2017-07-05 15:06:29 -04:00
|
|
|
<jspcompiler outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.rest" uriroot="${src.webapps}/rest" webxml="${build.webapps}/rest/WEB-INF/web.xml"/>
|
2014-10-07 18:08:54 -04:00
|
|
|
</target>
|
2019-03-21 12:34:12 -04:00
|
|
|
</configuration>
|
2017-07-05 15:06:29 -04:00
|
|
|
</execution>
|
|
|
|
</executions>
|
2018-03-21 21:24:14 -04:00
|
|
|
</plugin>
|
2022-05-01 10:41:49 -04:00
|
|
|
<plugin>
|
2014-10-07 18:08:54 -04:00
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
2017-07-05 15:06:29 -04:00
|
|
|
<executions>
|
2014-10-07 18:08:54 -04:00
|
|
|
<!-- Add the generated sources -->
|
2017-07-05 15:06:29 -04:00
|
|
|
<execution>
|
2014-10-07 18:08:54 -04:00
|
|
|
<id>jspcSource-packageInfo-source</id>
|
2022-05-01 10:41:49 -04:00
|
|
|
<goals>
|
2014-10-07 18:08:54 -04:00
|
|
|
<goal>add-source</goal>
|
2022-05-01 10:41:49 -04:00
|
|
|
</goals>
|
2017-07-05 15:06:29 -04:00
|
|
|
<phase>generate-sources</phase>
|
2019-03-21 12:34:12 -04:00
|
|
|
<configuration>
|
2014-10-07 18:08:54 -04:00
|
|
|
<sources>
|
|
|
|
<source>${project.build.directory}/generated-sources/java</source>
|
|
|
|
</sources>
|
2019-03-21 12:34:12 -04:00
|
|
|
</configuration>
|
2017-07-05 15:06:29 -04:00
|
|
|
</execution>
|
|
|
|
</executions>
|
2019-03-21 12:34:12 -04:00
|
|
|
</plugin>
|
2014-10-07 18:08:54 -04:00
|
|
|
<!-- Testing plugins -->
|
2022-05-01 10:41:49 -04:00
|
|
|
<plugin>
|
2014-10-07 18:08:54 -04:00
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
2019-03-21 12:34:12 -04:00
|
|
|
<configuration>
|
2014-10-07 18:08:54 -04:00
|
|
|
<systemPropertyVariables>
|
|
|
|
<test.build.webapps>target/test-classes/webapps</test.build.webapps>
|
|
|
|
</systemPropertyVariables>
|
2019-03-21 12:34:12 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2022-05-01 10:41:49 -04:00
|
|
|
<plugin>
|
2017-07-05 15:06:29 -04:00
|
|
|
<groupId>org.xolstice.maven.plugins</groupId>
|
|
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>compile-protoc</id>
|
2022-05-01 10:41:49 -04:00
|
|
|
<goals>
|
2017-07-05 15:06:29 -04:00
|
|
|
<goal>compile</goal>
|
2022-05-01 10:41:49 -04:00
|
|
|
</goals>
|
2017-07-05 15:06:29 -04:00
|
|
|
<phase>generate-sources</phase>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2019-03-21 12:34:12 -04:00
|
|
|
</plugin>
|
2022-05-01 10:41:49 -04:00
|
|
|
<plugin>
|
2018-03-21 21:24:14 -04:00
|
|
|
<groupId>net.revelc.code</groupId>
|
|
|
|
<artifactId>warbucks-maven-plugin</artifactId>
|
2019-03-21 12:34:12 -04:00
|
|
|
</plugin>
|
|
|
|
</plugins>
|
2022-05-01 10:41:49 -04:00
|
|
|
</build>
|
2014-10-07 18:08:54 -04:00
|
|
|
<profiles>
|
|
|
|
<!-- Skip the tests in this module -->
|
|
|
|
<profile>
|
2014-10-21 12:26:46 -04:00
|
|
|
<id>skipRestTests</id>
|
2014-10-07 18:08:54 -04:00
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>skipRestTests</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<surefire.skipFirstPart>true</surefire.skipFirstPart>
|
|
|
|
<surefire.skipSecondPart>true</surefire.skipSecondPart>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
2015-01-21 16:12:57 -05:00
|
|
|
<!-- Hadoop-specific dependencies -->
|
|
|
|
<!-- profile for building against Hadoop 2.0.x
|
|
|
|
This is the default.
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>hadoop-2.0</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
2017-07-05 15:06:29 -04:00
|
|
|
<!--h2-->
|
|
|
|
<name>!hadoop.profile</name>
|
2015-01-21 16:12:57 -05:00
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-mapreduce-client-core</artifactId>
|
|
|
|
<scope>test</scope>
|
2017-07-07 01:43:46 -04:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2015-01-21 16:12:57 -05:00
|
|
|
</dependency>
|
2017-08-31 11:03:22 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-annotations</artifactId>
|
|
|
|
</dependency>
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-auth</artifactId>
|
|
|
|
</dependency>
|
HBASE-27340 Artifacts with resolved profiles (#4740)
Make it so our published poms carry the minimum needed to run
an hbase; the published pom has no profiles -- the profiles
specified at build time are resolved, their dependencies inlined,
and then they are stripped -- and no build-time, or plugins
dependencies or properties, etc. Resultant poms have explicit
hadoop lib versions baked in -- no more being able to choose
hbase with hadoop2 or haddop3 at downstream build time by setting
a '-Dhadoop.profile=X.0'.
Pattern is to add profiles when none in sub-modules when
the flatten plugin complains it can't resolve an hadoop
dependency's 'version' (e.g. hadoop-common, hadoop-hdfs).
Adding the hadoop-2.0 and hadoop-3.0 profiles in the sub-module
make it so the flatten plugin can figure 'hadoop.version'
definitively.
Another spin on the above happens when profiles already exist
in submodule but the flatten plugin is complaining it can't
figure figure version on an hadoop dependency NOT under
profiles. Below, we move the delinquent hadoop dependency under
existing profiles (minikdc was the usual dependency outside
profiles in sub-modules that flatten complained about).
Sometimes, moving an hadoop dependency under a profile, there
would be excludes on the local dependency. If the parent pom
excludes section was missing the local excludes, we added them
up to the parent module so all excluding is done up there in
the parent profile dependencyManagement section.
* hbase-asyncfs/pom.xml
* hbase-endpoint/pom.xml
* hbase-examples/pom.xml
* hbase-http/pom.xml
* hbase-rest/pom.xml
* hbase-server/pom.xml
Move the minikdc under profiles so it picks up appropriate hadoop version
when the flatten plugin runs.
* hbase-hadoop2-compat/pom.xml
Add hadoop2 and hadoop3 profiles and move hadoop-common, etc.
under them so we pick up appropriate hadoop version when flatten
plugin runs.
* hbase-mapreduce/pom.xml
Move hadoop dependencies under profiles so right version is
available when the flatten plugin runs.
* hbase-shaded/hbase-shaded-testing-util/pom.xml
Add profiles for hadoop-2.0 and hadoop-3.0 and move the
hadoop dependencies under them.
pom.xml
Add the flatten plugin with the flatten profiles enabled.
Add a few excludes on hadoop profiles picked up from sub-modules.
E.g. exclude bouncycastle bcprov-jdk15 when we include minikdc.
Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
2022-09-02 19:43:29 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-minikdc</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-01-21 16:12:57 -05:00
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
<!--
|
|
|
|
profile for building against Hadoop 3.0.0. Activate using:
|
|
|
|
mvn -Dhadoop.profile=3.0
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>hadoop-3.0</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>hadoop.profile</name>
|
|
|
|
<value>3.0</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
2018-02-21 17:37:23 -05:00
|
|
|
<dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-yarn-server-nodemanager</artifactId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.sun.jersey</groupId>
|
|
|
|
<artifactId>jersey-core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-yarn-server-resourcemanager</artifactId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.sun.jersey</groupId>
|
|
|
|
<artifactId>jersey-core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-yarn-server-timelineservice</artifactId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>javax.ws.rs</groupId>
|
|
|
|
<artifactId>jsr311-api</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-yarn-common</artifactId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.sun.jersey</groupId>
|
|
|
|
<artifactId>jersey-core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</dependencyManagement>
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-mapreduce-client-core</artifactId>
|
|
|
|
<scope>test</scope>
|
2020-04-21 00:51:16 -04:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
2020-05-05 18:27:11 -04:00
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
2020-04-21 00:51:16 -04:00
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2015-01-21 16:12:57 -05:00
|
|
|
</dependency>
|
2017-08-31 11:03:22 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-annotations</artifactId>
|
|
|
|
</dependency>
|
2015-01-21 16:12:57 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-auth</artifactId>
|
|
|
|
</dependency>
|
HBASE-27340 Artifacts with resolved profiles (#4740)
Make it so our published poms carry the minimum needed to run
an hbase; the published pom has no profiles -- the profiles
specified at build time are resolved, their dependencies inlined,
and then they are stripped -- and no build-time, or plugins
dependencies or properties, etc. Resultant poms have explicit
hadoop lib versions baked in -- no more being able to choose
hbase with hadoop2 or haddop3 at downstream build time by setting
a '-Dhadoop.profile=X.0'.
Pattern is to add profiles when none in sub-modules when
the flatten plugin complains it can't resolve an hadoop
dependency's 'version' (e.g. hadoop-common, hadoop-hdfs).
Adding the hadoop-2.0 and hadoop-3.0 profiles in the sub-module
make it so the flatten plugin can figure 'hadoop.version'
definitively.
Another spin on the above happens when profiles already exist
in submodule but the flatten plugin is complaining it can't
figure figure version on an hadoop dependency NOT under
profiles. Below, we move the delinquent hadoop dependency under
existing profiles (minikdc was the usual dependency outside
profiles in sub-modules that flatten complained about).
Sometimes, moving an hadoop dependency under a profile, there
would be excludes on the local dependency. If the parent pom
excludes section was missing the local excludes, we added them
up to the parent module so all excluding is done up there in
the parent profile dependencyManagement section.
* hbase-asyncfs/pom.xml
* hbase-endpoint/pom.xml
* hbase-examples/pom.xml
* hbase-http/pom.xml
* hbase-rest/pom.xml
* hbase-server/pom.xml
Move the minikdc under profiles so it picks up appropriate hadoop version
when the flatten plugin runs.
* hbase-hadoop2-compat/pom.xml
Add hadoop2 and hadoop3 profiles and move hadoop-common, etc.
under them so we pick up appropriate hadoop version when flatten
plugin runs.
* hbase-mapreduce/pom.xml
Move hadoop dependencies under profiles so right version is
available when the flatten plugin runs.
* hbase-shaded/hbase-shaded-testing-util/pom.xml
Add profiles for hadoop-2.0 and hadoop-3.0 and move the
hadoop dependencies under them.
pom.xml
Add the flatten plugin with the flatten profiles enabled.
Add a few excludes on hadoop profiles picked up from sub-modules.
E.g. exclude bouncycastle bcprov-jdk15 when we include minikdc.
Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
2022-09-02 19:43:29 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-minikdc</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-01-21 16:12:57 -05:00
|
|
|
</dependencies>
|
|
|
|
</profile>
|
2019-03-21 12:34:12 -04:00
|
|
|
<profile>
|
|
|
|
<id>eclipse-specific</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>m2e.version</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<!--This plugin's configuration is used to store Eclipse m2e settings
|
|
|
|
only. It has no influence on the Maven build itself.-->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.eclipse.m2e</groupId>
|
|
|
|
<artifactId>lifecycle-mapping</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<lifecycleMappingMetadata>
|
|
|
|
<pluginExecutions>
|
|
|
|
<pluginExecution>
|
|
|
|
<pluginExecutionFilter>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<versionRange>[1.6,)</versionRange>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</pluginExecutionFilter>
|
|
|
|
<action>
|
|
|
|
<ignore/>
|
|
|
|
</action>
|
|
|
|
</pluginExecution>
|
|
|
|
</pluginExecutions>
|
|
|
|
</lifecycleMappingMetadata>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2014-10-07 18:08:54 -04:00
|
|
|
</profiles>
|
|
|
|
</project>
|