diff --git a/.github/workflows/composites/run-and-save-test-times-when-cache-present/action.yaml b/.github/workflows/composites/run-and-save-test-times-when-cache-present/action.yaml
index ce2242c3fc..c81655555f 100644
--- a/.github/workflows/composites/run-and-save-test-times-when-cache-present/action.yaml
+++ b/.github/workflows/composites/run-and-save-test-times-when-cache-present/action.yaml
@@ -149,7 +149,8 @@ runs:
./mvnw -s .settings.xml \
-DtestsToRun=${tests_to_run_in_current_index} \
- -DCURRENT_INSTANCE=${CURRENT_INDEX} \
+ -Dsurefire-reports-directory=surefire-reports/${CURRENT_INDEX} \
+ -Dfailsafe-reports-directory=failsafe-reports/${CURRENT_INDEX} \
-e clean install \
-P sonar -nsu --batch-mode \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
diff --git a/pom.xml b/pom.xml
index 2e52f626fd..017125f3bc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -65,8 +65,9 @@
-
- one
+
+ surefire-reports
+ failsafe-reports
4.8.1
4.1.0-SNAPSHOT
@@ -208,7 +209,7 @@
${testsToRun}
- ${project.build.directory}/surefire-reports/${CURRENT_INSTANCE}
+ ${project.build.directory}/${surefire-reports-directory}
@@ -216,7 +217,7 @@
org.apache.maven.plugins
maven-failsafe-plugin
- ${project.build.directory}/failsafe-reports/${CURRENT_INSTANCE}
+ ${project.build.directory}/${failsafe-reports-directory}