From 58a9c0b834f5e133fbf5bedd9ef4ec5494a963e4 Mon Sep 17 00:00:00 2001 From: hongwei Date: Fri, 16 Jan 2026 12:21:09 +0100 Subject: [PATCH 1/2] refactor/build: Simplify Scala plugin configs and adjust JVM arguments --- obp-api/pom.xml | 11 ----------- pom.xml | 14 ++------------ 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/obp-api/pom.xml b/obp-api/pom.xml index 7379ff5662..3aeadab1b0 100644 --- a/obp-api/pom.xml +++ b/obp-api/pom.xml @@ -673,26 +673,15 @@ 4.8.1 true - incremental - true -Xms4G -Xmx12G - -Xss4m -XX:MaxMetaspaceSize=4G -XX:+UseG1GC - -XX:+TieredCompilation - -XX:TieredStopAtLevel=1 -deprecation -feature - - -language:implicitConversions - -language:reflectiveCalls - -language:postfixOps - - -Wconf:cat=deprecation&msg=auto-application:s diff --git a/pom.xml b/pom.xml index af0637b254..9969b8a193 100644 --- a/pom.xml +++ b/pom.xml @@ -134,14 +134,10 @@ ${scala.compiler} ${project.build.sourceEncoding} true - incremental - true -DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties - -Xms512m - -Xmx2G - -XX:+TieredCompilation - -XX:TieredStopAtLevel=1 + -Xms64m + -Xmx1024m -unchecked @@ -151,12 +147,6 @@ -deprecation --> -Ypartial-unification - - -language:implicitConversions - -language:reflectiveCalls - -language:postfixOps - - -Wconf:cat=deprecation&msg=auto-application:s From 4ffd9474df7092a15e2fbcb671459d1e56ed8e1f Mon Sep 17 00:00:00 2001 From: hongwei Date: Fri, 16 Jan 2026 12:23:21 +0100 Subject: [PATCH 2/2] refactor/build: Reduce memory allocation for tests and remove parallel execution settings --- obp-api/pom.xml | 8 +------- obp-commons/pom.xml | 7 +------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/obp-api/pom.xml b/obp-api/pom.xml index 3aeadab1b0..7af24246b6 100644 --- a/obp-api/pom.xml +++ b/obp-api/pom.xml @@ -586,15 +586,9 @@ once . WDF TestSuite.txt - - -Drun.mode=test -XX:MaxMetaspaceSize=1G -Xms2G -Xmx4G -XX:+UseG1GC -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+UseStringDeduplication --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.jar=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED + -Drun.mode=test -XX:MaxMetaspaceSize=512m -Xms512m -Xmx512m --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.jar=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED code.external ${maven.test.failure.ignore} - - - - - false diff --git a/obp-commons/pom.xml b/obp-commons/pom.xml index a41f81a4e2..be37971105 100644 --- a/obp-commons/pom.xml +++ b/obp-commons/pom.xml @@ -113,14 +113,9 @@ once . WDF TestSuite.txt - - -Drun.mode=test -XX:MaxMetaspaceSize=1G -Xms2G -Xmx4G -XX:+UseG1GC -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+UseStringDeduplication + -Drun.mode=test -XX:MaxMetaspaceSize=512m -Xms512m -Xmx512m code.external ${maven.test.failure.ignore} - - - - false