@KrishnenduGhosh-MSFT
pom.xml is :
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2018 Ethoca
All Rights Reserved.
No part of this software may be reproduced, stored, used, modified or transmitted in any form or in any means
(including without limitation, electronic, mechanical, photocopying, recording or otherwise) without the prior
express written consent of Ethoca which may be withheld in Ethoca's sole and absolute discretion
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"\>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.ethoca</groupId>
<artifactId>iportal</artifactId>
<version>2.38.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>IssuerPortal</name>
<description>Card Holder Dispute Portal for Issuers</description>
<profiles>
<profile>
<id>skip-integration-tests</id>
<properties>
<skipIntegrationTests>true</skipIntegrationTests>
</properties>
</profile>
<profile>
<id>Copyright-header</id>
<properties>
<currentyear>2019</currentyear>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>3.0</version>
<configuration><header>http://gitlab.ethoca.com/public-assets/copyright-material/raw/dev/copyright_template.txt</header>
<aggregate>true</aggregate>
<properties>
<current_year>2020</current_year>
</properties>
<excludes>
<exclude>**/README</exclude>
<exclude>src/test/resources/**</exclude>
<exclude>src/main/resources/**</exclude>
<exclude>**/*.csv</exclude>
<exclude>**/*.config</exclude>
<exclude>**/*.min.*</exclude>
</excludes>
<headerDefinitions>
<headerDefinition>http://gitlab.ethoca.com/public-assets/copyright-material/raw/dev/groovy_header_config.xml</headerDefinition>
</headerDefinitions>
<mapping>
<groovy>GROOVY_STYLE</groovy>
</mapping>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<toolchain.jdk.version>1.8</toolchain.jdk.version>
<toolchain.jdk.vendor>Oracle</toolchain.jdk.vendor>
<jacoco.version>0.7.9</jacoco.version>
<jacoco.ut.summary>${project.reporting.outputDirectory}/jacoco-ut</jacoco.ut.summary>
<jacoco.it.summary>${project.reporting.outputDirectory}/jacoco-it</jacoco.it.summary>
<jacoco.ut.execution.data.file>${project.build.directory}/jacoco.exec</jacoco.ut.execution.data.file>
<jacoco.it.execution.data.file>${project.build.directory}/jacoco-it.exec</jacoco.it.execution.data.file>
<java-faker.version>1.0.2</java-faker.version>
<!-- Ethoca Internal Dependency versions -->
<eliminator-commons.version>2.22.0-SNAPSHOT</eliminator-commons.version>
<eliminator-domain.version>1.19.0</eliminator-domain.version>
<ethoca-api-model.version>1.10.0</ethoca-api-model.version>
<merchant-api-client.version>1.27.0</merchant-api-client.version>
<merchant-api-model.version>2.14.0</merchant-api-model.version>
</properties>
<dependencies>
<!-- Ethoca Internal Compile & Runtime Dependencies -->
<dependency>
<groupId>com.ethoca.eliminator</groupId>
<artifactId>eliminator-commons</artifactId>
<version>${eliminator-commons.version}</version>
<exclusions>
<exclusion>
<groupId>com.ethoca.bootstrap</groupId>
<artifactId>init-boot</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.ethoca.eliminator</groupId>
<artifactId>eliminator-domain</artifactId>
<version>${eliminator-domain.version}</version>
</dependency>
<dependency>
<groupId>com.ethoca.eliminator</groupId>
<artifactId>ethoca-api-model</artifactId>
<version>${ethoca-api-model.version}</version>
</dependency>
<dependency>
<groupId>com.ethoca.eliminator</groupId>
<artifactId>merchant-api-client</artifactId>
<version>${merchant-api-client.version}</version>
</dependency>
<dependency>
<groupId>com.ethoca.eliminator</groupId>
<artifactId>merchant-api-model</artifactId>
<version>${merchant-api-model.version}</version>
</dependency>
<!-- External Compile & Runtime Dependencies -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.199</version><!--$NO-MVN-MAN-VER$-->
</dependency>
<dependency>
<groupId>com.ibm.db2.jcc</groupId>
<artifactId>db2jcc4</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.mastercard.api</groupId>
<artifactId>merchant-identifier</artifactId>
</dependency>
<dependency>
<groupId>com.mastercard.api</groupId>
<artifactId>places</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-jmx</artifactId>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<scope>provided</scope><!-- To effectively exclude at runtime -->
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<scope>provided</scope><!-- To effectively exclude at runtime -->
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security.extensions</groupId>
<artifactId>spring-security-saml2-core</artifactId>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</dependency>
<!-- Test Dependencies -->
<dependency>
<groupId>com.icegreen</groupId>
<artifactId>greenmail-spring</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>spring-mock-mvc</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<version>${java-faker.version}</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.ethoca</groupId>
<artifactId>eliminator-bom</artifactId>
<version>1.3.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<artifactId>spring-boot-maven-plugin</artifactId>
<groupId>org.springframework.boot</groupId>
<configuration>
<excludeGroupIds>javax.activation,javax.persistence,javax.transaction,javax.validation</excludeGroupIds>
</configuration>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>3.1.5</version>
<configuration>
<excludeFilterFile>spotbugs-exclude-filter.xml</excludeFilterFile>
<effort>Max</effort>
<threshold>Low</threshold>
<failOnError>true</failOnError>
<includeTests>false</includeTests>
</configuration>
<executions>
<execution>
<id>spotbugs-check</id>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>pre-unit-test</id>
<phase>initialize</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${jacoco.ut.execution.data.file}</destFile>
<propertyName>surefireArgLine</propertyName>
<append>true</append>
</configuration>
</execution>
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${jacoco.ut.execution.data.file}</dataFile>
<outputDirectory>${jacoco.ut.summary}</outputDirectory>
<append>true</append>
</configuration>
</execution>
<execution>
<id>pre-integration-test</id>
<phase>pre-integration-test</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${jacoco.it.execution.data.file}</destFile>
<propertyName>failsafeArgLine</propertyName>
<append>true</append>
</configuration>
</execution>
<execution>
<id>post-integration-test</id>
<phase>post-integration-test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${jacoco.it.execution.data.file}</dataFile>
<outputDirectory>${jacoco.it.summary}</outputDirectory>
<append>true</append>
</configuration>
</execution>
<execution>
<id>iportal-check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>0.00</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<parallel>classes</parallel>
<threadCount>8</threadCount>
<argLine>-Xms128m -Xmx1G -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m ${surefireArgLine}</argLine>
<skipTests>${skipTests}</skipTests>
<excludes>
<exclude>**/*IntegrationTest.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<parallel>classes</parallel>
<threadCount>10</threadCount>
<forkCount>3</forkCount>
<reuseForks>true</reuseForks>
<argLine>-Xms128m -Xmx2G -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=1G ${failsafeArgLine}</argLine>
<skipTests>${skipIntegrationTests}</skipTests>
<includes>
<include>**/it/*IntegrationTest.java</include>
<include>**/tracking/**/*IntegrationTest.java</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.redhat.rcm.maven.plugin</groupId>
<artifactId>buildmetadata-maven-plugin</artifactId>
<version>1.5.2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>provide-buildmetadata</goal>
</goals>
<configuration>
<activateOutputFileMapping>false</activateOutputFileMapping>
<addScmInfo>false</addScmInfo>
<createPropertiesReport>false</createPropertiesReport>
<createXmlReport>false</createXmlReport>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<dateFormat>yyyy-MM-dd'T'HH:mm:ss.SSSZ</dateFormat>
<dotGitDirectory>${basedir}/../.git</dotGitDirectory>
<failOnNoGitDirectory>true</failOnNoGitDirectory>
<skipPoms>false</skipPoms>
<!-- <verbose>true</verbose> -->
<gitDescribe>
<always>true</always>
<abbrev>7</abbrev>
<dirty>.WITH_UNCOMMITED_CHANGES</dirty>
<forceLongFormat>true</forceLongFormat>
<tags>true</tags>
</gitDescribe>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<SCM-Branch>${git.branch}</SCM-Branch>
<SCM-Commit-DateTime>${git.commit.time}</SCM-Commit-DateTime>
<SCM-Commit-ID>${git.commit.id.abbrev}</SCM-Commit-ID>
<Built-Java-Vendor>${java.vendor}</Built-Java-Vendor>
<Built-Java-Version>${java.version}</Built-Java-Version>
<Built-Timestamp>${build.timestamp.millis}</Built-Timestamp>
<Built-DateTime>${git.build.time}</Built-DateTime>
<Built-OS>${os.name} / ${os.arch} / ${os.version}</Built-OS>
<Built-Describe>${git.commit.id.describe}</Built-Describe>
<Built-Maven-Version>${build.maven.version}</Built-Maven-Version>
<Built-Host>${build.host.name}</Built-Host>
</manifestEntries>
</archive>
<excludes>
<exclude>src/main/resources/appplication-memoryauth.yml</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http</artifactId>
<version>2.10</version>
</extension>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh-external</artifactId>
<version>2.10</version>
</extension>
</extensions>
</build>
<distributionManagement>
<site>
<id>${distribution.site.id}</id>
<url>${distribution.site.base}/${project.groupId}/${project.artifactId}/${project.version}</url>
</site>
<repository>
<id>${distribution.repository.id}</id>
<url>${distribution.repository.url}</url>
</repository>
</distributionManagement>
<scm>
<connection>scm:git:git@gitlab.ethoca.com:Eliminator/Eliminator.git</connection>
<developerConnection>scm:git:git@gitlab.ethoca.com:Eliminator/Eliminator.git</developerConnection>
<tag>HEAD</tag>
<url>http://gitlab.ethoca.com/Eliminator/Eliminator.git</url>
</scm>
<repositories>
<repository>
<id>2</id>
<name>mulesoft</name>
<url>https://nexus01.dev.ethoca.com:8443/nexus/content/repositories/m2.mulesoft-release/</url>
</repository>
<repository>
<id>3</id>
<name>alfresco</name>
<url>https://nexus01.dev.ethoca.com:8443/nexus/content/repositories/m2.alfresco-public-release/</url>
</repository>
</repositories>
</project>
the spring cloud dependencies I am adding are :
<!-- Spring Cloud dependencies -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR8</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
<version>2.2.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>2.2.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
<version>2.2.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
<version>2.2.5.RELEASE</version>
</dependency>