<?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>phoenix-thirdparty</artifactId>
    <groupId>org.apache.phoenix.thirdparty</groupId>
    <version>1.1.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>phoenix-shaded-guava</artifactId>
  <name>Apache Phoenix Relocated (Shaded) Guava</name>
  <description>Pulls down Guava, relocates it and then makes a new jar with it.</description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <configuration>
          <filesets>
            <fileset>
              <directory>${basedir}</directory>
              <includes>
                <include>dependency-reduced-pom.xml</include>
              </includes>
            </fileset>
          </filesets>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadeSourcesContent>true</shadeSourcesContent>
              <createSourcesJar>true</createSourcesJar>
              <relocations>
                <relocation>
                  <pattern>com.google</pattern>
                  <shadedPattern>${rename.offset}.com.google</shadedPattern>
                </relocation>
              </relocations>
              <excludes>
                <exclude>com.google.code.findbugs:jsr305</exclude>
                <exclude>com.google.errorprone:error_prone_annotations</exclude>
                <exclude>com.google.j2objc:j2objc-annotations</exclude>
                <exclude>org.codehaus.mojo:animal-sniffer-annotations</exclude>
                <exclude>org.checkerframework:*</exclude>
              </excludes>
              <artifactSet />
              <transformers>
                <transformer />
                <transformer>
                  <addHeader>false</addHeader>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <properties>
    <rename.offset>org.apache.phoenix.thirdparty</rename.offset>
  </properties>
</project>
