<?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>alfresco-community-repo</artifactId>
    <groupId>org.alfresco</groupId>
    <version>25.4.0.9</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>alfresco-mmt</artifactId>
  <name>Alfresco Module Management Tool</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <id>make-mmt</id>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <transformers>
            <transformer>
              <manifestEntries>
                <Main-Class>org.alfresco.repo.module.tool.ModuleManagementTool</Main-Class>
              </manifestEntries>
            </transformer>
          </transformers>
          <artifactSet>
            <includes>
              <include>de.schlichtherle.truezip:*</include>
              <include>org.alfresco:alfresco-core</include>
              <include>org.alfresco:alfresco-repository</include>
              <include>org.apache.commons:commons-compress</include>
              <include>com.fasterxml.uuid:java-uuid-generator</include>
              <include>org.alfresco.surf:spring-surf-core</include>
              <include>org.tukaani:xz</include>
              <include>org.apache.maven:maven-artifact</include>
            </includes>
          </artifactSet>
          <filters>
            <filter>
              <artifact>org.alfresco:alfresco-core</artifact>
              <includes>
                <include>org/alfresco/error/AlfrescoRuntimeException.class</include>
                <include>org/alfresco/util/Pair.class</include>
                <include>org/alfresco/util/EqualsHelper.class</include>
                <include>org/alfresco/util/VersionNumber.class</include>
              </includes>
            </filter>
            <filter>
              <artifact>org.apache.maven:maven-artifact</artifact>
              <includes>
                <include>org/apache/maven/artifact/versioning/**/*.class</include>
              </includes>
            </filter>
            <filter>
              <artifact>org.alfresco:alfresco-repository</artifact>
              <includes>
                <include>org/alfresco/repo/module/tool/default-file-mapping.properties</include>
                <include>org/alfresco/repo/module/**/*.class</include>
                <include>org/alfresco/service/cmr/module/**/*.class</include>
              </includes>
            </filter>
            <filter>
              <artifact>org.alfresco.surf:spring-surf-core</artifact>
              <includes>
                <include>org/springframework/extensions/surf/util/I18NUtil.class</include>
                <include>org/springframework/extensions/surf/util/ISO8601DateFormat.class</include>
                <include>org/springframework/extensions/surf/exception/PlatformRuntimeException.class</include>
              </includes>
            </filter>
            <filter>
              <artifact>de.schlichtherle.truezip:truezip-driver-zip</artifact>
              <excludes>
                <exclude>META-INF/services/de.schlichtherle.truezip.fs.spi.FsDriverService</exclude>
              </excludes>
            </filter>
          </filters>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcprov-jdk18on</artifactId>
      <version>1.81</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>5.18.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>byte-buddy</artifactId>
          <groupId>net.bytebuddy</groupId>
        </exclusion>
        <exclusion>
          <artifactId>byte-buddy-agent</artifactId>
          <groupId>net.bytebuddy</groupId>
        </exclusion>
        <exclusion>
          <artifactId>objenesis</artifactId>
          <groupId>org.objenesis</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
</project>
