<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.mulesoft.mule.tests</groupId>
        <artifactId>mule-ee-integration-tests</artifactId>
        <version>4.10.0</version>
    </parent>
    <artifactId>mule-tests-integration-license</artifactId>
    <packaging>jar</packaging>

    <properties>
        <chLicmVersion>1.1.7</chLicmVersion>

        <javaModuleName>com.mulesoft.mule.test.integration.license</javaModuleName>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack-test-licese-files</id>
                        <phase>generate-test-resources</phase>
                        <goals>
                            <goal>unpack-dependencies</goal>
                        </goals>
                        <configuration>
                            <includeClassifiers>tests</includeClassifiers>
                            <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
                            <includes>license/**</includes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.mulesoft.mule.runtime.boot</groupId>
            <artifactId>mule-module-boot-ee</artifactId>
            <version>${project.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.mulesoft.licm</groupId>
                    <artifactId>licm</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.mulesoft.mule.runtime.boot</groupId>
            <artifactId>mule-module-boot-ee</artifactId>
            <classifier>tests</classifier>
            <version>${project.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.mulesoft.licm</groupId>
                    <artifactId>licm</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.mulesoft.licm</groupId>
            <artifactId>licm-studio</artifactId>
            <version>${chLicmVersion}</version>
        </dependency>

        <!-- Testing framework dependencies -->
        <dependency>
            <groupId>com.mulesoft.mule.tests</groupId>
            <artifactId>mule-tests-allure</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mule.tests</groupId>
            <artifactId>mule-tests-unit</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

</project>
