Multi-module Maven project does not work
See original GitHub issueI created a multi-module Maven project and tried to open the root folder in Visual Studio Code. When I try to work with any of the sub-modules, I do not get any linting, formatting, refactoring, etc… I tried Add Folder to Java Source Path
but that does not work either. I have no issues working with this project in other IDE’s, including Eclipse.
Environment
- Operating System: Windows 10
- JDK version: 1.8.0.201
- Visual Studio Code version: 1.14.1
- Java extension version: 0.55.1
Steps To Reproduce
- Clone example project:
git clone https://github.com/hashdelta/stix-pattern-evaluator-examples.git
cd stix-pattern-evaluator-examples
git checkout develop
- Open project in VSCode
Current Result
The plugin does not recognize the children modules, thus does not provide any kind of Java semantics support - no linting, formatting, refactoring, etc…
Expected Result
You should be able to get semantics support for any Java class when you open the parent. It should be one cohesive project.
Additional Informations
The only way to work with the sub modules is by opening the module in its own VSCode instance. This does not work for me, as one of my projects consists of over 20+ modules.
I have verified in Eclipse, NetBeans, and IntelliJ that the GitHub project has no issues.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:10 (3 by maintainers)
Top GitHub Comments
Hi, I am just facing same issue, kindof no idea how to make vs code recognize the project folder and all sub folders and files as a multi-module maven project, e.g. pom file in sub module report error “could not find dependency” What steps shall I take to make project workable in vs code until I can debug the source file
Facing issue too with the microsoft/gctoolkit project (multi-module, and each has its own module-info.java).