vscode-maven
vscode-maven copied to clipboard
Only load the root pom and its submodule
Suggestion
Only load the root pom and its submodule (declared in
Use Cases
On large projects, some modules might be present but not part of the build (might depend on profile but it might be that the module is just not yet ready and commented out).
VSCode should not load those modules.
By "load", do you mean a) import and compile projects, or b) list projects in Maven Projects
explorer?
a) is conducted by extension redhat.java, and b) is conducted by this extension.
If it's case a), optionally/explicitly importing projects is WIP, see https://github.com/redhat-developer/vscode-java/pull/1418
If it's case b), there's a setting maven.pomfile.globPattern
to customize path pattern of pom files.
It is both actually. In IntelliJ, it just "imports" the root pom, and its sub-modules. Then in the module tree you just see what was imported (root pom + its sub-modules).
I believe this is the right way to do as some properties are inherited from the parent pom.
Submodules are listed now. In the tree view, you can switch to list projects hierarchically(a button there), maybe that's what you want. As for importing and compiling, as I mentioned, that's out of the scope, and someone is already working on that. Let's just keep an eye on it.