[ https://issues.apache.org/jira/browse/SUREFIRE-1877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tibor Digana closed SUREFIRE-1877. ---------------------------------- Assignee: Tibor Digana Resolution: Duplicate > Can't print from a shutdown hook > -------------------------------- > > Key: SUREFIRE-1877 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1877 > Project: Maven Surefire > Issue Type: Bug > Affects Versions: 3.0.0-M5 > Reporter: Stuart Douglas > Assignee: Tibor Digana > Priority: Major > > In surefire 3.0.0-M5 any test output from a shutdown hook is not printed to > the console, and is effectively lost, while this worked in 2.22. > > For some background my use case is automatically generating Jacoco reports in > a shutdown hook without needing to configure a heap of different maven tasks > (so that when using Quarkus Jacoco will 'just work' with no additional config > required), my code just waits for the Jacoco agent to finish writing its > data, then generates the report. If something goes wrong with this process > any error is lost. > > > > -- This message was sent by Atlassian Jira (v8.20.1#820001)