From b77196f23145ad0667443834bc65bb12346c05a7 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Wed, 20 Nov 2024 17:59:41 +0100
Subject: [PATCH] OZG-5778 adjust build goal (to avoid duplicate phase due to
 error in maven-source-plugin executed twice)

---
 formsolutions-adapter/pom.xml | 19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)

diff --git a/formsolutions-adapter/pom.xml b/formsolutions-adapter/pom.xml
index 1e08df0d0..4c19a4a93 100644
--- a/formsolutions-adapter/pom.xml
+++ b/formsolutions-adapter/pom.xml
@@ -174,27 +174,14 @@
 				<groupId>pl.project13.maven</groupId>
 				<artifactId>git-commit-id-plugin</artifactId>
 			</plugin>
-
 			<plugin>
 				<groupId>org.springframework.boot</groupId>
 				<artifactId>spring-boot-maven-plugin</artifactId>
-				<configuration>
-					<image>
-						<!-- cann be removed when using common lib > 2.3.2-->
-						<builder>paketobuildpacks/builder-jammy-base</builder>
-						<env>
-							<BPE_DELIM_JAVA_TOOL_OPTIONS xml:space="preserve"> </BPE_DELIM_JAVA_TOOL_OPTIONS>
-							<BPE_APPEND_JAVA_TOOL_OPTIONS>-Dfile.encoding=UTF-8</BPE_APPEND_JAVA_TOOL_OPTIONS>
-						</env>
-					</image>
-				</configuration>
-			</plugin>
-
+            </plugin>
 			<plugin>
 				<groupId>org.jacoco</groupId>
 				<artifactId>jacoco-maven-plugin</artifactId>
 			</plugin>
-
 		</plugins>
 	</build>
 
@@ -208,10 +195,8 @@
 						<artifactId>spring-boot-maven-plugin</artifactId>
 						<executions>
 							<execution>
-								<id>build-image</id>
-								<phase>install</phase>
 								<goals>
-									<goal>build-image</goal>
+									<goal>build-image-no-fork</goal>
 								</goals>
 							</execution>
 						</executions>
-- 
GitLab