maven icon indicating copy to clipboard operation
maven copied to clipboard

[MNG-8766] Maven4 service: TempFileService

Open jira-importer opened this issue 6 months ago • 3 comments

Tamas Cservenak opened MNG-8766 and commented

A service, that is for creating temp files. Created temp files are automatically cleaned up after session ends.


No further details from MNG-8766

jira-importer avatar Jun 04 '25 10:06 jira-importer

Please take a look https://github.com/apache/maven/pull/11389

arturobernalg avatar Nov 05 '25 09:11 arturobernalg

What is the purpose for this? Unittests? If yes, then there are already JUnit extensions for this :)

Bukama avatar Nov 05 '25 12:11 Bukama

What is the purpose for this? Unittests? If yes, then there are already JUnit extensions for this :)

Not for unit tests. This is a Maven runtime service to allocate temp files/dirs bound to the Session and auto-clean at afterSessionEnd. This implements MNG-8766 to prevent temp leaks; opt-out via -Dmaven.tempfile.keep.

arturobernalg avatar Nov 05 '25 12:11 arturobernalg