cdap-hbase-compat-1.0-cdh5.5.0
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.cdap.cdap</groupId> <artifactId>cdap-hbase-compat-1.0-cdh5.5.0</artifactId> <version>6.10.1</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright © 2016 Cask Data, Inc. Licensed 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. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>io.cdap.cdap</groupId> <artifactId>cdap</artifactId> <version>6.10.1</version> </parent> <artifactId>cdap-hbase-compat-1.0-cdh5.5.0</artifactId> <name>CDAP HBase 1.0-CDH5.5.0 Compatibility</name> <packaging>jar</packaging> <repositories> <repository> <id>cloudera</id> <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url> </repository> </repositories> <properties> <!-- Not set at the parent pom level to avoid impacting other child modules. --> <!-- Not set in cdap-hbase-compat-base to avoid protobuf being pulled into cdap-data-fabric. --> <protobuf.version>2.5.0</protobuf.version> </properties> <dependencies> <dependency> <groupId>io.cdap.cdap</groupId> <artifactId>cdap-hbase-compat-base</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>io.cdap.cdap</groupId> <artifactId>cdap-common</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>io.cdap.cdap</groupId> <artifactId>cdap-common</artifactId> <version>${project.version}</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>io.cdap.cdap</groupId> <artifactId>cdap-data-fabric</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>io.cdap.cdap</groupId> <artifactId>cdap-hbase-compat-base</artifactId> <version>${project.version}</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.tephra</groupId> <artifactId>tephra-hbase-compat-1.0-cdh</artifactId> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-common</artifactId> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-common</artifactId> <version>${hbase10cdh550.version}</version> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-client</artifactId> <version>${hbase10cdh550.version}</version> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-protocol</artifactId> <version>${hbase10cdh550.version}</version> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-server</artifactId> <version>${hbase10cdh550.version}</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> </dependency> <dependency> <groupId>io.cdap.cdap</groupId> <artifactId>cdap-data-fabric</artifactId> <version>${project.version}</version> <type>test-jar</type> <scope>test</scope> <exclusions> <exclusion> <groupId>org.apache.hbase</groupId> <artifactId>hbase</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>io.cdap.cdap</groupId> <artifactId>cdap-common-unit-test</artifactId> <version>${project.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>io.cdap.cdap</groupId> <artifactId>cdap-security</artifactId> <version>${project.version}</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-minicluster</artifactId> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-server</artifactId> <version>${hbase10cdh550.version}</version> <type>test-jar</type> <scope>test</scope> <exclusions> <exclusion> <groupId>asm</groupId> <artifactId>asm</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-testing-util</artifactId> <version>${hbase10cdh550.version}</version> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-hdfs</artifactId> <scope>test</scope> </dependency> <!-- HBase-1.0-CDH depends on org.htrace, not org.apache.htrace (newer) --> <dependency> <groupId>org.htrace</groupId> <artifactId>htrace-core</artifactId> <version>3.0.4</version> <scope>test</scope> </dependency> <dependency> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java</artifactId> <version>${protobuf.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>@{argLine} -Xmx6000m -Djava.awt.headless=true -XX:+UseG1GC -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError</argLine> <forkCount>2</forkCount> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> <executions> <execution> <id>test-jar</id> <goals> <goal>test-jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>dist</id> <properties> <package.dirs>opt</package.dirs> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.8</version> <executions> <execution> <id>copy-dependencies</id> <phase>prepare-package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <excludeArtifactIds>*</excludeArtifactIds> <includeArtifactIds>tephra-hbase-compat-1.0-cdh</includeArtifactIds> <silent>true</silent> <includeScope>compile</includeScope> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.1</version> <executions> <execution> <id>hbase-compat-fat-jar</id> <phase>package</phase> <configuration> <createDependencyReducedPom>false</createDependencyReducedPom> <minimizeJar>true</minimizeJar> <shadedArtifactAttached>true</shadedArtifactAttached> <shadedClassifierName>fat</shadedClassifierName> <artifactSet> <includes> <!-- mirrors the includes in CoprocessorManager's ensureCoprocessorExists method --> <include>io.cdap.*:*</include> <include>org.apache.tephra:*</include> <include>it.unimi.dsi:fastutil</include> <include>com.google.code.gson:gson</include> </includes> </artifactSet> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> </configuration> <goals> <goal>shade</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-opt</id> </execution> <execution> <id>copy-hbase-compat-fat</id> <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${stage.coprocessor.dir}</outputDirectory> <resources> <resource> <directory>${project.build.directory}</directory> <includes> <include>${project.artifactId}-${project.version}-fat.jar</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>rpm-prepare</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> </plugin> </plugins> </build> </profile> <profile> <id>deb-prepare</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> </plugin> </plugins> </build> </profile> <profile> <id>rpm</id> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.3.1</version> </plugin> <!-- Extra deployment for rpm package. --> <!-- This has to be in child level, otherwise all modules would try to deploy. --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8</version> <executions> <execution> <id>deploy-rpm</id> <phase>deploy</phase> <goals> <goal>deploy-file</goal> </goals> <configuration> <version>${project.version}</version> <groupId>${dist.deploy.groupId}</groupId> <artifactId>${project.artifactId}</artifactId> <packaging>noarch.rpm</packaging> <generatePom>false</generatePom> <file>${project.build.directory}/${project.artifactId}-${package.version}-1.noarch.rpm</file> <classifier>1</classifier> <repositoryId>continuuity</repositoryId> <url>${deploy.url}</url> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>deb</id> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.3.1</version> </plugin> <!-- Extra deployment for deb package --> <!-- This has to be in child level, otherwise all modules would try to deploy. --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8</version> <executions> <execution> <id>deploy-deb</id> <phase>deploy</phase> <goals> <goal>deploy-file</goal> </goals> <configuration> <version>${project.version}</version> <groupId>${dist.deploy.groupId}</groupId> <artifactId>${project.artifactId}</artifactId> <packaging>deb</packaging> <generatePom>false</generatePom> <file>${project.build.directory}/${project.artifactId}_${package.version}-1_all.deb</file> <repositoryId>continuuity</repositoryId> <url>${deploy.url}</url> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>tgz</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.4</version> </plugin> <!-- Extra deployment for tgz package --> <!-- This has to be in child level, otherwise all modules would try to deploy. --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8</version> <executions> <execution> <id>deploy-tgz</id> <phase>deploy</phase> <goals> <goal>deploy-file</goal> </goals> <configuration> <version>${project.version}</version> <groupId>${dist.deploy.groupId}</groupId> <artifactId>${project.artifactId}</artifactId> <packaging>tar.gz</packaging> <generatePom>false</generatePom> <file>${project.build.directory}/${project.artifactId}-${package.version}.tar.gz</file> <repositoryId>continuuity</repositoryId> <url>${deploy.url}</url> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>skip-hbase-compat-tests</id> <activation> <property><name>cloudBuild</name></property> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skipTests>true</skipTests> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>