<?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>xwiki-rendering</artifactId>
    <groupId>org.xwiki.rendering</groupId>
    <version>3.3-milestone-2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>xwiki-rendering-standalone</artifactId>
  <name>XWiki Rendering - Standalone Distribution</name>
  <description>XWiki Rendering - Standalone Distribution</description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <relocation>
                  <pattern>org.wikimodel</pattern>
                  <shadedPattern>org.xwiki.shaded.wikimodel</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.htmlcleaner</pattern>
                  <shadedPattern>org.xwiki.shaded.htmlcleaner</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons</pattern>
                  <shadedPattern>org.xwiki.shaded.apache.commons</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.html</pattern>
                  <shadedPattern>org.xwiki.shaded.apache.html</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.wml</pattern>
                  <shadedPattern>org.xwiki.shaded.apache.wml</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.xml</pattern>
                  <shadedPattern>org.xwiki.shaded.apache.xml</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.javacc</pattern>
                  <shadedPattern>org.xwiki.shaded.javacc</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.jdom</pattern>
                  <shadedPattern>org.xwiki.shaded.jdom</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.dom4j</pattern>
                  <shadedPattern>org.xwiki.shaded.dom4j</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.xml</pattern>
                  <shadedPattern>org.xwiki.shaded.xml</shadedPattern>
                </relocation>
              </relocations>
              <transformers>
                <transformer>
                  <resource>META-INF/components.txt</resource>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>integration-tests</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>shitty-maven-plugin</artifactId>
            <version>1.0-alpha-3</version>
            <executions>
              <execution>
                <goals>
                  <goal>clean</goal>
                  <goal>install</goal>
                  <goal>test</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>org.xwiki.commons</groupId>
      <artifactId>xwiki-commons-test</artifactId>
      <version>3.3-milestone-2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit-dep</artifactId>
          <groupId>junit</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jmock</artifactId>
          <groupId>org.jmock</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jmock-junit4</artifactId>
          <groupId>org.jmock</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jmock</artifactId>
          <groupId>jmock</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jmock-cglib</artifactId>
          <groupId>jmock</groupId>
        </exclusion>
        <exclusion>
          <artifactId>xwiki-commons-context</artifactId>
          <groupId>org.xwiki.commons</groupId>
        </exclusion>
        <exclusion>
          <artifactId>logback-classic</artifactId>
          <groupId>ch.qos.logback</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jcl-over-slf4j</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>log4j-over-slf4j</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <xwiki.clirr.skip>true</xwiki.clirr.skip>
  </properties>
</project>

