<?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.finconsgroup.itserr.marketplace</groupId>
        <artifactId>metadata</artifactId>
        <version>1.0.0</version>
    </parent>

    <artifactId>metadata-integration</artifactId>

    <properties>
        <!-- Skip repackage as it does not have a main class -->
        <spring-boot.repackage.skip>true</spring-boot.repackage.skip>
    </properties>

    <dependencies>

        <!-- MODULES -->
        <dependency>
            <groupId>com.finconsgroup.itserr.marketplace</groupId>
            <artifactId>metadata-core</artifactId>
        </dependency>

        <!-- CORE WEB -->
        <dependency>
            <groupId>com.finconsgroup.itserr.marketplace</groupId>
            <artifactId>core-web</artifactId>
        </dependency>

        <!-- MAPSTRUCT -->
        <dependency>
            <groupId>org.mapstruct</groupId>
            <artifactId>mapstruct</artifactId>
        </dependency>

        <!-- TEST -->
        <dependency>
            <groupId>org.wiremock</groupId>
            <artifactId>wiremock-standalone</artifactId>
            <scope>test</scope>
        </dependency>

    </dependencies>

    <build>
        <plugins>

            <!-- MAVEN COMPILER PLUGIN -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <annotationProcessorPaths>
                        <path>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                        </path>
                        <path>
                            <groupId>org.mapstruct</groupId>
                            <artifactId>mapstruct-processor</artifactId>
                        </path>
                        <path>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok-mapstruct-binding</artifactId>
                        </path>
                    </annotationProcessorPaths>
                    <compilerArgs>
                        -Amapstruct.unmappedTargetPolicy=ERROR
                    </compilerArgs>
                </configuration>
            </plugin>

        </plugins>
    </build>

</project>
