Printemps de Démarrage ne parvient pas à exécuter maven-surefire-plugin ClassNotFoundException org.apache.maven.surefire.booter.ForkedBooter

L'exécution de maven (3.5.2) de la construction d'un Printemps de Démarrage 2.0.2.COMMUNIQUÉ de candidature (généré par le web de l'initialiser avec web dépendances) échec de l'exécution de la maven-surefire-plugin disant:

Erreur: impossible de trouver ou charger la classe principale
org.apache.maven.surefire.booter.ForkedBooter

Causés par: java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.ForkedBooter

Pourquoi est-ce arrivé? Est-ce un problème de démarrage + infaillible intégration = un bug?

Pour référence, les dépendances qui semblent pertinentes sont:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.2.RELEASE</version>
    <relativePath/>
</parent>
...
<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
</dependency>
...
<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
</dependency>
...
<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>
  • Le en amont question montre trois solutions de contournement (les deux énumérés ici, plus forkCount 0), mais aucun n'est sans problèmes ☹
InformationsquelleAutor jediz | 2018-06-02