This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git


The following commit(s) were added to refs/heads/master by this push:
     new 712600b6a [master] Create surefire-tmp before tests use it
712600b6a is described below

commit 712600b6a7be05f6527d05267357d5fc50690bcc
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Fri Nov 20 23:21:57 2026 +0100

    [master] Create surefire-tmp before tests use it
    
    Same fix as 1.9.x PR #2339: Surefire points java.io.tmpdir at 
${project.build.directory}/surefire-tmp but never creates it (mvn clean removes 
it). Tests work around this with local mkdirs() calls, and a JDK 8-only failure 
mode exists on the 1.9.x line. Align Surefire's tempDir with java.io.tmpdir so 
the directory exists; no change to where test temp files live.
---
 pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pom.xml b/pom.xml
index f67af9e05..438ef7b4e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -640,6 +640,7 @@
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
           <configuration>
+            <tempDir>surefire-tmp</tempDir>
             <argLine>-Xmx128m</argLine>
             
<redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
             <systemPropertyVariables>

Reply via email to