Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
pom.xml 52.7 KiB
Newer Older
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2017-2023 European Commission | CEF eDelivery

Licensed under the EUPL, Version 1.2 or – as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence");
You may not use this work except in compliance with the Licence.

You may obtain a copy of the Licence attached in file: LICENCE-EUPL-v1.2.pdf
Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the Licence for the specific language governing permissions and limitations under the Licence.
  -->
<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>eu.europa.ec.edelivery</groupId>
    <artifactId>smp-modules</artifactId>
    <packaging>pom</packaging>
    <name>SMP</name>
    <version>5.2-SNAPSHOT</version>
    <licenses>
        <license>
            <name>EUPL-2.1</name>
            <url>https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
        <module>smp-angular</module>
        <module>smp-spi</module>
        <module>smp-server-library</module>
        <module>smp-resource-extensions</module>
        <module>smp-webapp</module>
        <module>smp-springboot</module>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <module>domismp-tests</module>
        <module>smp-examples</module>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <module>smp-aggregator</module>
        <prerequisites.maven_min_version>3.5</prerequisites.maven_min_version>
        <jacocoRemotePort />
        <jacocoRemoteAddress />
        <!-- the root/main folder of the project used by aggregation plugins (license).
        Alternative ${session.executionRootDirectory} -->
        <project.root.baseUri>${maven.multiModuleProjectDirectory}</project.root.baseUri>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <!-- Note: domismp application target is JDK 8, but minimal build JDK version must be Java 11 due to domismp-tests modules
        -->
        <maven.compiler.target>1.8</maven.compiler.target>
        <maven.compiler.source>1.8</maven.compiler.source>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <edelivery.ssl-auth.version>1.16</edelivery.ssl-auth.version>
        <edelivery.dynamic-discovery-client.version>2.3</edelivery.dynamic-discovery-client.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <bdmsl-api.version>4.3</bdmsl-api.version>
        <!-- plugin versions -->
        <maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
        <plugin.dependency-check-maven.version>10.0.4</plugin.dependency-check-maven.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <plugin.jacoco-maven-plugin.version>0.8.11</plugin.jacoco-maven-plugin.version>
        <plugin.license-maven-plugin.version>2.4.0</plugin.license-maven-plugin.version>
        <plugin.maven-antrun-plugin.version>3.1.0</plugin.maven-antrun-plugin.version>
        <plugin.maven-assembly-plugin.version>3.7.1</plugin.maven-assembly-plugin.version>
        <plugin.maven-clean-plugin.version>3.4.0</plugin.maven-clean-plugin.version>
        <plugin.maven-compiler-plugin.version>3.13.0</plugin.maven-compiler-plugin.version>
        <plugin.maven-dependency-plugin.version>3.8.0</plugin.maven-dependency-plugin.version>
        <plugin.maven-failsafe-plugin.version>3.5.1</plugin.maven-failsafe-plugin.version>
        <plugin.maven-jar-plugin.version>3.3.0</plugin.maven-jar-plugin.version>
        <plugin.maven-release-plugin.version>3.1.1</plugin.maven-release-plugin.version>
        <plugin.maven-resources-plugin.version>3.3.1</plugin.maven-resources-plugin.version>
        <plugin.maven-surefire-plugin.version>3.2.5</plugin.maven-surefire-plugin.version>
        <plugin.maven-war-plugin.version>3.4.0</plugin.maven-war-plugin.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed

        <aspectj.version>1.9.22.1</aspectj.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <commons-beanutils.version>1.9.4</commons-beanutils.version>
        <commons-collections.version>3.2.2</commons-collections.version>
        <commons-io.version>2.17.0</commons-io.version>
        <commons-lang3.version>3.17.0</commons-lang3.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <commons-fileupload.version>1.5</commons-fileupload.version>
        <commons-net.version>3.11.1</commons-net.version>
        <commons-validator.version>1.9.0</commons-validator.version>
        <cxf-xjc-runtime.version>3.3.4</cxf-xjc-runtime.version>
        <cxf.version>3.5.9</cxf.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <ehcache.version>3.10.8</ehcache.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <h2.version>2.2.224</h2.version>
        <hamcrest.version>2.2</hamcrest.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <hibernate-jpa.version>1.0.2.Final</hibernate-jpa.version>
        <hibernate.validator.version>7.0.5.Final</hibernate.validator.version>
        <hibernate.version>5.6.15.Final</hibernate.version>
        <httpclient.version>4.5.14</httpclient.version>
        <jackson.version>2.18.1</jackson.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <javaee-api.version>7.0</javaee-api.version>
        <javax.annotation.version>1.3.2</javax.annotation.version>
        <javax.mail.version>1.6.2</javax.mail.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <jaxb2-basics.version>1.11.1</jaxb2-basics.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <org.glassfish.jaxb.jaxb-runtime.version>2.3.9</org.glassfish.jaxb.jaxb-runtime.version>
        <jakarta.xml.bind-api.version>2.3.3</jakarta.xml.bind-api.version>
        <junit-jupiter.version>5.11.3</junit-jupiter.version>
        <junit-platform-surefire-provider.version>1.3.2</junit-platform-surefire-provider.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <junitparams.version>1.1.1</junitparams.version>
        <!-- Use logback 1.2.x because is the one used by springboot 5.7. Changing to 1.3+ will break springboot logging. -->
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <slf4j.version>1.7.36</slf4j.version>
        <logback.version>1.2.13</logback.version>
        <mysql.jdbc.version>8.4.0</mysql.jdbc.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <metro.version>2.2.1-1</metro.version>
        <mockito.version>4.11.0</mockito.version>
        <jakarta.servlet-api.version>4.0.4</jakarta.servlet-api.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed

Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <spring-modules-jakarta-commons.version>0.8</spring-modules-jakarta-commons.version>
        <spring-boot.version>2.7.18</spring-boot.version>
        <spring-boot.tomcat.version>9.0.96</spring-boot.tomcat.version>
        <spring.security.version>5.8.15</spring.security.version>
        <spring.version>5.3.39</spring.version>
        <xmlunit.version>2.10.0</xmlunit.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <plugin.frontend-maven-plugin.version>1.15.0</plugin.frontend-maven-plugin.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <sonar.jacoco.remotePort>${jacocoRemotePort}</sonar.jacoco.remotePort>
        <sonar.jacoco.remoteAddress>${jacocoRemoteAddress}</sonar.jacoco.remoteAddress>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <sonar.host.url>http://localhost:9000/sonar/</sonar.host.url>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <sonar.language>java</sonar.language>
        <jacoco.append>true</jacoco.append>
        <sonar.binaries>target/classes</sonar.binaries>
        <sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco/jacoco.xml
        </sonar.coverage.jacoco.xmlReportPaths>
        <sonar.jacoco.itReportPath>${project.basedir}/../target/jacoco-it.exec</sonar.jacoco.itReportPath>

        <sonar.exclusions>
            **/target/**,
            **/smp-angular/node_modules/**,
            **/swagger*.js,
            **/web.xml,
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            **/smp-examples/**,
        </sonar.exclusions>
        <sonar.coverage.exclusions>
            **/*Entity.java,
            **/*RO.java,
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            **/DB*.java,
            **/*Exception.java,
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            **/*Types.java,
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            **/*Constants.java,
        </sonar.coverage.exclusions>
      
        <plugin.sonar-maven-plugin.version>3.11.0.3922</plugin.sonar-maven-plugin.version>
        <release.arguments>-DusePreInstallNpm=${usePreInstallNpm} -Dnpm.path=${npm.path} -Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true -Dmaven.test.skip=true
        </release.arguments>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <project.scm.id>edelivery-scm</project.scm.id>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <developerConnection>scm:git:https://ec.europa.eu/digital-building-blocks/code/scm/edelivery/smp.git
        </developerConnection>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
    <repositories>
        <repository>
            <id>cefdigital-releases</id>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <url>https://ec.europa.eu/digital-building-blocks/artifact/content/repositories/eDelivery/</url>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>cefdigital-snapshots</id>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <url>https://ec.europa.eu/digital-building-blocks/artifact/content/repositories/eDelivery-snapshots/</url>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>cefdigital-thirdparty</id>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <url>https://ec.europa.eu/digital-building-blocks/artifact/content/repositories/eDelivery-third-party/</url>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        </repository>
    </repositories>
    <!-- Where to deploy binaries -->
    <distributionManagement>
        <repository>
            <id>cefdigital-releases</id>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <url>https://ec.europa.eu/digital-building-blocks/artifact/content/repositories/eDelivery/</url>
        </repository>
        <snapshotRepository>
            <id>cefdigital-snapshots</id>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <url>https://ec.europa.eu/digital-building-blocks/artifact/content/repositories/eDelivery-snapshots/</url>
        </snapshotRepository>
    </distributionManagement>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed

    <!-- Default version numbers to use -->
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>eu.europa.ec.edelivery</groupId>
                <artifactId>edelivery-springsecurity-2-way-ssl-auth</artifactId>
                <version>${edelivery.ssl-auth.version}</version>
            </dependency>
            <dependency>
                <groupId>eu.europa.ec.dynamic-discovery</groupId>
                <artifactId>dynamic-discovery-client</artifactId>
                <version>${edelivery.dynamic-discovery-client.version}</version>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <dependency>
                <groupId>eu.europa.ec.bdmsl</groupId>
                <artifactId>bdmsl-api</artifactId>
                <version>${bdmsl-api.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            </dependency>
            <dependency>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-rt-frontend-jaxws</artifactId>
                <version>${cxf.version}</version>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <!-- Ehcache -->
            <dependency>
                <groupId>org.ehcache</groupId>
                <artifactId>ehcache</artifactId>
                <version>${ehcache.version}</version>
            </dependency>

Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <dependency>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-rt-transports-http</artifactId>
                <version>${cxf.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-rt-ws-security</artifactId>
                <version>${cxf.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-rt-security</artifactId>
                <version>${cxf.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-rt-features-logging</artifactId>
                <version>${cxf.version}</version>
            </dependency>
            <dependency>
                <groupId>jakarta.xml.bind</groupId>
                <artifactId>jakarta.xml.bind-api</artifactId>
                <version>${jakarta.xml.bind-api.version}</version>
            </dependency>
            <dependency>
                <groupId>org.glassfish.jaxb</groupId>
                <artifactId>jaxb-runtime</artifactId>
                <version>${org.glassfish.jaxb.jaxb-runtime.version}</version>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient</artifactId>
                <version>${httpclient.version}</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate.javax.persistence</groupId>
                <artifactId>hibernate-jpa-2.1-api</artifactId>
                <version>${hibernate-jpa.version}</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-core</artifactId>
                <version>${hibernate.version}</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-validator</artifactId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <version>${hibernate.validator.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-envers</artifactId>
                <version>${hibernate.version}</version>
            </dependency>
            <dependency>
                <groupId>com.h2database</groupId>
                <artifactId>h2</artifactId>
                <version>${h2.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-webmvc</artifactId>
                <version>${spring.version}</version>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-oxm</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-beans</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-tx</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-orm</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context-support</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-jdbc</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-core</artifactId>
                <version>${spring.security.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-web</artifactId>
                <version>${spring.security.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-config</artifactId>
                <version>${spring.security.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-cas</artifactId>
                <version>${spring.security.version}</version>
                <exclusions>
                    <!-- exclude old org.bouncycastle:bcprov-jdk15on:jar:1.64 to use bcprov-jdk18on
                     Check if this is needed when upgrading the library! -->
                    <exclusion>
                        <groupId>org.bouncycastle</groupId>
                        <artifactId>bcprov-jdk15on</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.bouncycastle</groupId>
                        <artifactId>bcpkix-jdk15on</artifactId>
                    </exclusion>
                </exclusions>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-web</artifactId>
                <version>${spring-boot.version}</version>
                <!-- exclude them and then manually include the same version! fix for the springboot jackson dependency conflicts
             (current springboot uses 2.13.4! and maven upgrade just direct dependencies and not transit
              dependencies with latest version!! )-->
                <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>
                    <exclusion>
                        <groupId>com.fasterxml.jackson.datatype</groupId>
                        <artifactId>jackson-datatype-jsr310</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.fasterxml.jackson.datatype</groupId>
                        <artifactId>jackson-datatype-jdk8</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.fasterxml.jackson.module</groupId>
                        <artifactId>jackson-module-parameter-names</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.tomcat.embed</groupId>
                <artifactId>tomcat-embed-jasper</artifactId>
                <version>${spring-boot.tomcat.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-tomcat</artifactId>
                <version>${spring-boot.version}</version>
            </dependency>
            <dependency>
                <groupId>com.mysql</groupId>
                <artifactId>mysql-connector-j</artifactId>
                <version>${mysql.jdbc.version}</version>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-test</artifactId>
                <version>${spring.security.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-test</artifactId>
                <version>${spring.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>javax.annotation</groupId>
                <artifactId>javax.annotation-api</artifactId>
                <version>${javax.annotation.version}</version>
            </dependency>
            <dependency>
                <groupId>org.aspectj</groupId>
                <artifactId>aspectjweaver</artifactId>
                <version>${aspectj.version}</version>
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>${logback.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-core</artifactId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <version>${logback.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-ext</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jvnet.jaxb2_commons</groupId>
                <artifactId>jaxb2-basics</artifactId>
                <version>${jaxb2-basics.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.cxf.xjc-utils</groupId>
                <artifactId>cxf-xjc-runtime</artifactId>
                <version>${cxf-xjc-runtime.version}</version>
            </dependency>

            <dependency>
                <groupId>com.sun.mail</groupId>
                <artifactId>javax.mail</artifactId>
                <version>${javax.mail.version}</version>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>${mockito.version}</version>
                <scope>test</scope>
            </dependency>
            <!-- Jackson-->
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${jackson.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>${jackson.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.module</groupId>
                <artifactId>jackson-module-jaxb-annotations</artifactId>
                <version>${jackson.version}</version>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <dependency>
                <groupId>com.fasterxml.jackson.datatype</groupId>
                <artifactId>jackson-datatype-jsr310</artifactId>
                <version>${jackson.version}</version>
            </dependency>
            <!-- End Jackson-->
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${commons-lang3.version}</version>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <dependency>
                <groupId>commons-fileupload</groupId>
                <artifactId>commons-fileupload</artifactId>
                <version>${commons-fileupload.version}</version>
            </dependency>

Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <dependency>
                <groupId>javax</groupId>
                <artifactId>javaee-api</artifactId>
                <version>${javaee-api.version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>org.springmodules</groupId>
                <artifactId>spring-modules-jakarta-commons</artifactId>
                <version>${spring-modules-jakarta-commons.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-net</groupId>
                <artifactId>commons-net</artifactId>
                <version>${commons-net.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-validator</groupId>
                <artifactId>commons-validator</artifactId>
                <version>${commons-validator.version}</version>
            </dependency>
            <!-- commons-collections and commons-beanutils are transient dependencies of
            slf4j: 1.7.32 and commons-validator: 1.7
            they were upgraded because of OWASP reported ISSUE. When upgrading SLF4J check if this is still needed
          -->
            <dependency>
                <groupId>commons-collections</groupId>
                <artifactId>commons-collections</artifactId>
                <version>${commons-collections.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-beanutils</groupId>
                <artifactId>commons-beanutils</artifactId>
                <version>${commons-beanutils.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons-io.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>jakarta.servlet</groupId>
                <artifactId>jakarta.servlet-api</artifactId>
                <version>${jakarta.servlet-api.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.xmlunit</groupId>
                <artifactId>xmlunit-core</artifactId>
                <version>${xmlunit.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.xmlunit</groupId>
                <artifactId>xmlunit-matchers</artifactId>
                <version>${xmlunit.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest</artifactId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <version>${hamcrest.version}</version>
                <scope>test</scope>
            </dependency>
            <!-- Test dependencies -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-data-jpa</artifactId>
                <version>${spring-boot.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-test</artifactId>
                <version>${spring-boot.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            </dependency>
            <!-- upgrade to junit5 -->
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>${slf4j.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-junit-jupiter</artifactId>
                <version>${mockito.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-engine</artifactId>
                <version>${junit-jupiter.version}</version>
                <scope>test</scope>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-params</artifactId>
                <version>${junit-jupiter.version}</version>
                <scope>test</scope>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        </dependencies>
    </dependencyManagement>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>${maven-enforcer-plugin.version}</version>
                </plugin>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <plugin>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                    <groupId>org.apache.maven.plugins</groupId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${plugin.maven-surefire-plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <version>${plugin.maven-failsafe-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                </plugin>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <plugin>
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
                    <version>${plugin.jacoco-maven-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                </plugin>
                <plugin>
                    <groupId>org.sonarsource.scanner.maven</groupId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                    <artifactId>sonar-maven-plugin</artifactId>
                    <version>${plugin.sonar-maven-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                </plugin>
                <plugin>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>cxf-codegen-plugin</artifactId>
                    <version>${cxf.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>${plugin.maven-war-plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>${plugin.maven-resources-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>${plugin.maven-antrun-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                </plugin>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>${plugin.maven-dependency-plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>${plugin.maven-assembly-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                </plugin>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <version>${spring-boot.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>${plugin.maven-clean-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>${plugin.maven-compiler-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>${plugin.maven-jar-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                </plugin>
                <plugin>
                    <groupId>com.github.eirslett</groupId>
                    <artifactId>frontend-maven-plugin</artifactId>
                    <version>${plugin.frontend-maven-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-maven</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
                                    <version>${prerequisites.maven_min_version}</version>
                                </requireMavenVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <systemPropertyVariables>
                        <!-- build directory for test logging -->
                        <buildDirectory>${project.build.directory}</buildDirectory>
                    </systemPropertyVariables>
                    <!-- make sure methods are  always run in same order -->
                    <runOrder>alphabetical</runOrder>
                    <argLine>-ea ${argLine}</argLine>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-failsafe-plugin</artifactId>
                <configuration>
                    <systemPropertyVariables>
                        <!-- build directory for test logging -->
                        <buildDirectory>${project.build.directory}</buildDirectory>
                    </systemPropertyVariables>

                    <!-- ... fool Sonar to show test success for both unit and integration tests together by
                    instructing Failsafe to store its test reports to the same directory as Surefire instead of
                    the default failsafe-reports.

                    See https://jira.sonarsource.com/browse/SONAR-7526 -->

                    <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
                    <includes>
                        <include>**/*IT.java</include>
                    </includes>
                    <runOrder>alphabetical</runOrder>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                            <goal>verify</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!-- jacoco start -->
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <executions>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                        <id>prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                    <execution>
                        <id>report</id>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                        <phase>package</phase>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                            <goal>report</goal>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                    </execution>
                    <execution>
                        <id>jacoco-agent-it</id>
                        <goals>
                            <goal>prepare-agent-integration</goal>
                        </goals>
                        <configuration>
                            <destFile>${jacoco.report.it}</destFile>
                            <propertyName>failsafeArgLine</propertyName>
                        </configuration>
                    </execution>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                </executions>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <plugin>
                <groupId>org.sonarsource.scanner.maven</groupId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <artifactId>sonar-maven-plugin</artifactId>
            </plugin>
            <plugin>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <groupId>org.apache.maven.plugins</groupId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <artifactId>maven-release-plugin</artifactId>
                <version>${plugin.maven-release-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <configuration>
                    <arguments>-DusePreInstallNpm=${usePreInstallNpm} -Dnpm.path=${npm.path} -Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true  -Dmaven.test.skip=true
                    </arguments>
                    <!-- <arguments>${release.arguments}</arguments> and setting it as
                    release:prepare  -Darguments="-Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true -Dmaven.test.skip=true" -DskipITs=true
                    does not work! -->
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                </configuration>
            </plugin>
        </plugins>

    </build>
    <profiles>
        <profile>
            <id>dependency-check</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.owasp</groupId>
                        <artifactId>dependency-check-maven</artifactId>
                        <version>${plugin.dependency-check-maven.version}</version>
                        <inherited>false</inherited>
                        <configuration>
                            <nvdApiServerId>edelivery-owasp</nvdApiServerId>
                            <skipProvidedScope>true</skipProvidedScope>
                            <skipRuntimeScope>true</skipRuntimeScope>
                            <!-- Disable .Net Assembly Analyzer -->
                            <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled>

                            <nodeAnalyzerEnabled>true</nodeAnalyzerEnabled>
                            <!-- Disable checking npm dev dependencies -->
                            <nodeAuditSkipDevDependencies>true</nodeAuditSkipDevDependencies>
                            <nodePackageSkipDevDependencies>true</nodePackageSkipDevDependencies>
                            <suppressionFile>owasp-false-positive-warnings.xml</suppressionFile>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>aggregate</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>license-check</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>license-maven-plugin</artifactId>
                        <version>${plugin.license-maven-plugin.version}</version>
                        <executions>
                            <execution>
                                <id>download-licenses</id>
                                <goals>
                                    <goal>aggregate-download-licenses</goal>
                                    <goal>aggregate-add-third-party</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <licenseMerges>
                                <licenseMerge>Apache License, Version 2.0|Apache License 2.0|The Apache Software
                                    License, Version 2.0|Apache Public License 2.0|Apache 2|Apache License, version
                                    2.0|The Apache License, Version 2.0
                                </licenseMerge>
                                <!--  Common Public License Version 1.0|CPL was replaced by Eclipse Public License -->
                                <licenseMerge>Eclipse Public License 1.0 (EPL-1.0)|Eclipse Public License (EPL)
                                    v1.0|Eclipse Public License - v 1.0|Eclipse Distribution License - v 1.0|Eclipse
                                    Public License 1.0|EDL 1.0|Common Public License Version 1.0|CPL
                                </licenseMerge>
                                <licenseMerge>The MIT License|MIT License</licenseMerge>
                                <licenseMerge>BSD license (all versions)|BSD License|The BSD License|BSD 3-clause New
                                    License|BSD Licence 3|BSD-Style License|BSD-3-Clause|New BSD License
                                </licenseMerge>
                                <licenseMerge>Dual license consisting of the CDDL v1.1 and GPL v2|CDDL + GPLv2 with
                                    classpath exception|CDDL/GPLv2+CE|CDDL+GPL License
                                </licenseMerge>
                                <licenseMerge>Common Development and Distribution License (CDDL)|Common Development and
                                    Distribution License (CDDL) v1.0|Common Development and Distribution|CDDL 1.1|
                                </licenseMerge>
                            </licenseMerges>
                            <excludedLicenses>
                                <excludedLicense>Unknown license</excludedLicense>
                                <excludedLicense>licenseB</excludedLicense>
                            </excludedLicenses>
                            <excludedGroups>eu.europa.ec.*</excludedGroups>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <!-- Update license  eupl-1.2 headers to all files which matches filter bellow.
            Note if processStartTag, processEndTag does not match the values in plugin configuration, the license will be added
             twice. Manually check all changed files!

            NOTE: do not forget to run the command before the release:
            mvn clean process-resources -Pupdate-license-headers
             -->
            <id>update-license-headers</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>license-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>update-license</id>
                                <goals>
                                    <goal>update-file-header</goal>
                                </goals>
                                <phase>process-sources</phase>
                                <configuration>
                                    <licenseResolver>file://${project.root.baseUri}/license</licenseResolver>
                                    <licenseName>eupl-1.2</licenseName>
                                    <inceptionYear>2017</inceptionYear>
                                    <organizationName>European Commission | eDelivery | DomiSMP</organizationName>
                                    <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
                                    <processStartTag>#START_LICENSE#</processStartTag>
                                    <processEndTag>#END_LICENSE#</processEndTag>
                                    <sectionDelimiter>%%</sectionDelimiter>
                                    <extraExtensions>
                                        <xjb>xml</xjb>
                                    </extraExtensions>
                                    <includes>
                                        <include>**/*.java</include>
                                        <include>**/*.xml</include>
                                        <include>**/*.xsd</include>
                                        <include>**/*.xjb</include>
                                        <include>**/*.properties</include>
                                        <include>**/*.txt</include>
                                    </includes>
                                    <excludes>
                                        <exclude>**/src/main/resources/xsd/**</exclude>
                                    </excludes>
                                    <roots>
                                        <root>src/main</root>
                                        <root>src/test</root>
                                    </roots>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <!-- Generate NOTICE.md file from licenses.xml
            The plugin will download all licenses from the dependencies and
            generate a target/generated-resources/licenses.xml file with
            org.codehaus.mojo:license-maven-plugin.
            Then it will transform the licenses.xml file to a NOTICE.md file
            with org.codehaus.mojo:xml-maven-plugin and the licenses/config/license.xsl stylesheet.

            To generate the NOTICE.md file, run the following command:

            mvn clean process-resources -Plicense-generate-notice

            NOTE: do not forget to regenerate the NOTICE.md file when adding new dependencies or updating the existing ones
            and before the release!
            -->
            <id>license-generate-notice</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>license-maven-plugin</artifactId>
                        <version>${plugin.license-maven-plugin.version}</version>
                        <executions>
                            <execution>
                                <id>download-licenses</id>
                                <phase>process-resources</phase>
                                <goals>
                                    <goal>aggregate-download-licenses</goal>
                                    <goal>aggregate-add-third-party</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <extendedInfo>true</extendedInfo>
                            <cleanLicensesOutputDirectory>true</cleanLicensesOutputDirectory>
                            <removeOrphanLicenseFiles>true</removeOrphanLicenseFiles>
                            <excludedGroups>com.smartbear.*|eu.europa.ec.*</excludedGroups>
                            <excludeTransitiveDependencies>true</excludeTransitiveDependencies>
                            <excludedScopes>test</excludedScopes>
                            <includeTransitiveDependencies>false</includeTransitiveDependencies>
                            <sortArtifactByName>true</sortArtifactByName>
                            <licenseMerges>
                                <licenseMerge>Apache-2.0|Apache License, Version 2.0|Apache License 2.0|The Apache Software License, Version 2.0|Apache Public License 2.0|Apache 2|Apache License, version 2.0|The Apache License, Version 2.0|Apache 2.0</licenseMerge>
                                <!--  Common Public License Version 1.0|CPL was replaced by Eclipse Public License -->
                                <licenseMerge>EPL-2.0|EPL 2.0|Eclipse Public License 2.0</licenseMerge>
                                <licenseMerge>EPL-1.0| (EPL-1.0)|Eclipse Public License (EPL) v1.0|Eclipse Public License (EPL), Version 1.0|Eclipse Public License - v 1.0|Eclipse Public License 1.0|EDL 1.0|Common Public License Version 1.0|CPL</licenseMerge>
                                <licenseMerge>GPL-2.0-or-later|The GNU General Public License, v2 with Universal FOSS Exception, v1.0</licenseMerge>
                                <licenseMerge>MIT|The MIT License|MIT License</licenseMerge>
                                <licenseMerge>BSD-3-Clause|BSD license (all versions)|BSD License|The BSD License|BSD 3-clause New License|BSD Licence 3|BSD-Style License|New BSD License|Eclipse Distribution License - v 1.0|Eclipse Distribution License (EDL), Version 1.0</licenseMerge>
                                <licenseMerge>LGPL-2.1+|GNU Library General Public License v2.1 or later|GNU Lesser General Public License</licenseMerge>
                                <licenseMerge>CDDL-1.1|Dual license consisting of the CDDL v1.1 and GPL v2|CDDL + GPLv2 with classpath exception|CDDL/GPLv2+CE|CDDL+GPL License</licenseMerge>