You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2025/11/10 02:53:06 UTC

(maven-invoker-plugin) branch master updated: `PlexusFileUtils` Refaster recipes (#692)

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-invoker-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 9a3ada3  `PlexusFileUtils` Refaster recipes (#692)
9a3ada3 is described below

commit 9a3ada3e8ba2124e1a23f8665f18ee5dbcee458f
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Nov 10 03:53:01 2025 +0100

    `PlexusFileUtils` Refaster recipes (#692)
    
    
    Co-authored-by: Moderne <te...@moderne.io>
---
 .../java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java b/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java
index 428f8dc..8700bc3 100644
--- a/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java
@@ -951,7 +951,7 @@ public abstract class AbstractInvokerMojo extends AbstractMojo {
         // If it exists from previous run...
         if (reportsDirectory.exists()) {
             try {
-                FileUtils.deleteDirectory(reportsDirectory);
+                org.apache.commons.io.FileUtils.deleteDirectory(reportsDirectory);
             } catch (IOException e) {
                 throw new MojoExecutionException(
                         "Failure while trying to delete " + reportsDirectory.getAbsolutePath(), e);
@@ -1157,7 +1157,7 @@ public abstract class AbstractInvokerMojo extends AbstractMojo {
 
                             copyDirectoryStructure(projectsDirectory, temp);
 
-                            FileUtils.deleteDirectory(new File(temp, cloneSubdir));
+                            org.apache.commons.io.FileUtils.deleteDirectory(new File(temp, cloneSubdir));
 
                             copyDirectoryStructure(temp, cloneProjectsTo);
                         } else {