redhat-developer / redhat-developer/vscode-java

Allow to provide Maven gav for java.project.referencedLibraries

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

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

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

説明

it is possible to mention path to jar on the filesystem for java.project.referencedLibraries, it would be nice to be able to specify Maven gav too and VS Code java will download them in the ;m2/repository and point to them automatically

"java.project.referencedLibraries": {
    "include": [
        "library/**/*.jar",
        "/home/username/lib/foo.jar",
        "mvn:org.example:myArtifact:1.0.0"
    ],
    "exclude": [
        "library/sources/**"
    ],
    "sources": {
        "library/bar.jar": "library/sources/bar-src.jar"
    }
}

sort of the corresponding feature of "Add Library -> Maven managed dependencies" in Eclipse desktop and project Settings -> Libraries in IntelliJ

Environment
  • Operating System:
  • JDK version:
  • Visual Studio Code version:
  • Java extension version:
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[Please attach a sample project reproducing the error]
Please attach logs

Current Result
Expected Result
Additional Informations

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

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

はじめの一歩

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

調査の方向性

エントリポイントは java.project.referencedLibraries 設定です。まず、その include、exclude、sources の値がどのように解析され、ファイルシステム上の JAR がどのように登録されるかを確認してください。要求された mvn:org.example:myArtifact:1.0.0 の動作を、既存の Maven 管理依存関係のフローと比較し、その後 .m2/repository への解決と、classpath およびソースの自動登録を確認してください。

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

評価

技術スタック
java, typescript, vscode
領域
build-system, tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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