st 18. 10. 2023 v 13:15 odesílatel Václav Haisman <vhais...@gmail.com>
napsal:

> Hi.
>
> I have tried to make Maven Clean plugin 3.3.1's <fast> option to work for
> me to speed up UI builds where it deletes millions of files from
> node_modules directory. My understanding is that it should move the
> directories to be deleted to a <fastDir> and then launch a thread to delete
> those files in the background. It does not seem to work at all. It deletes
> all files synchronously. Is this a defect? I tried with Maven 3.6.3 and
> also with Maven 3.9.4.
>
> This is what I see with -X option:
>
> [DEBUG] Loading mojo
> org.apache.maven.plugins:maven-clean-plugin:3.3.1:clean from plugin realm
> ClassRealm[plugin>org.apache.maven.plugins:maven-clean-plugin:3.3.1,
> parent: jdk.internal.loader.ClassLoaders$AppClassLoader@2a139a55]
> [DEBUG] Configuring mojo execution
> 'org.apache.maven.plugins:maven-clean-plugin:3.3.1:clean:default-clean'
> with basic configurator -->
> [DEBUG]   (f) directory = C:\APM\apm.5\apm-cc\ui\target
> [DEBUG]   (f) excludeDefaultDirectories = false
> [DEBUG]   (f) failOnError = true
>
>
> *[DEBUG]   (f) fast = true[DEBUG]   (f) fastDir =
> C:\APM\apm.5\apm-cc\ui\.maven-clean-fastdir[DEBUG]   (f) fastMode =
> background*
> [DEBUG]   (f) directory = C:\APM\apm.5\apm-cc\ui\.angular
> [DEBUG]   (f) directory = C:\APM\apm.5\apm-cc\ui\lib
> [DEBUG]   (f) directory = C:\APM\apm.5\apm-cc\ui\node
> [DEBUG]   (f) directory = C:\APM\apm.5\apm-cc\ui\node_modules
> [DEBUG]   (f) directory = C:\APM\apm.5\apm-cc\ui\dist
> [DEBUG]   (f) directory = C:\APM\apm.5\apm-cc\ui\stage
> [DEBUG]   (f) filesets = [file set: C:\APM\apm.5\apm-cc\ui\.angular
> (included: [], excluded: []), file set: C:\APM\apm.5\apm-cc\ui\lib
> (included: [], excluded: []), file set: C:\APM\apm.5\apm-cc\ui\node
> (included: [], excluded: []), file set: C:\APM\apm.5\apm-cc\ui\node_modules
> (included: [], excluded: []), file set: C:\APM\apm.5\apm-cc\ui\dist
> (included: [], excluded: []), file set: C:\APM\apm.5\apm-cc\ui\stage
> (included: [], excluded: [])]
> [DEBUG]   (f) followSymLinks = false
> [DEBUG]   (f) outputDirectory = C:\APM\apm.5\apm-cc\ui\target\classes
> [DEBUG]   (f) reportDirectory = C:\APM\apm.5\apm-cc\ui\target\classes
> [DEBUG]   (f) retryOnError = true
> [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@466cca41
> [DEBUG]   (f) skip = false
> [DEBUG]   (f) testOutputDirectory =
> C:\APM\apm.5\apm-cc\ui\target\test-classes
> [DEBUG] -- end configuration --
> [DEBUG] Skipping non-existing directory C:\APM\apm.5\apm-cc\ui\target
> [DEBUG] Skipping non-existing directory
> C:\APM\apm.5\apm-cc\ui\target\classes
> [DEBUG] Skipping non-existing directory
> C:\APM\apm.5\apm-cc\ui\target\test-classes
> [DEBUG] Skipping non-existing directory
> C:\APM\apm.5\apm-cc\ui\target\classes
> [DEBUG] Skipping non-existing directory C:\APM\apm.5\apm-cc\ui\.angular
> [DEBUG] Skipping non-existing directory C:\APM\apm.5\apm-cc\ui\lib
> [DEBUG] Skipping non-existing directory C:\APM\apm.5\apm-cc\ui\node
> [INFO] Deleting C:\APM\apm.5\apm-cc\ui\node_modules (includes = [],
> excludes = [])
> [INFO] Deleting file
> C:\APM\apm.5\apm-cc\ui\node_modules\regenerate-unicode-properties\Script\Zanabazar_Square.js
> [INFO] Deleting file
> C:\APM\apm.5\apm-cc\ui\node_modules\regenerate-unicode-properties\Script\Yi.js
> ...
>
>
It is actually a defect: https://issues.apache.org/jira/browse/MCLEAN-111
Fixed by this pull request:
https://github.com/apache/maven-clean-plugin/pull/32
-- 
VH

Reply via email to