timis1 opened a new issue, #832:
URL: https://github.com/apache/maven-surefire/issues/832

   ### Affected version
   
   3.5.3
   
   ### Bug description
   
   Hello,
   Using JDK: 
   - openjdk 17.0.14 2025-01-21
   - Apache Maven 3.8.8
   - maven surfire plugin
   <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-surefire-plugin</artifactId>
       <version>3.5.3</version>
   </plugin>
   
   I registered a shutdownhook: Runtime.getRuntime().addShutdownHook(newHook), 
but at shutdown this hook is not triggered.
   Even if I follow this: 
https://maven.apache.org/surefire/maven-surefire-plugin/examples/shutdown.html 
   to send **enableProcessChecker** in the plugin:
   <configuration> 
      <enableProcessChecker>with value ping or all</enableProcessChecker>
   </configuration>
   Or send in the command line like this:  
**-Dsurefire.enableProcessChecker=all**, my hook is not triggered.
   
   Do you have any idea?
   Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to