redhat-developer / redhat-developer/vscode-java
Maven Dependency is not Found
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
I currently have the problem that the extension fails to build my project because
message: Failure to find org.owasp:dependency-check-maven:jar:3.2.1 in https://<company-repository> was cached in the local repository, resolution will not be reattempted until the update interval of maven has elapsed or updates are forced;code: 0
The artifact can be found in the repository. The project also builds successfully from the command line with mvn compile. I also saw it download the mentioned dependency and it did end up in my local cache in ~/.m2/repository but the extension still shows this error when triggering a full rebuild. Restarting VSCode did not help. It seems there is some remnant of the failed resolution in an extension specific place.
What I really don't like about this is that I occasionally get into these kinds of problems and I have no real way to deal with them. All I can do is cleaning the workspace directory as mentioned in the troubleshooting guide but that is not really a way to work. In that sense they are usually not reproducible as well. If I can provide you with more information I'd be more than happy to but unfortunately even setting the log to verbose does not add anything to what I pasted above; it's just formatted differently.
Environment
- Operating System: OS X 10.13.4
- JDK version: 1.8.0_171
- Visual Studio Code version: 1.23.1
- Java extension version: 0.25.0
Steps To Reproduce
- open project (I opened https://github.com/zalando/logbook)
Current Result
- build fails with messages as shown above
Expected Result
- build succeeds
Additional Informations
- build succeeds from CLI
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、記載されている VS Code、Java extension、JDK、OS X のバージョンを使って、リンク先の logbook プロジェクトで失敗を再現し、Extension によって実行される完全な再ビルドと mvn compile を比較します。Extension が Maven の依存関係解決をどこで実行しているかを追跡し、キャッシュされた状態を消去または更新するとビルドが成功するか確認します。依存関係が解決され、workspace をクリーンアップせずに完全な再ビルドが成功すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- build-system, devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100