<?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>
        <artifactId>mule-modules</artifactId>
        <groupId>org.mule.runtime</groupId>
        <version>4.8.3</version>
    </parent>

    <artifactId>mule-module-deployment-model</artifactId>
    <packaging>jar</packaging>
    <name>Mule Deployment Model Module</name>
    <description>Provides descriptors and class loaders for deployment artifacts</description>

    <properties>
        <javaModuleName>org.mule.runtime.deployment.model</javaModuleName>
        <surefire.args>
            -XX:+IgnoreUnrecognizedVMOptions
            --add-reads=org.mule.runtime.deployment.model=org.apache.commons.io
            --add-opens=org.mule.runtime.deployment.model/org.mule.runtime.deployment.model.internal.domain.test=ALL-UNNAMED
            ${surefire.args.base}
        </surefire.args>
        <skipExportTests>false</skipExportTests>
        <formatterConfigPath>../../formatter.xml</formatterConfigPath>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.mule.runtime</groupId>
            <artifactId>mule-core</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.mule.runtime</groupId>
            <artifactId>mule-module-artifact</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.mule.runtime</groupId>
            <artifactId>mule-module-artifact-activation</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.mule.runtime</groupId>
            <artifactId>mule-module-container</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.mule.runtime</groupId>
            <artifactId>mule-module-memory-management</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.mule.runtime</groupId>
            <artifactId>mule-module-artifact</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
            <type>test-jar</type>
        </dependency>
        <dependency>
            <groupId>org.mule.tests</groupId>
            <artifactId>mule-tests-unit</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
    		<groupId>org.mule.tests</groupId>
        	<artifactId>mule-tests-allure</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-test-jar</id>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                        <configuration>
                            <includes>
                                <include>org/mule/runtime/deployment/model/internal/domain/test/**</include>
                            </includes>
                        </configuration>
                    </execution>
                </executions>                
            </plugin>
        </plugins>
    </build>
</project>
