expandWildcardImports issue for maven multi module projects
- Vorherrschende Sprache
- Java
- Sterne
- 5.6k
- Forks
- 559
- Ø Merge
- 1 T. 14 Std.
- Gemergte PRs (30 T.)
- 43
Beschreibung
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`
Beitragsleitfaden
Rechercherichtung
Klone das verlinkte Reproduktions-Repository und führe `mvn spotless:apply` aus; beginne mit `src/main/java/two/Two.java` und der Multi-Modul-Maven-Konfiguration unter Verwendung des Spotless Maven plugin 3.5.1. Verfolge, wie `expandWildcardImports` die Symbolauflösung modulübergreifend behandelt. Erledigt bedeutet, dass der Befehl ohne den gemeldeten Lint-Fehler abgeschlossen wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- build-system
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 58/100