redhat-developer / redhat-developer/vscode-java

pom.xml reports non-resolvable parent POM error despite local repository having dependencies and IntelliJ IDEA resolving correctly

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

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

主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

When using the redhat-developer vscode-java extension in VSCode, I encounter errors in my pom.xml indicating that the parent POM cannot be resolved or dependencies are missing. However, the local Maven repository already contains the required artifacts, and opening the same project in IntelliJ IDEA works perfectly without any errors.
Interestingly, even in VSCode, the reported parent POM is clickable and can be opened normally, despite the error being displayed.
However, inside Java source files, classes, methods, and variables cannot be navigated (Go to Definition does not work), which suggests the Java project classpath is not being built correctly.

Details
  • Error message example:
    Non-resolvable parent POM for ...
  • Dependencies are present in the local Maven repository and not missing
  • IntelliJ IDEA correctly resolves the parent POM and dependencies without issues
  • VSCode plugin might not be correctly loading the custom settings.xml or there could be caching issues
  • "java.maven.downloadSources": true setting does not seem to take effect; source code is not downloaded
  • Maven version 3.6.3 is installed at /Users/yuxuan/SoftWare/maven/apache-maven-3.6.3/bin/mvn on macOS
Relevant settings.json snippet
{
  "java.maven.downloadSources": true,
  "maven.executable.path": "/Users/yuxuan/SoftWare/maven/apache-maven-3.6.3/bin/mvn",
  "java.configuration.maven.userSettings": "/Users/yuxuan/SoftWare/maven/apache-maven-3.6.3/conf/settings.xml"
}

Expected behavior
The plugin should correctly recognize existing dependencies in the local Maven repository without throwing resolution errors

It should properly load and apply the user-specified settings.xml

Source downloading should work as configured

Provide more detailed logs or diagnostics to help troubleshoot issues

Thank you for your hard work and support. Looking forward to a fix.

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

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

はじめの一歩

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

調査の方向性

提供された settings.json の値、プロジェクトの pom.xml、および指定された Maven 実行可能ファイルを使用して、まず VSCode で依存関係の解決とソースナビゲーションの失敗を再現します。拡張機能の詳細なログと診断を調べ、settings.xml の読み込みまたは依存関係のキャッシュが関与しているかどうかを判断します。既存のローカル依存関係が解決され、ソースのダウンロードが設定に従い、Java ナビゲーションがエラーなしで動作すれば完了です。

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

評価

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

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

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