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

Skip to content
Snippets Groups Projects
pom.xml 43.9 KiB
Newer Older
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2017 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 http://maven.apache.org/maven-v4_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.1-SNAPSHOT</version>
        <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>smp-soapui-tests</module>
        <module>smp-examples</module>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <module>smp-aggregator</module>
        <maven.compiler.target>1.8</maven.compiler.target>
        <maven.compiler.source>1.8</maven.compiler.source>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <edelivery.ssl-auth.version>1.15-SNAPSHOT</edelivery.ssl-auth.version>
        <edelivery.dynamic-discovery-client.version>2.1-SNAPSHOT</edelivery.dynamic-discovery-client.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <bdmsl-api.version>4.3</bdmsl-api.version>
        <!-- plugin versions -->
        <plugin.build-helper-maven-plugin.version>1.9.1</plugin.build-helper-maven-plugin.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <plugin.dependency-check-maven.version>8.4.2</plugin.dependency-check-maven.version>
        <plugin.jacoco-maven-plugin.version>0.8.11</plugin.jacoco-maven-plugin.version>
        <plugin.license-maven-plugin.version>2.0.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.6.0</plugin.maven-assembly-plugin.version>
        <plugin.maven-bundle-plugin.version>3.0.0</plugin.maven-bundle-plugin.version>
        <plugin.maven-clean-plugin.version>3.3.1</plugin.maven-clean-plugin.version>
        <plugin.maven-compiler-plugin.version>3.11.0</plugin.maven-compiler-plugin.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <plugin.maven-dependency-plugin.version>3.6.0</plugin.maven-dependency-plugin.version>
        <plugin.maven-failsafe-plugin.version>3.1.2</plugin.maven-failsafe-plugin.version>
        <plugin.maven-jar-plugin.version>3.3.0</plugin.maven-jar-plugin.version>
        <plugin.maven-release-plugin.version>3.0.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.1.2</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

Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <ant-commons-net.version>1.6.5</ant-commons-net.version>
        <aspectj.version>1.9.20.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>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <commons-io.version>2.14.0</commons-io.version>
        <commons-lang3.version>3.13.0</commons-lang3.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <commons-fileupload.version>1.5</commons-fileupload.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <commons-net.version>3.9.0</commons-net.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <commons-validator.version>1.7</commons-validator.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <cxf-xjc-runtime.version>3.3.2</cxf-xjc-runtime.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <cxf.version>3.5.7</cxf.version>
        <ehcache.version>2.10.9.2</ehcache.version>
        <freemarker.version>2.3.32</freemarker.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <h2.version>2.2.224</h2.version>
        <hamcrest-junit.version>2.0.0.0</hamcrest-junit.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>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <jackson-databind.version>2.15.3</jackson-databind.version>
        <jackson.version>2.15.3</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>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <jstl.version>1.2</jstl.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <junit.version>4.13.2</junit.version>
        <junit-jupiter.version>5.10.0</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>
        <logback.version>1.3.8</logback.version>
        <mysql.jdbc.version>8.1.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>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <orika.version>1.5.4</orika.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <servlet-api.version>3.0.1</servlet-api.version>
        <slf4j.version>2.0.9</slf4j.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <spring-modules-jakarta-commons.version>0.8</spring-modules-jakarta-commons.version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <spring-boot.version>2.7.17</spring-boot.version>
        <spring-boot.tomcat.version>9.0.82</spring-boot.tomcat.version>
        <spring.security.version>5.8.8</spring.security.version>
        <spring.version>5.3.30</spring.version>
        <xmlunit.version>2.9.1</xmlunit.version>
        <plugin.frontend-maven-plugin.version>1.12.1</plugin.frontend-maven-plugin.version>
        <plugin.exec-maven-plugin.version>1.6.0</plugin.exec-maven-plugin.version>
        <surefire.jvm.args></surefire.jvm.args>
        <failsafe.jvm.args></failsafe.jvm.args>
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>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <!-- latest version compatible with SonarQube 5.6 is: 3.3.0.603-->
        <plugin.sonar-maven-plugin.version>3.5.0.1254</plugin.sonar-maven-plugin.version>
        <release.arguments>-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>
            <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.freemarker</groupId>
                <artifactId>freemarker</artifactId>
                <version>${freemarker.version}</version>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <dependency>
                <groupId>eu.europa.ec.cipa</groupId>
                <artifactId>cipa-edelivery-common</artifactId>
                <version>${project.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-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-webmvc</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>
                </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>ma.glasnost.orika</groupId>
                <artifactId>orika-core</artifactId>
                <version>${orika.version}</version>
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <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>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
                <scope>test</scope>
            </dependency>
            <!-- Jackson-->
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                <version>${jackson-databind.version}</version>
                <!-- exclude them and then manually include the same version! fix for the springboot
                 (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-->
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>javax.servlet</groupId>
                <artifactId>jstl</artifactId>
                <version>${jstl.version}</version>
            </dependency>
            <dependency>
                <groupId>net.sf.ehcache</groupId>
                <artifactId>ehcache</artifactId>
                <version>${ehcache.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springmodules</groupId>
                <artifactId>spring-modules-jakarta-commons</artifactId>
                <version>${spring-modules-jakarta-commons.version}</version>
            </dependency>
            <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-commons-net</artifactId>
                <version>${ant-commons-net.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>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>${servlet-api.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>pl.pragmatists</groupId>
                <artifactId>JUnitParams</artifactId>
                <version>${junitparams.version}</version>
                <scope>test</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>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-junit</artifactId>
                <version>${hamcrest-junit.version}</version>
                <scope>test</scope>
            </dependency>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            <!-- 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.mockito</groupId>
                <artifactId>mockito-inline</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.vintage</groupId>
                <artifactId>junit-vintage-engine</artifactId>
                <version>${junit-jupiter.version}</version>
                <scope>test</scope>
            </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>
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.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>${plugin.build-helper-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.felix</groupId>
                    <artifactId>maven-bundle-plugin</artifactId>
                    <version>${plugin.maven-bundle-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>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>exec-maven-plugin</artifactId>
                    <version>${plugin.exec-maven-plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <!-- 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>
                    <!-- ... 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 -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>
                            <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>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <profile>
            <id>deploy-wls</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <modules>
                <module>smp-wls-deploy</module>
            </modules>
        </profile>