<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>it.pigrecofvg</groupId>
    <artifactId>sinfomarws-starter</artifactId>
    <version>2.0.1</version>
    <name>sinfomarws-starter</name>

    <properties>
        <java.version>21</java.version>
        <springboot.version>4.1.0</springboot.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
            <version>${springboot.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-webflux</artifactId>
            <version>${springboot.version}</version>
        </dependency>

        <dependency>
            <groupId>jakarta.xml.bind</groupId>
            <artifactId>jakarta.xml.bind-api</artifactId>
            <version>4.0.0</version>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>4.0.0</version>
            <scope>runtime</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxb2-maven-plugin</artifactId>
                <version>3.1.0</version>
                <executions>
                    <execution>
                        <id>generate-gpf</id>
                        <goals><goal>xjc</goal></goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/wsdl/GPFWebService.xsd</source>
                            </sources>
                            <packageName>it.pigrecofvg.sinfomarws.gpf.wsdl.model</packageName>
                            <outputDirectory>${project.build.directory}/generated-sources/gpf</outputDirectory>
                        </configuration>
                    </execution>
                    <execution>
                        <id>generate-gtr</id>
                        <goals><goal>xjc</goal></goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/wsdl/GTRWebService.xsd</source>
                            </sources>
                            <packageName>it.pigrecofvg.sinfomarws.gtr.wsdl.model</packageName>
                            <outputDirectory>${project.build.directory}/generated-sources/gtr</outputDirectory>
                        </configuration>
                    </execution>
                    <execution>
                        <id>generate-semafori</id>
                        <goals><goal>xjc</goal></goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/wsdl/SemaforiWebService.xsd</source>
                            </sources>
                            <packageName>it.pigrecofvg.sinfomarws.semafori.wsdl.model</packageName>
                            <outputDirectory>${project.build.directory}/generated-sources/semafori</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>pigreco</id>
            <url>https://forgejo.pigrecofvg.it/api/packages/pigreco/maven</url>
        </repository>
    </repositories>
    <distributionManagement>
        <repository>
            <id>pigreco</id>
            <url>https://forgejo.pigrecofvg.it/api/packages/pigreco/maven</url>
        </repository>
        <snapshotRepository>
            <id>pigreco</id>
            <url>https://forgejo.pigrecofvg.it/api/packages/pigreco/maven</url>
        </snapshotRepository>
    </distributionManagement>

</project>
