You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2025/08/15 13:41:11 UTC
(maven-surefire) 01/01: Name the shutdown hook
This is an automated email from the ASF dual-hosted git repository.
cstamas pushed a commit to branch name-shutdown-hook
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
commit b59fd53e4c04f395a18626745c956bc76a2eb24c
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Fri Aug 15 15:40:43 2025 +0200
Name the shutdown hook
Fixes #3169
---
.../java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index b783d73be..f7ffb6581 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -944,7 +944,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
// Stuff that should have been final
setupStuff();
Platform platform = PLATFORM.withJdkExecAttributesForTests(getEffectiveJvm());
- Thread shutdownThread = new Thread(platform::setShutdownState);
+ Thread shutdownThread = new Thread(platform::setShutdownState, "Surefire Shutdown Hook");
addShutDownHook(shutdownThread);
try {
if (verifyParameters() && !hasExecutedBefore()) {