<?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>ovea</artifactId>
    <groupId>com.ovea</groupId>
    <version>2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>ovea-virtual-resources</artifactId>
  <name>ovea-virtual-resources</name>
  <version>1.9.ga</version>
  <description>Aggregate virtual resources</description>
  <scm>
    <connection>scm:git:git@github.com:Ovea/virtual-resources.git</connection>
    <developerConnection>scm:git:git@github.com:Ovea/virtual-resources.git</developerConnection>
    <url>http://github.com/Ovea/virtual-resources</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <id>standard</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadedArtifactAttached>false</shadedArtifactAttached>
              <createSourcesJar>true</createSourcesJar>
              <artifactSet>
                <includes>
                  <include>rhino:js</include>
                  <include>com.yahoo.platform.yui:yuicompressor</include>
                  <include>com.mycila.xmltool:xmltool</include>
                  <include>org.springframework:spring-core</include>
                  <include>commons-logging:commons-logging</include>
                </includes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>rhino:js</artifact>
                  <excludes>
                    <exclude>org/mozilla/javascript/Decompiler*</exclude>
                    <exclude>org/mozilla/javascript/Parser*</exclude>
                    <exclude>org/mozilla/javascript/Token*</exclude>
                  </excludes>
                </filter>
              </filters>
              <relocations>
                <relocation>
                  <pattern>org.mozilla</pattern>
                  <shadedPattern>com.ovea.resource.web.internal.rhino</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>jargs.gnu</pattern>
                  <shadedPattern>com.ovea.resource.web.internal.jargs</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.yahoo</pattern>
                  <shadedPattern>com.ovea.resource.web.internal.yahoo</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.mycila.xmltool</pattern>
                  <shadedPattern>com.ovea.resource.web.internal.xmltool</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.springframework</pattern>
                  <shadedPattern>com.ovea.resource.web.internal.spring</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.logging</pattern>
                  <shadedPattern>com.ovea.resource.web.internal.logging</shadedPattern>
                </relocation>
              </relocations>
              <transformers>
                <transformer />
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.5</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
</project>

