redhat-developer / redhat-developer/vscode-java
In a Java/Maven project with modules, java plugin is not able to understand parent dependencies
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
レポートには、リポジトリのファイル、テスト、エントリーポイントが記載されていません。まず、記載されている Java と Maven の設定で VS Code 上にマルチモジュール Spring Boot プロジェクトを再現し、次に -am を使った Maven と Java plugin のコンパイルを比較してください。親プロジェクトの依存関係が一貫して処理されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, spring-boot
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100