Spring 未找到前缀为';弹簧靴';

Spring 未找到前缀为';弹簧靴';,spring,maven,Spring,Maven,我正在犯错误 [DEBUG] Writing tracking file /root/.m2/repository/org/codehaus/mojo/resolver-status.properties [DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (/root/.m2/repository) [DEBUG] Could not find metadata org.cod

我正在犯错误

[DEBUG] Writing tracking file /root/.m2/repository/org/codehaus/mojo/resolver-status.properties
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (/root/.m2/repository)
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (/root/.m2/repository)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.391 s
[INFO] Finished at: 2017-08-21T04:57:47+00:00
[INFO] Final Memory: 10M/106M
[INFO] ------------------------------------------------------------------------
[ERROR] 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 (/root/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
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 (/root/.m2/repository), central (https://repo.maven.apache.org/maven2)]

如果我需要在pom.xml中进行任何更正,请建议转到终端中您的pom.xml所在的位置 并使用命令
mvn spring boot:运行

转到终端中pom.xml所在的位置 并使用命令
mvn spring boot:run

可能重复您可以发布您的
pom.xml
文件这是我的文件。我在Mac中遇到了同样的问题。我可以通过将默认java从13更改为8来修复它。您可以发布您的
pom.xml
文件吗?这是我的文件。我在Mac中遇到了同样的问题。我可以通过将默认java从13更改为8来修复它。