diffplug / diffplug/spotless

expandWildcardImports issue for maven multi module projects

オープン
#2,946 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
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

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

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