redhat-developer / redhat-developer/vscode-java
In a Java/Maven project with modules, java plugin is not able to understand parent dependencies
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.3k
- Forks
- 546
- Ø Merge
- 20 Std. 1 Min.
- Gemergte PRs (30 T.)
- 11
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Der Bericht nennt keine Repository-Dateien, Tests oder Einstiegspunkte. Beginne damit, das Multi-Modul-Spring-Boot-Projekt in VS Code mit den aufgeführten Java- und Maven-Einstellungen zu reproduzieren, und vergleiche dann die Kompilierung durch das Java-Plugin mit Maven unter Verwendung von -am; als erledigt gilt die Aufgabe, wenn Abhängigkeiten des übergeordneten Projekts konsistent behandelt werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, spring-boot
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100