redhat-developer / redhat-developer/vscode-java
In a Java/Maven project with modules, java plugin is not able to understand parent dependencies
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 547
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
I have a Spring Boot project, with JAVA and MAVEN, with different sub-modules
In VSCode the JAVA plugin drives the compilation, and I have configured java.import.maven.enabled": true and java.dependency.syncWithFolderExplorer": true
The compilation result with Java differs from the one obtained with Maven.
For example, with Maven I get a successful compilation, but with JAVA i get some errors.
The JAVA plugin is not able to understand the module's structure.
The structure is as follows
- parent project -> pom.xml in the root directory of the project
- modules, each one in each sub-directory
|-module 1-> pom.xml
|-module 2-> pom.xml
To build a module with maven, i need to pass the argument -am, so that some dependencies in tha parent pom are executed.
It seems the JAVA plugin is not doing it, or not able to recognize it
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report names no repository files, tests, or entry points. Start by reproducing the multi-module Spring Boot project in VS Code with the listed Java and Maven settings, then compare Java plugin compilation with Maven using -am; done means parent dependencies are handled consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100