redhat-developer / redhat-developer/vscode-java
Maven settings file is ignored and dependencies are not downloaded
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
Company-specific dependencies from a corporate Nexus are not downloaded.
Environment
- Operating System: Windows
- JDK version: 8
- Visual Studio Code version: 1.79
- Java extension version: 1.20. 1.21 (pre-release)
Steps To Reproduce
- Load a Maven project with dependencies from a corporate repository specified by a profile in settings.xml file
Current Result
The company-specific dependencies are not loaded
Expected Result
All the dependencies shall be loaded
Additional Informations
In the Output window, following log appears:
CMD :"c:\Users\4637965_software\apache-maven-3.9.1\bin\mvn" --quiet clean -f "c:\Users\4637965_work\projects<project>\pom.xml" && "c:\Users\4637965_software\apache-maven-3.9.1\bin\mvn" --quiet org.apache.maven.plugins:maven-dependency-plugin:3.0.2:tree -f "c:\Users\4637965_work\projects<project>\pom.xml" -DoutputFile="c:\Users\4637965_work\projects<project>\target\dependencies.txt" -DoutputType=dot -DappendOutput=true
STDOUT : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.0.2:tree (default-cli) on project : Cannot build project dependency graph: Could not resolve nor collect following dependencies: []: ...Could not find artifact ... in central (https://repo.maven.apache.org/maven2) -> [Help 1]
It seems like when the project dependency information is read, the settings like java.configuration.maven.globalSettings are not applied at all. Because the settings.xml file is not used in the command mentioned in the logs above.
Maven build works fine, and Microsoft's "Maven for Java" plugin also works just fine. The problem is only with the Java support plugin by RedHat.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、ログに表示されている依存関係情報コマンドと、それが java.configuration.maven.globalSettings および settings.xml をどのように読み取るかを調べます。企業向けの Maven プロファイルを使用して依存関係ツリーの検索を再現します。完了条件は、企業の依存関係が Maven Central だけで検索されるのではなく解決されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100