<?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>management-ehcache-impl-parent</artifactId>
    <groupId>net.sf.ehcache</groupId>
    <version>2.6.3</version>
    <relativePath>..</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>ehcache-rest-agent</artifactId>
  <name>ehcache-rest-agent</name>
  <description>Ehcache REST implementation</description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.6</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
          <artifactSet>
            <excludes>
              <exclude>org.slf4j:*</exclude>
            </excludes>
          </artifactSet>
          <transformers>
            <transformer />
          </transformers>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.github.goldin</groupId>
        <artifactId>copy-maven-plugin</artifactId>
        <version>0.2.3.8</version>
        <executions>
          <execution>
            <id>orig</id>
            <phase>package</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <resources>
                <resource>
                  <targetPath>${project.build.outputDirectory}/${private-classpath}</targetPath>
                  <file>${project.build.directory}/${project.build.finalName}.jar</file>
                  <unpack>true</unpack>
                </resource>
                <resource>
                  <targetPath>${project.build.outputDirectory}/META-INF/</targetPath>
                  <file>${project.build.outputDirectory}/${private-classpath}/META-INF/MANIFEST.MF</file>
                </resource>
                <resource>
                  <targetPath>${project.build.directory}/filtered</targetPath>
                  <directory>${project.build.outputDirectory}</directory>
                  <exclude>${private-classpath}/org/eclipse/jetty/continuation/Jetty6Continuation.class, ${private-classpath}/org/eclipse/jetty/continuation/Servlet3Continuation*.class, ${private-classpath}/org/eclipse/jetty/continuation/FauxContinuation.class</exclude>
                  <preservePath>true</preservePath>
                </resource>
                <resource>
                  <targetPath>${project.build.directory}/${project.build.finalName}.jar</targetPath>
                  <directory>${project.build.directory}/filtered</directory>
                  <pack>true</pack>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>terracotta-snapshots</id>
      <url>http://www.terracotta.org/download/reflector/snapshots</url>
    </repository>
    <repository>
      <id>terracotta-releases</id>
      <url>http://www.terracotta.org/download/reflector/releases</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>terracotta-snapshots</id>
      <url>http://www.terracotta.org/download/reflector/snapshots</url>
    </pluginRepository>
    <pluginRepository>
      <id>terracotta-releases</id>
      <url>http://www.terracotta.org/download/reflector/releases</url>
    </pluginRepository>
  </pluginRepositories>
  <dependencies>
    <dependency>
      <groupId>net.sf.ehcache</groupId>
      <artifactId>management-ehcache-impl</artifactId>
      <version>2.6.3</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.eclipse.jetty</groupId>
      <artifactId>jetty-servlet</artifactId>
      <version>7.6.4.v20120524</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <properties>
    <private-classpath>rest-management-private-classpath</private-classpath>
  </properties>
</project>

