This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new 4ca33b3251 [SYNCOPE-1992] Update JDWP Debug Configuration for Java 22
(#1509)
4ca33b3251 is described below
commit 4ca33b32514f59f01ffd665ed0df416e478d2f15
Author: alberto bogi <[email protected]>
AuthorDate: Thu Aug 27 16:01:31 2026 +0200
[SYNCOPE-1992] Update JDWP Debug Configuration for Java 22 (#1509)
---
client/idrepo/console/pom.xml | 2 +-
client/idrepo/enduser/pom.xml | 2 +-
core/self-keymaster-starter/pom.xml | 2 +-
fit/build-tools/pom.xml | 9 ++-------
fit/console-reference/pom.xml | 2 +-
fit/core-reference/pom.xml | 2 +-
fit/enduser-reference/pom.xml | 2 +-
fit/wa-reference/pom.xml | 2 +-
.../test/java/org/apache/syncope/fit/sra/AbstractSRAITCase.java | 3 +--
sra/pom.xml | 2 +-
src/main/asciidoc/reference-guide/usage/customization.adoc | 3 +--
wa/starter/pom.xml | 2 +-
12 files changed, 13 insertions(+), 20 deletions(-)
diff --git a/client/idrepo/console/pom.xml b/client/idrepo/console/pom.xml
index cabea35fad..fc32d1628e 100644
--- a/client/idrepo/console/pom.xml
+++ b/client/idrepo/console/pom.xml
@@ -335,7 +335,7 @@ under the License.
-Djavax.net.ssl.trustStore=${basedir}/../../../fit/wa-reference/src/test/resources/keystore.jks
-Djavax.net.ssl.trustStorePassword=password
-Dwicket.core.settings.general.configuration-type=development
-XX:+AllowEnhancedClassRedefinition -XX:HotswapAgent=fatjar
- -Xdebug
-Xrunjdwp:transport=dt_socket,address=8003,server=y,suspend=n
+
-agentlib:jdwp=transport=dt_socket,address=8003,server=y,suspend=n
</jvmArguments>
<profiles>
<profile>debug</profile>
diff --git a/client/idrepo/enduser/pom.xml b/client/idrepo/enduser/pom.xml
index 8b208778c7..e1369bd413 100644
--- a/client/idrepo/enduser/pom.xml
+++ b/client/idrepo/enduser/pom.xml
@@ -281,7 +281,7 @@ under the License.
-Djavax.net.ssl.trustStore=${basedir}/../../../fit/wa-reference/src/test/resources/keystore.jks
-Djavax.net.ssl.trustStorePassword=password
-Dwicket.core.settings.general.configuration-type=development
-XX:+AllowEnhancedClassRedefinition -XX:HotswapAgent=fatjar
- -Xdebug
-Xrunjdwp:transport=dt_socket,address=8004,server=y,suspend=n
+
-agentlib:jdwp=transport=dt_socket,address=8004,server=y,suspend=n
</jvmArguments>
<profiles>
<profile>debug</profile>
diff --git a/core/self-keymaster-starter/pom.xml
b/core/self-keymaster-starter/pom.xml
index f52ad0c16c..c93954bb40 100644
--- a/core/self-keymaster-starter/pom.xml
+++ b/core/self-keymaster-starter/pom.xml
@@ -168,7 +168,7 @@ under the License.
<jvmArguments>
-Dsyncope.connid.location=file:${basedir}/../provisioning-java/target/bundles
-XX:HotswapAgent=fatjar
- -Xdebug
-Xrunjdwp:transport=dt_socket,address=8002,server=y,suspend=n
+
-agentlib:jdwp=transport=dt_socket,address=8002,server=y,suspend=n
</jvmArguments>
<profiles>
<profile>debug</profile>
diff --git a/fit/build-tools/pom.xml b/fit/build-tools/pom.xml
index b0217e9400..c524cde0be 100644
--- a/fit/build-tools/pom.xml
+++ b/fit/build-tools/pom.xml
@@ -342,7 +342,7 @@ under the License.
</container>
<configuration>
<properties>
- <cargo.jvmargs>-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n</cargo.jvmargs>
+
<cargo.jvmargs>-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n</cargo.jvmargs>
</properties>
</configuration>
</configuration>
@@ -384,7 +384,7 @@ under the License.
<properties>
<cargo.glassfish.removeDefaultDatasource>false</cargo.glassfish.removeDefaultDatasource>
<cargo.jvmargs>-Djdk.util.zip.disableZip64ExtraFieldValidation=true
- -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n</cargo.jvmargs>
+
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n</cargo.jvmargs>
</properties>
</configuration>
<skip>${skipTests}</skip>
@@ -415,11 +415,6 @@ under the License.
</zipUrlInstaller>
<timeout>300000</timeout>
</container>
- <configuration>
- <properties>
- <cargo.jvmargs>-Xdebug</cargo.jvmargs>
- </properties>
- </configuration>
</configuration>
</plugin>
</plugins>
diff --git a/fit/console-reference/pom.xml b/fit/console-reference/pom.xml
index 964e827861..2bba07bfe3 100644
--- a/fit/console-reference/pom.xml
+++ b/fit/console-reference/pom.xml
@@ -236,7 +236,7 @@ under the License.
<cargo.jvmargs>
-Dspring.profiles.active=embedded,all
-Dwicket.core.settings.general.configuration-type=development
- -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
+
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
-XX:+UseG1GC -Xmx1024m -Xms512m</cargo.jvmargs>
</properties>
</configuration>
diff --git a/fit/core-reference/pom.xml b/fit/core-reference/pom.xml
index 807c2438da..c9afec91c0 100644
--- a/fit/core-reference/pom.xml
+++ b/fit/core-reference/pom.xml
@@ -1750,7 +1750,7 @@ under the License.
<properties>
<cargo.jvmargs>
-Dspring.profiles.active=${spring.profiles.active}
- -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
+
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
-XX:+UseG1GC -Xmx1024m -Xms512m</cargo.jvmargs>
</properties>
</configuration>
diff --git a/fit/enduser-reference/pom.xml b/fit/enduser-reference/pom.xml
index 004ff0fc8e..ffcd247aa4 100644
--- a/fit/enduser-reference/pom.xml
+++ b/fit/enduser-reference/pom.xml
@@ -237,7 +237,7 @@ under the License.
<cargo.jvmargs>
-Dspring.profiles.active=embedded,all
-Dwicket.core.settings.general.configuration-type=development
- -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
+
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
-XX:+UseG1GC -Xmx1024m -Xms512m</cargo.jvmargs>
</properties>
</configuration>
diff --git a/fit/wa-reference/pom.xml b/fit/wa-reference/pom.xml
index f5b556207b..bf23965f16 100644
--- a/fit/wa-reference/pom.xml
+++ b/fit/wa-reference/pom.xml
@@ -419,7 +419,7 @@ under the License.
-Dspring.profiles.active=${spring.profiles.active}
-Dopenfga.api-url=http://${docker.container.openfga.ip}:8080
-Dwicket.core.settings.general.configuration-type=development
- -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
+
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
-XX:+UseG1GC -Xmx1024m -Xms512m</cargo.jvmargs>
</properties>
</configuration>
diff --git
a/fit/wa-reference/src/test/java/org/apache/syncope/fit/sra/AbstractSRAITCase.java
b/fit/wa-reference/src/test/java/org/apache/syncope/fit/sra/AbstractSRAITCase.java
index 4b950fcaf0..d185afc8e0 100644
---
a/fit/wa-reference/src/test/java/org/apache/syncope/fit/sra/AbstractSRAITCase.java
+++
b/fit/wa-reference/src/test/java/org/apache/syncope/fit/sra/AbstractSRAITCase.java
@@ -175,8 +175,7 @@ abstract class AbstractSRAITCase extends AbstractITCase {
"-Djavax.net.ssl.trustStore=" + trustStore,
"-Djavax.net.ssl.trustStorePassword=" + trustStorePassword,
"-jar",
- "-Xdebug",
-
"-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8002",
+
"-agentlib:jdwp=transport=dt_socket,address=8002,server=y,suspend=n",
sraJar);
processBuilder.inheritIO();
diff --git a/sra/pom.xml b/sra/pom.xml
index 87c55049e2..e4b15d63ec 100644
--- a/sra/pom.xml
+++ b/sra/pom.xml
@@ -280,7 +280,7 @@ under the License.
<reactor.netty.http.server.accessLogEnabled>true</reactor.netty.http.server.accessLogEnabled>
</systemPropertyVariables>
<jvmArguments>
- -Xdebug
-Xrunjdwp:transport=dt_socket,address=8002,server=y,suspend=n
+
-agentlib:jdwp=transport=dt_socket,address=8002,server=y,suspend=n
-Djavax.net.ssl.trustStore=${basedir}/../fit/wa-reference/src/test/resources/keystore.jks
-Djavax.net.ssl.trustStorePassword=password
</jvmArguments>
<profiles>
diff --git a/src/main/asciidoc/reference-guide/usage/customization.adoc
b/src/main/asciidoc/reference-guide/usage/customization.adoc
index b4361bf1a3..f46742a142 100644
--- a/src/main/asciidoc/reference-guide/usage/customization.adoc
+++ b/src/main/asciidoc/reference-guide/usage/customization.adoc
@@ -99,8 +99,7 @@ straightforward: just add the `<profile>` below to
`fit/pom.xml`:
<configuration>
<properties>
<cargo.jvmargs>
- -Xdebug
- -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
+
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
-Dspring.profiles.active=embedded
-Xmx1024m -Xms512m
</cargo.jvmargs>
diff --git a/wa/starter/pom.xml b/wa/starter/pom.xml
index fcd5a9f25d..61fcedb27c 100644
--- a/wa/starter/pom.xml
+++ b/wa/starter/pom.xml
@@ -549,7 +549,7 @@ under the License.
<jvmArguments>
-Djavax.net.ssl.trustStore=${basedir}/../../fit/wa-reference/src/test/resources/keystore.jks
-Djavax.net.ssl.trustStorePassword=password
-Dsyncope.conf.dir=${project.build.directory}/test-classes
- -Xdebug
-Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n
+
-agentlib:jdwp=transport=dt_socket,address=8001,server=y,suspend=n
</jvmArguments>
<profiles>
<profile>debug</profile>