You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result is that all the modules are still get imported into the workspace. This is because the MavenImporter will collect all the related projects from the scanning result, as long as the parent pom is included, all the child poms will be included as well.
The text was updated successfully, but these errors were encountered:
Steps to repro:
java.import.exlusions
in settings.json:Expected result
modules under
**/module1/**
gets importedActual result
no projects imported into workspace
Investigation of the root cause
In the code here, we will skip subtree scan if a folder is excluded.
In the above case, since we have
**/*
in the setting, all the sub folder are ignored even we have the negative (!) pattern in the exclusion setting.It seems that having the early return logic here makes the negative pattern never takes effect.
Can we just exclude the unwanted folders?
What if we set the
java.import.exclusions
to:The result is that all the modules are still get imported into the workspace. This is because the MavenImporter will collect all the related projects from the scanning result, as long as the parent pom is included, all the child poms will be included as well.
The text was updated successfully, but these errors were encountered: