<?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>
    <groupId>it.almaviva</groupId>
    <artifactId>gestionepratiche-web</artifactId>
    <version>0.0.1</version>
    <name>gestionepratiche</name>
    <packaging>${packaging.type}</packaging>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.6.10</version>
    </parent>
    <properties>
        <start-class>it.almaviva.gestionepratiche.Application</start-class>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>junit</groupId>
                    <artifactId>junit</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>xmlunit</groupId>
            <artifactId>xmlunit</artifactId>
            <version>1.6</version>
        </dependency>

        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-data</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-services</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-tasks</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-service-plugin-api</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-connectors-api</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-workflow-connector-api</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-workflow-connector-camunda</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-document-connector-api</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-document-connector-alfresco-cm</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-document-connector-embedded</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-converters</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>gestionepratiche-reporting</artifactId>
            <version>0.0.1</version>
        </dependency>

        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.5</version>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.11</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-annotations</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.dataformat</groupId>
            <artifactId>jackson-dataformat-xml</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-ui</artifactId>
            <version>1.5.2</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-oauth2-client</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
        </dependency>
        <dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt</artifactId>
            <version>0.7.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-cache</artifactId>
        </dependency>
        <dependency>
            <groupId>net.sf.ehcache</groupId>
            <artifactId>ehcache</artifactId>
            <version>2.10.5</version>
        </dependency>

        <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activeio-core</artifactId>
            <version>3.1.4</version>
        </dependency>
        <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-broker</artifactId>
            <version>5.16.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-kahadb-store</artifactId>
            <version>5.16.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-pool</artifactId>
            <version>5.16.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-jdbc-store</artifactId>
            <version>5.16.1</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jms</artifactId>
            <version>5.3.3</version>
        </dependency>

        <dependency>
            <groupId>net.javacrumbs.shedlock</groupId>
            <artifactId>shedlock-spring</artifactId>
            <version>4.20.0</version>
        </dependency>
        <dependency>
            <groupId>net.javacrumbs.shedlock</groupId>
            <artifactId>shedlock-provider-jdbc-template</artifactId>
            <version>4.20.0</version>
        </dependency>

        <dependency>
            <groupId>org.owasp.esapi</groupId>
            <artifactId>esapi</artifactId>
            <version>2.1.0.1</version>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.6</version>
        </dependency>

        <!-- Services plugins -->
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>simel2-service-plugin</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>development-service-plugin</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>it.almaviva</groupId>
            <artifactId>document-service-plugin</artifactId>
            <version>0.0.1</version>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>GP-war</id>
            <properties>
                <packaging.type>war</packaging.type>
            </properties>
            <build>

                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-war-plugin</artifactId>
                    </plugin>
                </plugins>
                <directory>${project.basedir}/target/GP-war</directory>
            </build>
        </profile>
        <profile>
            <id>GP-jar</id>
            <properties>
                <packaging.type>jar</packaging.type>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-maven-plugin</artifactId>
                    </plugin>
                </plugins>
                <directory>${project.basedir}/target/GP-jar</directory>
            </build>
        </profile>
    </profiles>
    <build>
        <finalName>gestionepratiche</finalName>
    </build>
</project>