We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c18d8e5 commit a46bf19Copy full SHA for a46bf19
src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java
@@ -1144,9 +1144,7 @@ private void cloneProjects( Collection<String> projectPaths )
1144
// avoid infinite recursion if the cloneTo path is a subdirectory.
1145
if ( cloneSubdir != null )
1146
{
1147
- File temp = File.createTempFile( "pre-invocation-clone.", "" );
1148
- temp.delete();
1149
- temp.mkdirs();
+ File temp = Files.createTempDirectory( "pre-invocation-clone." ).toFile();
1150
1151
copyDirectoryStructure( projectsDirectory, temp );
1152
0 commit comments