diff --git a/src/main/java/org/apache/maven/shared/verifier/ForkedLauncher.java b/src/main/java/org/apache/maven/shared/verifier/ForkedLauncher.java index 54b2008..595243b 100644 --- a/src/main/java/org/apache/maven/shared/verifier/ForkedLauncher.java +++ b/src/main/java/org/apache/maven/shared/verifier/ForkedLauncher.java @@ -23,6 +23,7 @@ import java.io.FileWriter; import java.io.IOException; import java.io.Writer; +import java.nio.file.Files; import java.util.Collections; import java.util.Iterator; import java.util.List; @@ -169,7 +170,7 @@ public String getMavenVersion() File logFile; try { - logFile = File.createTempFile( "maven", "log" ); + logFile = Files.createTempFile( "maven", "log" ).toFile(); } catch ( IOException e ) {