<?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>ehcache-ee-root</artifactId>
    <groupId>net.sf.ehcache</groupId>
    <version>2.11.0.11.8</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>ehcache-ee</artifactId>
  <name>Ehcache Enterprise</name>
  <description>Ehcache Enterprise</description>
  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>${basedir}/src/main/resources</directory>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-TIMs</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <includeGroupIds>org.terracotta.modules</includeGroupIds>
              <outputDirectory>${project.build.outputDirectory}/META-INF/terracotta/TIMs</outputDirectory>
            </configuration>
          </execution>
          <execution>
            <id>copy-sources</id>
            <phase>package</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>net.sf.ehcache</groupId>
                  <artifactId>ehcache</artifactId>
                  <version>${ehcache.os.version}</version>
                  <classifier>sources</classifier>
                  <overWrite>true</overWrite>
                  <destFileName>${project.artifactId}-${project.version}-sources.jar</destFileName>
                </artifactItem>
              </artifactItems>
              <outputDirectory>${project.build.directory}</outputDirectory>
            </configuration>
          </execution>
          <execution>
            <id>copy-javadoc</id>
            <phase>package</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <skip>${skipJavadoc}</skip>
              <artifactItems>
                <artifactItem>
                  <groupId>net.sf.ehcache</groupId>
                  <artifactId>ehcache</artifactId>
                  <version>${ehcache.os.version}</version>
                  <classifier>javadoc</classifier>
                  <overWrite>true</overWrite>
                  <destFileName>${project.artifactId}-${project.version}-javadoc.jar</destFileName>
                </artifactItem>
              </artifactItems>
              <outputDirectory>${project.build.directory}</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-artifacts</id>
            <phase>package</phase>
            <goals>
              <goal>attach-artifact</goal>
            </goals>
            <configuration>
              <skipAttach>${skipJavadoc}</skipAttach>
              <artifacts>
                <artifact>
                  <file>${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar</file>
                  <type>jar</type>
                  <classifier>javadoc</classifier>
                </artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>devmode</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
              <execution>
                <id>list-dependencies</id>
                <phase>compile</phase>
                <goals>
                  <goal>list</goal>
                </goals>
                <configuration>
                  <outputFile>${project.build.outputDirectory}/META-INF/devmode/${project.groupId}/${project.artifactId}/dependencies.txt</outputFile>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>fullmode</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-shade-plugin</artifactId>
            <version>3.4.0</version>
            <executions>
              <execution>
                <id>shade-jar</id>
                <phase>package</phase>
                <goals>
                  <goal>shade</goal>
                </goals>
                <configuration>
                  <shaderHint>record-shader</shaderHint>
                  <useBaseVersion>true</useBaseVersion>
                  <artifactSet>
                    <includes>
                      <include>net.sf.ehcache.internal:*</include>
                      <include>com.terracottatech:offheap-restartable-store</include>
                      <include>org.terracotta:offheap-store</include>
                      <include>com.terracottatech:fast-restartable-store</include>
                      <include>com.terracottatech:search</include>
                      <include>com.terracottatech:search-ee</include>
                      <include>org.terracotta.license:terracotta-license</include>
                      <include>org.terracotta.internal:statistics</include>
                      <include>com.terracotta:clustered-entity-management</include>
                    </includes>
                  </artifactSet>
                  <filters>
                    <filter>
                      <artifact>*:*</artifact>
                      <excludes>
                        <exclude>META-INF/maven/net.sf.ehcache.internal/**</exclude>
                        <exclude>META-INF/maven/com.terracotta/**</exclude>
                        <exclude>META-INF/maven/com.terracottatech/**</exclude>
                        <exclude>META-INF/maven/org.terracotta.internal/**</exclude>
                        <exclude>META-INF/maven/org.terracotta.license/**</exclude>
                        <exclude>**/license.txt</exclude>
                        <exclude>**/thirdpartylicenses.txt</exclude>
                        <exclude>**/LICENSE</exclude>
                        <exclude>**/LICENSE.txt</exclude>
                        <exclude>**/NOTICE</exclude>
                        <exclude>**/NOTICE.txt</exclude>
                        <exclude>**/ASL2.0</exclude>
                        <exclude>**/DEPENDENCIES</exclude>
                      </excludes>
                    </filter>
                  </filters>
                  <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
                  <dependencyReducedPomLocation>/data/jenkins-slave/workspace/pipeline-4.4.0.11/ehcache-ee-pipeline-2.11.0/ehcache-ee/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
                  <transformers>
                    <transformer>
                      <resource>devmode-classdir.txt</resource>
                    </transformer>
                  </transformers>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>org.terracotta.maven.plugins</groupId>
                <artifactId>terracotta-shader</artifactId>
                <version>2.0</version>
                <scope>compile</scope>
              </dependency>
            </dependencies>
            <configuration>
              <shaderHint>record-shader</shaderHint>
              <useBaseVersion>true</useBaseVersion>
              <artifactSet>
                <includes>
                  <include>net.sf.ehcache.internal:*</include>
                  <include>com.terracottatech:offheap-restartable-store</include>
                  <include>org.terracotta:offheap-store</include>
                  <include>com.terracottatech:fast-restartable-store</include>
                  <include>com.terracottatech:search</include>
                  <include>com.terracottatech:search-ee</include>
                  <include>org.terracotta.license:terracotta-license</include>
                  <include>org.terracotta.internal:statistics</include>
                  <include>com.terracotta:clustered-entity-management</include>
                </includes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/maven/net.sf.ehcache.internal/**</exclude>
                    <exclude>META-INF/maven/com.terracotta/**</exclude>
                    <exclude>META-INF/maven/com.terracottatech/**</exclude>
                    <exclude>META-INF/maven/org.terracotta.internal/**</exclude>
                    <exclude>META-INF/maven/org.terracotta.license/**</exclude>
                    <exclude>**/license.txt</exclude>
                    <exclude>**/thirdpartylicenses.txt</exclude>
                    <exclude>**/LICENSE</exclude>
                    <exclude>**/LICENSE.txt</exclude>
                    <exclude>**/NOTICE</exclude>
                    <exclude>**/NOTICE.txt</exclude>
                    <exclude>**/ASL2.0</exclude>
                    <exclude>**/DEPENDENCIES</exclude>
                  </excludes>
                </filter>
              </filters>
              <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
              <dependencyReducedPomLocation>/data/jenkins-slave/workspace/pipeline-4.4.0.11/ehcache-ee-pipeline-2.11.0/ehcache-ee/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
              <transformers>
                <transformer>
                  <resource>devmode-classdir.txt</resource>
                </transformer>
              </transformers>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>3.1.0</version>
            <executions>
              <execution>
                <id>unpack-jar-for-bundling</id>
                <phase>package</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <target>
                    <unzip />
                  </target>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <version>5.1.8</version>
            <executions>
              <execution>
                <id>generate-osgi-headers</id>
                <phase>package</phase>
                <goals>
                  <goal>manifest</goal>
                </goals>
                <configuration>
                  <manifestLocation>/data/jenkins-slave/workspace/pipeline-4.4.0.11/ehcache-ee-pipeline-2.11.0/ehcache-ee/target</manifestLocation>
                  <instructions>
                    <Import-Package>bitronix.tm;resolution:=optional,
                  bitronix.tm.resource.ehcache;resolution:=optional,
                  com.atomikos.*;resolution:=optional,
                  com.atomikos.icatch.jta;resolution:=optional,
                  weblogic.transaction;resolution:=optional,
                  javax.transaction.*;resolution:=optional,
                  javax.servlet;resolution:=optional,
                  javax.net.ssl;resolution:=optional,
                  javax.activation;resolution:=optional,
                  javax.xml.stream;resolution:=optional,
                  javax.xml.transform;resolution:=optional,
                  javax.xml.transform.sax;resolution:=optional,
                  javax.xml.transform.dom;resolution:=optional,
                  javax.xml.transform.stream;resolution:=optional,
                  org.w3c.dom;resolution:=optional,
                  org.terracotta.toolkit.*;resolution:=optional,
                  com.sun.management.*;resolution:="optional",
                  net.sf.ehcache.terracotta.security;resolution:=optional,
                  org.jboss.vfs;resolution:=optional,
                  sun.management.*;resolution:=optional,
                  !com.google.apphosting.api,
                  !sun.misc,
                  *</Import-Package>
                    <Export-Package>net.sf.ehcache.*</Export-Package>
                    <Private-Package>org.terracotta.*,com.terracottatech.*</Private-Package>
                    <Bundle-RequiredExecutionEnvironment>JavaSE-11</Bundle-RequiredExecutionEnvironment>
                  </instructions>
                  <excludeDependencies>*;scope=provided|runtime</excludeDependencies>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <manifestLocation>/data/jenkins-slave/workspace/pipeline-4.4.0.11/ehcache-ee-pipeline-2.11.0/ehcache-ee/target</manifestLocation>
              <instructions>
                <Import-Package>bitronix.tm;resolution:=optional,
                  bitronix.tm.resource.ehcache;resolution:=optional,
                  com.atomikos.*;resolution:=optional,
                  com.atomikos.icatch.jta;resolution:=optional,
                  weblogic.transaction;resolution:=optional,
                  javax.transaction.*;resolution:=optional,
                  javax.servlet;resolution:=optional,
                  javax.net.ssl;resolution:=optional,
                  javax.activation;resolution:=optional,
                  javax.xml.stream;resolution:=optional,
                  javax.xml.transform;resolution:=optional,
                  javax.xml.transform.sax;resolution:=optional,
                  javax.xml.transform.dom;resolution:=optional,
                  javax.xml.transform.stream;resolution:=optional,
                  org.w3c.dom;resolution:=optional,
                  org.terracotta.toolkit.*;resolution:=optional,
                  com.sun.management.*;resolution:="optional",
                  net.sf.ehcache.terracotta.security;resolution:=optional,
                  org.jboss.vfs;resolution:=optional,
                  sun.management.*;resolution:=optional,
                  !com.google.apphosting.api,
                  !sun.misc,
                  *</Import-Package>
                <Export-Package>net.sf.ehcache.*</Export-Package>
                <Private-Package>org.terracotta.*,com.terracottatech.*</Private-Package>
                <Bundle-RequiredExecutionEnvironment>JavaSE-11</Bundle-RequiredExecutionEnvironment>
              </instructions>
              <excludeDependencies>*;scope=provided|runtime</excludeDependencies>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.codehaus.gmaven</groupId>
            <artifactId>groovy-maven-plugin</artifactId>
            <version>2.1.1</version>
            <executions>
              <execution>
                <id>repackage-jar</id>
                <phase>package</phase>
                <goals>
                  <goal>execute</goal>
                </goals>
                <configuration>
                  <source>def jarFile = new File(project.build.directory, "ehcache-ee-2.11.0.11.8.jar")
                    ant.copy(file: new File(project.build.directory, "dependency-reduced-pom.xml"),
                             tofile: new File(project.build.outputDirectory, "META-INF/maven/net.sf.ehcache/ehcache-ee/pom.xml"))
                    ant.jar(destfile: jarFile, basedir: new File(project.build.outputDirectory).getAbsolutePath(), manifest: new File(project.build.directory, "MANIFEST.MF"))</source>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>tc-publish</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.terracotta</groupId>
            <artifactId>maven-forge-plugin</artifactId>
            <version>2.0.0</version>
            <executions>
              <execution>
                <id>default-test</id>
                <phase>test</phase>
                <goals>
                  <goal>test</goal>
                </goals>
                <configuration>
                  <excludes>
                    <exclude>**/*IT.java</exclude>
                  </excludes>
                  <useReflectionFile>true</useReflectionFile>
                  <groups>org.terracotta.test.categories.CheckShorts</groups>
                  <systemProperties>
                    <property>
                      <name>java.awt.headless</name>
                      <value>true</value>
                    </property>
                  </systemProperties>
                  <forkCount>1</forkCount>
                  <reuseForks>false</reuseForks>
                  <argLine>-Djava.net.preferIPv4Stack=true</argLine>
                  <trimStackTrace>false</trimStackTrace>
                  <jdk>
                    <version>1.11</version>
                    <vendor>zulu</vendor>
                  </jdk>
                </configuration>
              </execution>
              <execution>
                <id>default-integration-test</id>
                <goals>
                  <goal>integration-test</goal>
                </goals>
                <configuration>
                  <useReflectionFile>true</useReflectionFile>
                  <groups>org.terracotta.test.categories.CheckShorts</groups>
                  <systemProperties>
                    <property>
                      <name>java.awt.headless</name>
                      <value>true</value>
                    </property>
                  </systemProperties>
                  <forkCount>1</forkCount>
                  <reuseForks>false</reuseForks>
                  <argLine>-Djava.net.preferIPv4Stack=true</argLine>
                  <trimStackTrace>false</trimStackTrace>
                  <jdk>
                    <version>1.11</version>
                    <vendor>zulu</vendor>
                  </jdk>
                </configuration>
              </execution>
              <execution>
                <id>default-verify</id>
                <goals>
                  <goal>verify</goal>
                </goals>
                <configuration>
                  <useReflectionFile>true</useReflectionFile>
                  <groups>org.terracotta.test.categories.CheckShorts</groups>
                  <systemProperties>
                    <property>
                      <name>java.awt.headless</name>
                      <value>true</value>
                    </property>
                  </systemProperties>
                  <forkCount>1</forkCount>
                  <reuseForks>false</reuseForks>
                  <argLine>-Djava.net.preferIPv4Stack=true</argLine>
                  <trimStackTrace>false</trimStackTrace>
                  <jdk>
                    <version>1.11</version>
                    <vendor>zulu</vendor>
                  </jdk>
                </configuration>
              </execution>
              <execution>
                <id>enforce-dependencies</id>
                <phase>verify</phase>
                <goals>
                  <goal>enforceDependencies</goal>
                </goals>
                <configuration>
                  <enforceGroupId>net.sf.ehcache</enforceGroupId>
                  <enforceArtifactId>ehcache</enforceArtifactId>
                  <enforceVersion>2.11.0.11.8</enforceVersion>
                  <useReflectionFile>true</useReflectionFile>
                  <groups>org.terracotta.test.categories.CheckShorts</groups>
                  <systemProperties>
                    <property>
                      <name>java.awt.headless</name>
                      <value>true</value>
                    </property>
                  </systemProperties>
                  <forkCount>1</forkCount>
                  <reuseForks>false</reuseForks>
                  <argLine>-Djava.net.preferIPv4Stack=true</argLine>
                  <trimStackTrace>false</trimStackTrace>
                  <jdk>
                    <version>1.11</version>
                    <vendor>zulu</vendor>
                  </jdk>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>net.sf.ehcache</groupId>
                <artifactId>ehcache</artifactId>
                <version>2.11.0.11.8</version>
                <scope>compile</scope>
              </dependency>
            </dependencies>
            <configuration>
              <useReflectionFile>true</useReflectionFile>
              <groups>org.terracotta.test.categories.CheckShorts</groups>
              <systemProperties>
                <property>
                  <name>java.awt.headless</name>
                  <value>true</value>
                </property>
              </systemProperties>
              <forkCount>1</forkCount>
              <reuseForks>false</reuseForks>
              <argLine>-Djava.net.preferIPv4Stack=true</argLine>
              <trimStackTrace>false</trimStackTrace>
              <jdk>
                <version>1.11</version>
                <vendor>zulu</vendor>
              </jdk>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <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>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.36</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <properties>
    <devmode>true</devmode>
    <skipJavadoc>false</skipJavadoc>
    <kit.name>${project.artifactId}-${project.version}-distribution</kit.name>
    <root.dir>${project.build.directory}/${kit.name}</root.dir>
  </properties>
</project>
