redhat-developer / redhat-developer/vscode-java

In a Java/Maven project with modules, java plugin is not able to understand parent dependencies

オープン
#4,101 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Maven upstream
主要言語
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

レポートには、リポジトリのファイル、テスト、エントリーポイントが記載されていません。まず、記載されている Java と Maven の設定で VS Code 上にマルチモジュール Spring Boot プロジェクトを再現し、次に -am を使った Maven と Java plugin のコンパイルを比較してください。親プロジェクトの依存関係が一貫して処理されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, spring-boot
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。