Azure / Azure/azure-libraries-for-java

Maven scope in dependencyManagement

オープン
#470 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
customer-reported dependencies Mgmt
主要言語
Java
スター
97
フォーク
102
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently the `commons-io` library is declared with a test scope in the `azure-parent` pom : https://github.com/Azure/azure-libraries-for-java/blob/master/pom.xml#L118

This just caused a rather hard to debug issue for one of my projects where another library used had `commons-io` as a compile dependency (not explicitly set at compile because it is the default), and importing the `azure-parent` "excluded" it, causing my project to fail at runtime.

Quick search shows it may not be a good idea to have scopes in ``, at least not "test" ([first answer I found on SO](https://stackoverflow.com/a/20750041)).

Would it be fair to remove the test scope from `` in `azure-parent`? I can provide the PR.

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

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

調査の方向性

118行目付近の pom.xml を開き、dependencyManagement 配下の commons-io 宣言を確認します。test スコープが削除されていることを確認し、parent が commons-io を test 依存関係として上書きしなくなっていることを検証します。

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

評価

技術スタック
java
領域
build-system
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

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

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