vscode-maven icon indicating copy to clipboard operation
vscode-maven copied to clipboard

Only load the root pom and its submodule

Open abique opened this issue 4 years ago • 3 comments

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.

abique avatar Apr 30 '20 10:04 abique

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.

Eskibear avatar May 03 '20 01:05 Eskibear

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.

abique avatar May 04 '20 08:05 abique

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.

Eskibear avatar May 06 '20 03:05 Eskibear