expandWildcardImports issue for maven multi module projects
- Langage dominant
- Java
- Étoiles
- 5.7k
- Forks
- 561
- Merge moyen
- 1 j 14 h
- PR mergées (30 j)
- 43
Description
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`
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Clonez le dépôt de reproduction lié et exécutez `mvn spotless:apply` ; commencez par `src/main/java/two/Two.java` et la configuration Maven multi-module utilisant Spotless Maven plugin 3.5.1. Suivez la manière dont `expandWildcardImports` gère la résolution des symboles entre les modules. C’est terminé lorsque la commande se termine sans l’erreur de lint signalée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- build-system
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 58/100