Using the CDH 5 Maven Repository

<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/maven-v4_0_0.xsd">
  <repositories>
    <repository>
      <id>cloudera</id>
      <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
    </repository>
  </repositories>
</project>

Maven Changes for HBase Applications

CDH 5 introduces a new layout for HBase build artifacts and requires POM changes if you use Maven, or JAR changes otherwise.

Previously, in CDH 4 you only needed to add a dependency for the HBase JAR:
<dependency>
  <groupId> org.apache.hbase </groupId> 
  <artifactId> hbase </artifactId> 
  <optional> true </optional> 
</dependency>
Now, when building against CDH 5 you will need to add a dependency for the hbase-client JAR. The hbase module continues to exist as a convenient top-level wrapper for existing clients, and it pulls in all the sub-modules automatically. But it is only a simple wrapper, so its repository directory will carry no actual jars.
<dependency>
  <groupId>org.apache.hbase</groupId> 
  <artifactId>hbase-client</artifactId> 
  <version>${hbase.version}</version> 
</dependency>
If your code uses the HBase minicluster, you can pull in the hbase-testing-util dependency:
<dependency>
  <groupId>org.apache.hbase</groupId> 
  <artifactId>hbase-testing-util</artifactId> 
  <version>${cdh.hbase.version}</version> 
</dependency>

If you need to obtain all HBase JARs required to build a project, copy them from the CDH installation directory (typically /usr/lib/hbase for an RPM install, or /opt/cloudera/parcels/CDH/lib/hbase if you install using Parcels), or from the CDH 5 HBase tarballs. However, for building client applications, Cloudera recommends using build tools such as Maven, rather than manually referencing JARs.