<?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>arthas-repackage-deps</artifactId>
    <groupId>com.alibaba.arthas</groupId>
    <version>0.0.9</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.alibaba.arthas</groupId>
  <artifactId>arthas-repackage-logger</artifactId>
  <name>arthas-repackage-logger</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
          <encoding>UTF-8</encoding>
          <showDeprecation>true</showDeprecation>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createSourcesJar>true</createSourcesJar>
              <shadeSourcesContent>true</shadeSourcesContent>
              <artifactSet />
              <relocations>
                <relocation>
                  <pattern>org.slf4j</pattern>
                  <shadedPattern>${arthas.deps.package}.org.slf4j</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>ch.qos.logback</pattern>
                  <shadedPattern>${arthas.deps.package}.ch.qos.logback</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>logback.configurationFile</pattern>
                  <shadedPattern>arthas.logback.configurationFile</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>logback.xml</pattern>
                  <shadedPattern>arthas-logback.xml</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>logback-test.xml</pattern>
                  <shadedPattern>arthas-logback-test.xml</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>logback.groovy</pattern>
                  <shadedPattern>arthas-logback.groovy</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>logback.statusListenerClass</pattern>
                  <shadedPattern>arthas.logback.statusListenerClass</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.objectweb.asm</pattern>
                  <shadedPattern>${arthas.deps.package}.org.objectweb.asm</shadedPattern>
                </relocation>
              </relocations>
              <filters>
                <filter>
                  <artifact>*</artifact>
                  <excludes>
                    <exclude>META-INF/services/javax.servlet.ServletContainerInitializer</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
