expandWildcardImports issue for maven multi module projects
- 主要言語
- Java
- スター
- 5.6k
- フォーク
- 559
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 43
説明
When using `expandWildcardImports`, `mvn spotless:apply` fails for maven multi module projects with the following error:
```
[ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:3.5.1:apply (default-cli) on project two: There were 1 lint error(s), they must be fixed or suppressed.
[ERROR] src/main/java/two/Two.java:LINE_UNDEFINED expandwildcardimports(java.lang.IllegalStateException) Symbol resolution not configured: to configure consider setting a SymbolResolver in the ParserConfiguration (...)
[ERROR] Resolve these lints or suppress with ``
```
To reproduce:
```bash
git clone https://github.com/pdeneve/spotless-expand-wildcard-imports-issue.git
cd spotless-expand-wildcard-imports-issue
mvn spotless:apply
```
Spotless maven plugin version used = `3.5.1`
コントリビューションガイド
調査の方向性
リンクされた再現用リポジトリをクローンし、`mvn spotless:apply` を実行します。`src/main/java/two/Two.java` と、Spotless Maven plugin 3.5.1 を使用するマルチモジュール Maven 構成から始めます。`expandWildcardImports` がモジュール間のシンボル解決をどのように処理するかを追跡します。コマンドが報告された lint エラーなしで完了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 58/100