Habe viel Zeit mit diesem Thema verbracht. Ich konnte dieses Problem nicht selbst finden und beheben. Ich habe versucht, meine lokalen Repo löschen und neu installieren, Plugin-Repositories in meinem POM usw. hinzufügen ... Zu meiner Überraschung habe ich ein anderes Projekt, das gleiche Spring-Boot-Maven-Plugin 1.2.3 verwendet und das Projekt nicht Fehler, aber gut laufen .mvn Spring-Boot: Run fehlschlägt
Lauf mvn spring-boot:run
Fehler aus No plugin found for prefix 'spring-boot' in the current project and in the plugin groups
mit mvn Option -e ausgeführt zeigt eine Ausnahme unter
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'spring-boot' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/auhuman/.m2/repository)
Aber mein lokales Repository hat, wie unten dieses Plugin.
ls ~/.m2/repository/org/springframework/boot/spring-boot-maven-plugin/1.2.3.RELEASE/
_remote.repositories spring-boot-maven-plugin-1.2.3.RELEASE.jar.sha1 spring-boot-maven-plugin-1.2.3.RELEASE.pom.sha1
spring-boot-maven-plugin-1.2.3.RELEASE.jar spring-boot-maven-plugin-1.2.3.RELEASE.pom
spring-boot-maven-plugin-1.2.3.RELEASE.jar.lastUpdated spring-boot-maven-plugin-1.2.3.RELEASE.pom.lastUpdated
mein pom.xml hat
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.2.3.RELEASE</version>
<relativePath/>
</parent>
<build>
<plugins>
<!-- Spring Boot Maven -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Ja. Es ist dort. ls ~/.m2/repository/org/spring/boot/ Feder-boot \t \t \t feder boot-Starter-cache feder boot-Aktor \t \t feder boot-Starter-data-JPA feder Boot- autoconfigure \t Feder-boot-Starter-jdbc Feder-boot-Abhängigkeiten \t Feder-boot-Starter-logging feder Boot-loader-Tools \t Feder-boot-Starter-parent Feder-boot-maven-Plugin \t Frühjahr- boot-starter-test feder-boot-parent \t \t feder-boot-starter-tomcat feder-boot-starter \t \t federstarterstarter federstarterstarter \t federstarter federstarterstarter-amqp \t federstarterwerkzeuge federstarterstarter-aop – auhuman