-
-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
Description
Version affected
Running on the latest version (4.6) on Windows 10.
Describe the bug
Building the exclusions in Selection::buildExclusions
adds all excludes to the list without regard for the system's path-separator. The DirectoryScanner
used in Selection::scanIfneeded
automatically converts file separators to the proper ones, including the name
used in the ScanConductor
, so folders that should be excluded are not.
This is largely a benign bug that only shows its fangs when large, auto-generated folders like node_modules
or .vite
are created.
How to Reproduce
- Open any Maven project that uses this plugin.
- Run
license:format
with debug enabled. The bug should also be able to be seen onlicense:check
andlicense:remove
. - Find line stating
Starting to visit {basedir}, excluding directories: []
. Observe default folders and others are not properly added to folder excludes. - Add an exclude like
**\node_modules\**
to the plugin settings/parameters. - Re-run the command with debug, and see the directory is excluded correctly.
Hopefully, that should be enough to reproduce the bug...