<?xml version="1.0" encoding="UTF-8"?>
<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">
  <parent>
    <artifactId>hbase-shaded</artifactId>
    <groupId>org.apache.hbase</groupId>
    <version>1.1.1</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>hbase-shaded-server</artifactId>
  <name>HBase - Shaded - Server</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <skipAssembly>true</skipAssembly>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-shade-plugin</artifactId>
            <version>2.3</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>shade</goal>
                </goals>
                <configuration>
                  <shadedArtifactAttached>false</shadedArtifactAttached>
                  <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
                  <dependencyReducedPomLocation>/Volumes/hbase-1.1.1RC0/hbase/hbase-shaded/hbase-shaded-server/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
                  <artifactSet>
                    <includes>
                      <include>*:*</include>
                    </includes>
                    <excludes>
                      <exclude>org.slf4j:*</exclude>
                      <exclude>org.apache.htrace:*</exclude>
                      <exclude>log4j:*</exclude>
                      <exclude>commons-logging:*</exclude>
                    </excludes>
                  </artifactSet>
                  <relocations>
                    <relocation>
                      <pattern>com</pattern>
                      <shadedPattern>org.apache.hadoop.hbase.shaded.com</shadedPattern>
                    </relocation>
                    <relocation>
                      <pattern>net</pattern>
                      <shadedPattern>org.apache.hadoop.hbase.shaded.net</shadedPattern>
                    </relocation>
                    <relocation>
                      <pattern>javax</pattern>
                      <shadedPattern>org.apache.hadoop.hbase.shaded.javax</shadedPattern>
                    </relocation>
                    <relocation>
                      <pattern>io</pattern>
                      <shadedPattern>org.apache.hadoop.hbase.shaded.io</shadedPattern>
                    </relocation>
                    <relocation>
                      <pattern>org</pattern>
                      <shadedPattern>org.apache.hadoop.hbase.shaded.org</shadedPattern>
                      <excludes>
                        <exclude>org.apache.hadoop.**</exclude>
                      </excludes>
                    </relocation>
                  </relocations>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.7</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <version>1.6.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.htrace</groupId>
      <artifactId>htrace-core</artifactId>
      <version>3.1.0-incubating</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.17</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
</project>

