<?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>pulsar-jms-parent</artifactId>
    <groupId>com.datastax.oss</groupId>
    <version>5.0.5</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>pulsar-jms-all</artifactId>
  <name>DataStax Apache Pulsar (R) Java Messaging System API client - Fat Jar Bundle</name>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>add-third-party</id>
            <phase>process-sources</phase>
            <goals>
              <goal>add-third-party</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <artifactSet>
            <includes>
              <include>*:*</include>
            </includes>
            <excludes>
              <exclude>com.fasterxml.jackson.core:jackson-annotations</exclude>
            </excludes>
          </artifactSet>
          <filters>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>META-INF/*.SF</exclude>
                <exclude>META-INF/*.DSA</exclude>
                <exclude>META-INF/*.RSA</exclude>
                <exclude>META-INF/maven/**</exclude>
                <exclude>META-INF/license/**</exclude>
              </excludes>
            </filter>
          </filters>
          <relocations>
            <relocation>
              <pattern>org.apache.pulsar.</pattern>
              <shadedPattern>com.datastax.oss.pulsar.jms.shaded.org.apache.pulsar.</shadedPattern>
              <excludes>
                <exclude>org.apache.pulsar.shade.**</exclude>
                <exclude>com.fasterxml.jackson.annotation.*</exclude>
              </excludes>
            </relocation>
            <relocation>
              <pattern>com.fasterxml.</pattern>
              <shadedPattern>com.datastax.oss.pulsar.jms.shaded.com.fasterxml.</shadedPattern>
              <excludes>
                <exclude>com.fasterxml.jackson.annotation.*</exclude>
              </excludes>
            </relocation>
          </relocations>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <properties>
    <build.dir>${project.build.directory}</build.dir>
  </properties>
</project>
