<?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>hadoop-ozone</artifactId>
    <groupId>org.apache.hadoop</groupId>
    <version>1.0.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>hadoop-ozone-filesystem-shaded</artifactId>
  <name>Apache Hadoop Ozone FileSystem Shaded</name>
  <version>1.0.0</version>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <transformers>
                <transformer>
                  <resources>
                    <resource>META-INF/BC1024KE.DSA</resource>
                    <resource>META-INF/BC2048KE.DSA</resource>
                    <resource>META-INF/BC1024KE.SF</resource>
                    <resource>META-INF/BC2048KE.SF</resource>
                  </resources>
                </transformer>
                <transformer />
                <transformer>
                  <resource>ozone-default-generated.xml</resource>
                </transformer>
              </transformers>
              <relocations>
                <relocation>
                  <pattern>org</pattern>
                  <shadedPattern>${shaded.prefix}.org</shadedPattern>
                  <includes>
                    <include>org.yaml.**.*</include>
                    <include>org.sqlite.**.*</include>
                    <include>org.tukaani.**.*</include>
                    <include>org.bouncycastle.**.*</include>
                    <include>org.fusesource.leveldbjni.**.*</include>
                    <include>org.rocksdb.**.*</include>
                    <include>org.apache.commons.cli.**.*</include>
                    <include>org.apache.commons.compress.**.*</include>
                    <include>org.apache.commons.codec.**.*</include>
                    <include>org.apache.commons.beanutils.**.*</include>
                    <include>org.apache.commons.collections.**.*</include>
                    <include>org.apache.commons.digester.**.*</include>
                    <include>org.apache.commons.logging.**.*</include>
                    <include>org.apache.commons.pool2.**.*</include>
                    <include>org.apache.commons.validator.**.*</include>
                    <include>org.sqlite.**.*</include>
                    <include>org.apache.thrift.**.*</include>
                  </includes>
                </relocation>
                <relocation>
                  <pattern>com</pattern>
                  <shadedPattern>${shaded.prefix}.com</shadedPattern>
                  <includes>
                    <include>com.google.common.**.*</include>
                    <include>com.google.gson.**.*</include>
                    <include>com.codahale.**.*</include>
                    <include>com.lmax.**.*</include>
                    <include>com.github.joshelser.**.*</include>
                    <include>com.twitter.**.*</include>
                  </includes>
                </relocation>
                <relocation>
                  <pattern>picocli</pattern>
                  <shadedPattern>${shaded.prefix}.picocli</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>info</pattern>
                  <shadedPattern>${shaded.prefix}.info</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>io</pattern>
                  <shadedPattern>${shaded.prefix}.io</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>okio</pattern>
                  <shadedPattern>${shaded.prefix}.okio</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>okhttp3</pattern>
                  <shadedPattern>${shaded.prefix}.okhttp3</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <properties>
    <shaded.prefix>org.apache.hadoop.ozone.shaded</shaded.prefix>
  </properties>
</project>
