<?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>attributes-parent</artifactId>
    <groupId>org.carrot2.attributes</groupId>
    <version>1.0.1</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>attributes-processor</artifactId>
  <name>Attributes metadata annotation processor</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.5</version>
        <configuration>
          <proc>none</proc>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.7</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <minimizeJar>false</minimizeJar>
              <artifactSet>
                <excludes>
                  <exclude>org.simpleframework:*</exclude>
                  <exclude>com.google:*</exclude>
                </excludes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>org.apache.velocity:velocity</artifact>
                  <excludes>
                    <exclude>org/apache/velocity/runtime/defaults/*.properties</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>org.apache.velocity:velocity-tools</artifact>
                  <excludes>
                    <exclude>org/apache/velocity/tools/struts/**</exclude>
                    <exclude>org/apache/velocity/tools/view/**</exclude>
                    <exclude>org/apache/velocity/tools/config/**</exclude>
                  </excludes>
                </filter>
              </filters>
              <relocations>
                <relocation>
                  <pattern>com.thoughtworks</pattern>
                  <shadedPattern>org.carrot2.util.preprocessor.shaded.qdox</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache</pattern>
                  <shadedPattern>org.carrot2.util.preprocessor.shaded.apache</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <pluginRepositories>
    <pluginRepository>
      <releases />
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>apache-releases</id>
      <url>https://repository.apache.org/content/repositories/releases</url>
    </pluginRepository>
  </pluginRepositories>
</project>

