<?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>mvn-classloader-settings</artifactId>
    <groupId>com.github.igor-suhorukov</groupId>
    <version>1.8</version>
    <relativePath>../mvn-classloader-settings/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>mvn-classloader</artifactId>
  <version>1.8</version>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.4</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <relocations>
            <relocation>
              <pattern>com.google</pattern>
              <shadedPattern>com.github.igorsuhorukov.google</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.github.smreed</pattern>
              <shadedPattern>com.github.igorsuhorukov.smreed</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache</pattern>
              <shadedPattern>com.github.igorsuhorukov.apache</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.codehaus</pattern>
              <shadedPattern>com.github.igorsuhorukov.codehaus</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.springframework</pattern>
              <shadedPattern>com.github.igorsuhorukov.springframework</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.eclipse</pattern>
              <shadedPattern>com.github.igorsuhorukov.eclipse</shadedPattern>
            </relocation>
            <relocation>
              <pattern>jodd</pattern>
              <shadedPattern>com.github.igorsuhorukov.jodd</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.sonatype</pattern>
              <shadedPattern>com.github.igorsuhorukov.sonatype</shadedPattern>
            </relocation>
          </relocations>
          <filters>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>META-INF/plexus/**</exclude>
                <exclude>META-INF/sisu/**</exclude>
                <exclude>LICENSE</exclude>
                <exclude>licenses/**</exclude>
                <exclude>about.html</exclude>
              </excludes>
            </filter>
          </filters>
          <transformers>
            <transformer>
              <manifestEntries>
                <Main-Class>com.github.igorsuhorukov.smreed.dropship.Dropship</Main-Class>
              </manifestEntries>
            </transformer>
          </transformers>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <version>18.0</version>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>
  </dependencies>
</project>

